QTfrontend/ui/widget/togglebutton.h
changeset 6616 f77bb02b669f
parent 6060 fdfc01419815
child 6700 e04da46ee43c
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
    26 #include <QVBoxLayout>
    26 #include <QVBoxLayout>
    27 #include <QLabel>
    27 #include <QLabel>
    28 
    28 
    29 class ToggleButtonWidget : public QPushButton
    29 class ToggleButtonWidget : public QPushButton
    30 {
    30 {
    31     Q_OBJECT
    31         Q_OBJECT
    32 public:
    32     public:
    33     ToggleButtonWidget(QWidget * parent, QString img);
    33         ToggleButtonWidget(QWidget * parent, QString img);
    34     ~ToggleButtonWidget();
    34         ~ToggleButtonWidget();
    35 private:
    35     private:
    36     QPixmap pmChecked;
    36         QPixmap pmChecked;
    37     QPixmap pmDisabled;
    37         QPixmap pmDisabled;
    38 private slots:
    38     private slots:
    39     void eventToggled(bool checked);
    39         void eventToggled(bool checked);
    40 };
    40 };
    41 
    41 
    42 #endif // TOGGLEBUTTONWIDGET_H
    42 #endif // TOGGLEBUTTONWIDGET_H