blob: 56dc1bcb700bbc39c1b72dcc24fbd1fb6de665f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef CALCULATOR_H
#define CALCULATOR_H
#include <qdialog.h>
#include <qlayout.h>
#include <qlineedit.h>
class Calculator : public QDialog
{
Q_OBJECT
public:
Calculator ( QWidget* parent );
QLineEdit* display;
private slots:
void displayOne ();
void displayTwo ();
void displayThree ();
void displayFour ();
void displayFive ();
void displaySix ();
void displaySeven ();
void displayEight ();
void displayNine ();
void displayZero ();
void displayPoint ();
void back ();
private:
QGridLayout *layout;
};
#endif
|