tools/MissionsEditor/teamedit.cpp
author unc0rr
Sun, 25 Oct 2009 18:16:40 +0000
changeset 2589 4329597c85c8
child 2594 0047e16dbacb
permissions -rw-r--r--
Further work on missions editor
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2589
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     1
#include "teamedit.h"
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     2
#include "ui_teamedit.h"
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     3
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     4
TeamEdit::TeamEdit(QWidget *parent) :
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     5
    QWidget(parent),
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     6
    m_ui(new Ui::TeamEdit)
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     7
{
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     8
    m_ui->setupUi(this);
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     9
}
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    10
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    11
TeamEdit::~TeamEdit()
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    12
{
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    13
    delete m_ui;
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    14
}
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    15
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    16
void TeamEdit::changeEvent(QEvent *e)
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    17
{
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    18
    QWidget::changeEvent(e);
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    19
    switch (e->type()) {
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    20
    case QEvent::LanguageChange:
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    21
        m_ui->retranslateUi(this);
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    22
        break;
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    23
    default:
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    24
        break;
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    25
    }
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    26
}