Хранилища Subversion OpenInventory

Сравнить редакции

Не учитывать пробелы Редакция 74 → Редакция 75

/trunk/ClassEditor/classeditor.cpp
243,6 → 243,8
currIndexOfClassesTable = mymodel->index(0, 1);
QModelIndex index_temp;
 
 
 
currClassID = mymodel->data(mymodel->index(0,0)).toString();
QItemSelectionModel *selectionModel = ui->tableView->selectionModel();
 
260,6 → 262,9
QString str_fltr = tr("ClassIdentifer = ");
class_indx = mymodel->data(mymodel->index(0,0)).toString();
class_instance = mymodel->data(mymodel->index(0,3)).toString();
 
currInctanceTable = class_instance; //
modelForDescription->setInctance(class_instance); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
//class_instance.append(tr("_inctance"));
str_fltr.append(class_indx);
 
490,6 → 495,11
index_instance = ui->tableView->model()->index(row, 3);
tmp_str = ui->tableView->model()->data(index_tmp).toString();
instance_str = ui->tableView->model()->data(index_instance).toString();
modelForDescription->setInctance(instance_str); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
 
 
 
 
// instance_str.append(tr("_inctance"));
/*
Inctance_model.clear();
646,13 → 656,36
}
 
void ClassEditor::on_myModel_dataChanged( const QModelIndex & topLeft, const QModelIndex & bottomRight ){
 
int i;
i++;
ui->tableView->resizeColumnsToContents();
 
 
 
 
 
}
 
void ClassEditor::on_modelForDescription_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight ){
ui->tableView_2->resizeColumnsToContents();
 
/*
QString instance_str;
instance_str = mymodel->data(mymodel->index(ClassEditor::currIndexOfClassesTable.row(), 3)).toString();
tableForInstance->close();
delete model;
delete tableForInstance;
model = new QSqlTableModel();
tableForInstance = new QTableView();
model->setTable(instance_str);
model->setEditStrategy(QSqlTableModel::OnManualSubmit);
tableForInstance->setModel(model);
 
model->select();
tableForInstance->setWindowTitle(instance_str);
tableForInstance->show();
*/
}
 
void ClassEditor::on_action_ID_triggered(bool is_checked){ // îáðàáàòûâàåì âûáîð â ìåíþ "Ïîêàçûâàòü ID"