2589
|
1 |
#include "teamedit.h"
|
|
2 |
#include "ui_teamedit.h"
|
|
3 |
|
|
4 |
TeamEdit::TeamEdit(QWidget *parent) :
|
|
5 |
QWidget(parent),
|
|
6 |
m_ui(new Ui::TeamEdit)
|
|
7 |
{
|
|
8 |
m_ui->setupUi(this);
|
|
9 |
}
|
|
10 |
|
|
11 |
TeamEdit::~TeamEdit()
|
|
12 |
{
|
|
13 |
delete m_ui;
|
|
14 |
}
|
|
15 |
|
|
16 |
void TeamEdit::changeEvent(QEvent *e)
|
|
17 |
{
|
|
18 |
QWidget::changeEvent(e);
|
|
19 |
switch (e->type()) {
|
|
20 |
case QEvent::LanguageChange:
|
|
21 |
m_ui->retranslateUi(this);
|
|
22 |
break;
|
|
23 |
default:
|
|
24 |
break;
|
|
25 |
}
|
|
26 |
}
|
2594
|
27 |
|
|
28 |
void TeamEdit::addTeam(const QString & teamName, quint32 color)
|
|
29 |
{
|
|
30 |
m_ui->leTeamName->setText(teamName);
|
|
31 |
}
|
|
32 |
|
|
33 |
void TeamEdit::setFort(const QString & name)
|
|
34 |
{
|
|
35 |
m_ui->leFort->setText(name);
|
|
36 |
}
|
|
37 |
|
|
38 |
void TeamEdit::setGrave(const QString & name)
|
|
39 |
{
|
|
40 |
m_ui->leGrave->setText(name);
|
|
41 |
}
|
|
42 |
|
|
43 |
void TeamEdit::setVoicepack(const QString & name)
|
|
44 |
{
|
|
45 |
m_ui->leVoicepack->setText(name);
|
|
46 |
}
|
|
47 |
|