Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 150 → Rev 151

/trunk/DBViewer/mainwindow.cpp
56,7 → 56,12
*/
 
 
ui->treeWidget_2->hideColumn(1);
ui->treeWidget_2->hideColumn(2);
ui->treeWidget_2->hideColumn(3);
ui->treeWidget_2->hideColumn(4);
 
 
getDatabaseData();
//// sql_mogel = new QSqlTableModel();
sql_mogel = new MyModel();
817,7 → 822,24
// model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnFieldChange);
model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnManualSubmit);
ui->tableView_2->setModel(model_for_ListModelsTable);
 
model_for_ListModelsTable->select();
 
ui->treeWidget->hideColumn(1);
ui->treeWidget->hideColumn(2);
ui->treeWidget->hideColumn(3);
ui->treeWidget->hideColumn(4);
 
ui->tableView_2->hideColumn(0);
ui->tableView_2->hideColumn(2);
ui->tableView_2->hideColumn(3);
ui->tableView_2->hideColumn(4);
 
ui->tableView_2->resizeColumnsToContents();
ui->tableView_2->setAlternatingRowColors(true);
 
ui->pushButton_7->setEnabled(false);
ui->pushButton_8->setEnabled(false);
 
 
}