Subversion Repositories OpenInventory

Rev

Rev 125 | Rev 131 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 125 Rev 127
Line 25... Line 25...
25
    ui->treeWidget_2->setAlternatingRowColors(true);
25
    ui->treeWidget_2->setAlternatingRowColors(true);
26
    MainWindow::openDataBase();
26
    MainWindow::openDataBase();
27
    MainWindow::buildPreviewModel(tr("Ìîÿ ìîäåëü"), tr("7"));
27
    MainWindow::buildPreviewModel(tr("Ìîÿ ìîäåëü"), tr("7"));
28
    MainWindow::initComboBox();
28
    MainWindow::initComboBox();
29
    getDatabaseData();
29
    getDatabaseData();
30
    sql_mogel = new QSqlTableModel();
30
    //// sql_mogel = new QSqlTableModel();
-
 
31
    sql_mogel = new MyModel();
-
 
32
-
 
33
31
    model_is_build = true;
34
    model_is_build = true;
32
    connect(sql_mogel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_sql_mogel_dataChanged(QModelIndex,QModelIndex)));
35
    connect(sql_mogel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_sql_mogel_dataChanged(QModelIndex,QModelIndex)));
33
    ui->pushButton_3->setEnabled(false);
36
    ui->pushButton_3->setEnabled(false);
34
    ui->pushButton_4->setEnabled(false);
37
    ui->pushButton_4->setEnabled(false);
35
38