05robot

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

cquizbutton.h
Go to the documentation of this file.
1 #ifndef CQUIZBUTTON_H
2 #define CQUIZBUTTON_H
3
4 #include <QWidget>
5 #include <QPushButton>
6 #include "dialogyesno.h"
7
8 class cQuizButton : public QPushButton
9 {
10 Q_OBJECT
11 bool m_valid;
12 int m_state;
13 int result;
14 DialogYesNo dlgyesno;
15 public:
16 cQuizButton(int min, int max, bool res_valid, QSize size, QWidget* object);
17 int state();
18 public slots:
19 void clicked();
20 void answerYes();
21 void answerNo();
22
23 signals:
24 void answer(bool state);
25 };
26
27 #endif // CQUIZBUTTON_H
cQuizButton::cQuizButton
cQuizButton(int min, int max, bool res_valid, QSize size, QWidget *object)
Definition: cquizbutton.cpp:3
cQuizButton
Definition: cquizbutton.h:8
min
#define min(a, b)
Definition: Camera_Basler_GigE.cpp:8
cQuizButton::answerYes
void answerYes()
Definition: cquizbutton.cpp:50
cQuizButton::answer
void answer(bool state)
cQuizButton::clicked
void clicked()
Definition: cquizbutton.cpp:35
dialogyesno.h
cQuizButton::answerNo
void answerNo()
Definition: cquizbutton.cpp:66
DialogYesNo
Definition: dialogyesno.h:10
cQuizButton::state
int state()
Definition: cquizbutton.cpp:29