-
Notifications
You must be signed in to change notification settings - Fork 0
/
infoclass.h
35 lines (34 loc) · 924 Bytes
/
infoclass.h
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
#ifndef INFOCLASS_H
#define INFOCLASS_H
#include <QVector>
#include <QRect>
class InfoClass
{
public:
InfoClass();
InfoClass(int x, int y, int width, int height);
InfoClass(int number, int x, int y, int width, int height, QVector<InfoClass> answers);
InfoClass(QString x, QString y, QString width, QString height);
//InfoClass(InfoClass infoClass);
int number() const;
int x() const;
int y() const;
int width() const;
int height() const;
int isQuest() const; //bool
QVector<InfoClass> answers() const;
QRect getQRect();
void setNumber(int Number);
void setX(int X);
void setY(int Y);
void setWidth(int Width);
void setHeight(int Height);
void setQuest(int IsQuest);
void setAnswers(QVector<InfoClass> Answers);
private:
int Number;
int X, Y, Width, Height;
int IsQuest = 0;
QVector<InfoClass> Answers;
};
#endif // INFOCLASS_H