50
|
1 |
#ifndef _TEAMSEL_HELPER_INCLUDED
|
|
2 |
#define _TEAMSEL_HELPER_INCLUDED
|
|
3 |
|
|
4 |
#include <QLabel>
|
|
5 |
#include <QWidget>
|
|
6 |
#include <QString>
|
|
7 |
|
|
8 |
#include "teamselect.h"
|
|
9 |
|
|
10 |
class TeamLabel : public QLabel
|
|
11 |
{
|
|
12 |
Q_OBJECT
|
|
13 |
|
|
14 |
public:
|
|
15 |
TeamLabel(const QString& inp_str) : QLabel(inp_str) {};
|
|
16 |
|
|
17 |
signals:
|
|
18 |
void teamActivated(QString team_name);
|
|
19 |
|
|
20 |
public slots:
|
|
21 |
void teamButtonClicked();
|
|
22 |
|
|
23 |
};
|
|
24 |
|
|
25 |
class TeamShowWidget : public QWidget
|
|
26 |
{
|
|
27 |
Q_OBJECT
|
|
28 |
|
|
29 |
private slots:
|
|
30 |
void activateTeam();
|
|
31 |
|
|
32 |
public:
|
61
|
33 |
TeamShowWidget(tmprop team, QWidget * parent = 0);
|
50
|
34 |
|
|
35 |
private:
|
|
36 |
QHBoxLayout mainLayout;
|
|
37 |
tmprop m_team;
|
|
38 |
|
|
39 |
signals:
|
|
40 |
void teamStatusChanged(tmprop team);
|
|
41 |
};
|
|
42 |
|
|
43 |
#endif // _TEAMSEL_HELPER_INCLUDED
|