21 lines
385 B
C++
21 lines
385 B
C++
#ifndef TOOLBUTTON_H
|
|
#define TOOLBUTTON_H
|
|
|
|
#include <QPushButton>
|
|
|
|
class OpacityHelper;
|
|
class ToolButton : public QPushButton
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ToolButton(bool hoverColor = false, QWidget * parent = nullptr);
|
|
|
|
public slots:
|
|
void setOpacity(qreal opacity, bool animated = true);
|
|
|
|
private:
|
|
OpacityHelper * m_opacityHelper;
|
|
};
|
|
|
|
#endif // TOOLBUTTON_H
|