QTfrontend/togglebutton.h
changeset 3061 e129e4c3f30e
parent 2948 3f21a9dc93d0
child 4976 088d40d8aba2
--- a/QTfrontend/togglebutton.h	Wed Mar 24 18:01:49 2010 +0000
+++ b/QTfrontend/togglebutton.h	Wed Mar 24 23:31:13 2010 +0000
@@ -25,22 +25,13 @@
 #include <QVBoxLayout>
 #include <QLabel>
 
-class ToggleButtonWidget : public QWidget
+class ToggleButtonWidget : public QPushButton
 {
     Q_OBJECT
 public:
     ToggleButtonWidget(QWidget * parent, QString img);
     ~ToggleButtonWidget();
-    bool isChecked();
-    void setChecked(bool checked);
-    void setText(QString s);
-    QPushButton * button()
-    {
-        return pbMain;
-    }
 private:
-    QLabel * lbMain;
-    QPushButton * pbMain;
     QPixmap pmChecked;
     QPixmap pmDisabled;
 private slots: