Subversion Repositories OpenInventory

Rev

Rev 89 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
   rootItem1 = new  QTreeWidgetItem(ui->treeWidget);
   rootItem1->setText(0, tr("Óðîâåíü 1"));
   rootItem2 = new  QTreeWidgetItem(rootItem1);
   rootItem2->setText(0, tr("óðîâåíü 2"));
   rootItem1->setCheckState(0,Qt::Checked);
   rootItem2->setCheckState(0,Qt::Checked);

}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::changeEvent(QEvent *e)
{
    QMainWindow::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}