Хранилища Subversion OpenInventory

Редакция

Редакция 89 | К новейшей редакции | Содержимое файла | Последнее изменение | Открыть журнал | RSS

Редакция Автор № строки Строка
88 pingvin 1
#include "mainwindow.h"
2
#include "ui_mainwindow.h"
3
 
4
MainWindow::MainWindow(QWidget *parent) :
5
    QMainWindow(parent),
6
    ui(new Ui::MainWindow)
7
{
8
    ui->setupUi(this);
9
   rootItem1 = new  QTreeWidgetItem(ui->treeWidget);
10
   rootItem1->setText(0, tr(" 1"));
11
   rootItem2 = new  QTreeWidgetItem(rootItem1);
12
   rootItem2->setText(0, tr(" 2"));
13
   rootItem1->setCheckState(0,Qt::Checked);
14
   rootItem2->setCheckState(0,Qt::Checked);
15
 
16
}
17
 
18
MainWindow::~MainWindow()
19
{
20
    delete ui;
21
}
22
 
23
void MainWindow::changeEvent(QEvent *e)
24
{
25
    QMainWindow::changeEvent(e);
26
    switch (e->type()) {
27
    case QEvent::LanguageChange:
28
        ui->retranslateUi(this);
29
        break;
30
    default:
31
        break;
32
    }
33
}