Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 145 → Rev 146

/trunk/DBViewer/mainwindow.cpp
64,6 → 64,8
 
model_is_build = true;
connect(sql_mogel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_sql_mogel_dataChanged(QModelIndex,QModelIndex)));
connect(model_for_ListModelsTable, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_model_for_ListModelsTable_dataChanged(QModelIndex,QModelIndex)));
 
ui->pushButton_3->setEnabled(false);
ui->pushButton_4->setEnabled(false);
 
252,12 → 254,14
*/
 
 
void MainWindow::creatModelString(){
QString MainWindow::creatModelString(QTreeWidgetItem* model){
 
MainWindow::modelString.clear(); // î÷èùàåì ñòðîêó ìîäåëè
// for (int i =0; i < rootItem1->childCount(); ++i )
 
{MainWindow::addChildsString(rootItem1, 0);}
{MainWindow::addChildsString(model, 0);}
 
return MainWindow::modelString;
// {MainWindow::addChildsString(ui->treeWidget, 0);}
/*
int root_item_child_count;
751,8 → 755,10
model_for_ListModelsTable = new QSqlTableModel(this);
 
model_for_ListModelsTable->setTable(tr("ListOfModels"));
model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnFieldChange);
 
// model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnFieldChange);
model_for_ListModelsTable->setEditStrategy(QSqlTableModel::OnManualSubmit);
ui->tableView_2->setModel(model_for_ListModelsTable);
model_for_ListModelsTable->select();
ui->pushButton_7->setEnabled(false);
ui->pushButton_8->setEnabled(false);
}