close button icon
This commit is contained in:
25
toolbutton.h
Normal file
25
toolbutton.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef TOOLBUTTON_H
|
||||
#define TOOLBUTTON_H
|
||||
|
||||
#include <QPushButton>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QGraphicsOpacityEffect;
|
||||
class QPropertyAnimation;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class ToolButton : public QPushButton
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ToolButton(QWidget * parent = nullptr);
|
||||
|
||||
public slots:
|
||||
void setIconOpacity(qreal opacity);
|
||||
|
||||
private:
|
||||
QGraphicsOpacityEffect * m_opacityFx;
|
||||
QPropertyAnimation * m_opacityAnimation;
|
||||
};
|
||||
|
||||
#endif // TOOLBUTTON_H
|
||||
Reference in New Issue
Block a user