-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathround.h
38 lines (31 loc) · 854 Bytes
/
round.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
36
37
38
#ifndef ROUND_H
#define ROUND_H
#include "match.h"
#include "tournamentsitem.h"
#include <QString>
class Round : public TournamentsItem
{
public:
Round(TournamentsItem *parent, int number);
int number;
QString date;
QString description;
enum class RoundRoles{
NumberRole = Qt::UserRole +1,
DateRole,
DescriptionRole
};
// TournamentsItem interface
QVariant data(int role) const override;
// TournamentsItem interface
TournamentsItem *child(int position) const override;
int childCount() const override;
int columnCount() const override;
bool addChild(TournamentsItem *) override;
int position(TournamentsItem *) override;
int position(int id);
bool setData(int role, const QVariant &value) override;
private:
QVector<Match*> matches;
};
#endif // ROUND_H