File: toolbutton.h

package info (click to toggle)
pineapple-pictures 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,424 kB
  • sloc: cpp: 3,794; xml: 339; sh: 8; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
//
// SPDX-License-Identifier: MIT

#ifndef TOOLBUTTON_H
#define TOOLBUTTON_H

#include <QPushButton>

class OpacityHelper;
class ToolButton : public QPushButton
{
    Q_OBJECT
public:
    ToolButton(bool hoverColor = false, QWidget * parent = nullptr);
    void setIconResourcePath(const QString &iconp);

public slots:
    void setOpacity(qreal opacity, bool animated = true);

private:
    OpacityHelper * m_opacityHelper;
};

#endif // TOOLBUTTON_H