mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-06 00:41:17 -05:00
25 lines
428 B
C++
25 lines
428 B
C++
#ifndef INCLUDE_BUTTONSWITCH_H
|
|
#define INCLUDE_BUTTONSWITCH_H
|
|
|
|
#include <QToolButton>
|
|
|
|
#include "export.h"
|
|
|
|
class SDRGUI_API ButtonSwitch : public QToolButton {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ButtonSwitch(QWidget* parent = NULL);
|
|
void doToggle(bool checked);
|
|
void setColor(QColor color);
|
|
void resetColor();
|
|
|
|
private slots:
|
|
void onToggled(bool checked);
|
|
|
|
private:
|
|
QPalette m_originalPalette;
|
|
};
|
|
|
|
#endif // INCLUDE_BUTTONSWITCH_H
|