Introduce old redir program
[lcapit-junk-code.git] / qt-course / simple-calculator / MyWidget.h
blob90fe0d10e7ab313ee982d4883af9cd3ac9b739ce
1 #ifndef MYWIDGET_H
2 #define MYWIDGET_H
4 #include <QWidget>
5 #include "ui_calculator.h"
7 class QString;
9 class MyWidget : public QWidget
11 Q_OBJECT;
12 public:
13 MyWidget(QWidget *parent = 0);
14 ~MyWidget();
16 private:
17 void buttonsEnabled(bool);
18 Ui::MyWidgetBase *m_ui;
19 QString m_oper;
20 int m_number;
21 bool resetDisplay;
23 private slots:
24 void slot_numButtonClicked();
25 void slot_operButtonClicked();
28 #endif // MYWIDGET_H