Subversion Repositories OpenInventory

Rev

Rev 149 | Rev 152 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 149 Rev 151
Line 54... Line 54...
54
     out << MainWindow::modelString;
54
     out << MainWindow::modelString;
55
     file_tmp.close();
55
     file_tmp.close();
56
    */
56
    */
57
57
58
58
-
 
59
    ui->treeWidget_2->hideColumn(1);
-
 
60
    ui->treeWidget_2->hideColumn(2);
-
 
61
    ui->treeWidget_2->hideColumn(3);
-
 
62
    ui->treeWidget_2->hideColumn(4);
-
 
63
59
64
60
    getDatabaseData();
65
    getDatabaseData();
61
    //// sql_mogel = new QSqlTableModel();
66
    //// sql_mogel = new QSqlTableModel();
62
    sql_mogel = new MyModel();
67
    sql_mogel = new MyModel();
63
68
Line 815... Line 820...
815
820
816
    model_for_ListModelsTable->setTable(tr("ListOfModels"));
821
    model_for_ListModelsTable->setTable(tr("ListOfModels"));
817
 //   model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnFieldChange);
822
 //   model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnFieldChange);
818
    model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnManualSubmit);
823
    model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnManualSubmit);
819
    ui->tableView_2->setModel(model_for_ListModelsTable);
824
    ui->tableView_2->setModel(model_for_ListModelsTable);
-
 
825
820
    model_for_ListModelsTable->select();
826
    model_for_ListModelsTable->select();
-
 
827
-
 
828
    ui->treeWidget->hideColumn(1);
-
 
829
    ui->treeWidget->hideColumn(2);
-
 
830
    ui->treeWidget->hideColumn(3);
-
 
831
    ui->treeWidget->hideColumn(4);
-
 
832
-
 
833
    ui->tableView_2->hideColumn(0);
-
 
834
    ui->tableView_2->hideColumn(2);
-
 
835
    ui->tableView_2->hideColumn(3);
-
 
836
    ui->tableView_2->hideColumn(4);
-
 
837
-
 
838
    ui->tableView_2->resizeColumnsToContents();
-
 
839
    ui->tableView_2->setAlternatingRowColors(true);
-
 
840
821
    ui->pushButton_7->setEnabled(false);
841
    ui->pushButton_7->setEnabled(false);
822
    ui->pushButton_8->setEnabled(false);
842
    ui->pushButton_8->setEnabled(false);
-
 
843
-
 
844
823
}
845
}