You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
340 B
20 lines
340 B
#ifndef INCLUDE_BUTTONSWITCH_H |
|
#define INCLUDE_BUTTONSWITCH_H |
|
|
|
#include <QToolButton> |
|
|
|
class ButtonSwitch : public QToolButton { |
|
Q_OBJECT |
|
|
|
public: |
|
ButtonSwitch(QWidget* parent = NULL); |
|
void doToggle(bool checked); |
|
|
|
private slots: |
|
void onToggled(bool checked); |
|
|
|
private: |
|
QPalette m_originalPalette; |
|
}; |
|
|
|
#endif // INCLUDE_BUTTONSWITCH_H
|
|
|