Хранилища Subversion OpenInventory

Редакция

Редакция 82 | Редакция 86 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 82 Редакция 83
Строка 273... Строка 273...
273
273
274
currInctanceTable = class_instance; //
274
currInctanceTable = class_instance; //
275
modelForDescription->setInctance(class_instance); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
275
modelForDescription->setInctance(class_instance); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
276
//class_instance.append(tr("_inctance"));
276
//class_instance.append(tr("_inctance"));
277
str_fltr.append(class_indx);
277
str_fltr.append(class_indx);
-
 
278
str_fltr.append(tr(" AND FieldType <> \"pointer\""));
278
279
279
model->setTable(class_instance);
280
model->setTable(class_instance);
280
//model->setTable(tr("memory"));
281
//model->setTable(tr("memory"));
281
model->setEditStrategy(QSqlTableModel::OnManualSubmit);
282
model->setEditStrategy(QSqlTableModel::OnManualSubmit);
282
model->select();
283
model->select();
Строка 287... Строка 288...
287
288
288
modelForDescription->setFilter(str_fltr);
289
modelForDescription->setFilter(str_fltr);
289
modelForDescription->select();
290
modelForDescription->select();
290
ui->tableView_2->resizeColumnsToContents();
291
ui->tableView_2->resizeColumnsToContents();
291
292
-
 
293
-
 
294
 str_fltr = tr("ClassIdentifer = ");
-
 
295
 modelForPointers->setInctance(class_instance);  // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
292
// str_fltr.clear();
296
 str_fltr.append(class_indx);
-
 
297
 str_fltr.append(tr(" AND FieldType = \"pointer\""));
293
// str_fltr.append( tr(" FieldType = pointer "));
298
// str_fltr.append( tr(" FieldType = pointer "));
-
 
299
-
 
300
-
 
301
294
modelForPointers->setFilter(tr(" FieldType = \"pointer\" "));
302
 modelForPointers->setFilter(str_fltr);
295
modelForPointers->select();
303
modelForPointers->select();
296
ui->tableView_3->setModel(modelForPointers);
304
ui->tableView_3->setModel(modelForPointers);
-
 
305
ui->tableView_3->resizeColumnsToContents();
297
306
298
//connect(ui->tableView, SIGNAL(clicked(const QModelIndex)), this, SLOT(on_tableView_clicked(const QModelIndex)));
307
//connect(ui->tableView, SIGNAL(clicked(const QModelIndex)), this, SLOT(on_tableView_clicked(const QModelIndex)));
299
connect(mymodel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_myModel_dataChanged(QModelIndex,QModelIndex)));
308
connect(mymodel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_myModel_dataChanged(QModelIndex,QModelIndex)));
300
connect(modelForDescription, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_modelForDescription_dataChanged(QModelIndex,QModelIndex)));
309
connect(modelForDescription, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_modelForDescription_dataChanged(QModelIndex,QModelIndex)));
301
//connect(ui->newClassAction, SIGNAL(triggered(bool)), this, SLOT(on_pushButton_clicked(bool)));
310
//connect(ui->newClassAction, SIGNAL(triggered(bool)), this, SLOT(on_pushButton_clicked(bool)));
Строка 507... Строка 516...
507
   index_tmp = ui->tableView->model()->index(row, 0);
516
   index_tmp = ui->tableView->model()->index(row, 0);
508
   index_instance = ui->tableView->model()->index(row, 3);
517
   index_instance = ui->tableView->model()->index(row, 3);
509
   tmp_str = ui->tableView->model()->data(index_tmp).toString();
518
   tmp_str = ui->tableView->model()->data(index_tmp).toString();
510
   instance_str = ui->tableView->model()->data(index_instance).toString();
519
   instance_str = ui->tableView->model()->data(index_instance).toString();
511
   modelForDescription->setInctance(instance_str); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
520
   modelForDescription->setInctance(instance_str); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
512
-
 
-
 
521
   modelForPointers->setInctance(instance_str);
513
522
514
523
515
524
516
 //  instance_str.append(tr("_inctance"));
525
 //  instance_str.append(tr("_inctance"));
517
/*
526
/*
Строка 540... Строка 549...
540
549
541
   currClassID = tmp_str;
550
   currClassID = tmp_str;
542
  // ui->label->setText(QVariant(currIndexOfClassesTable.row()).toString());
551
  // ui->label->setText(QVariant(currIndexOfClassesTable.row()).toString());
543
   filter_str = tr("ClassIdentifer = ");
552
   filter_str = tr("ClassIdentifer = ");
544
   filter_str.append(tmp_str);
553
   filter_str.append(tmp_str);
-
 
554
   filter_str.append(tr(" AND FieldType <> \"pointer\""));
545
   modelForDescription->setFilter(filter_str);
555
   modelForDescription->setFilter(filter_str);
546
   modelForDescription->select();
556
   modelForDescription->select();
547
   ui->tableView_2->resizeColumnsToContents();
557
   ui->tableView_2->resizeColumnsToContents();
-
 
558
-
 
559
   filter_str = tr("ClassIdentifer = ");
-
 
560
   filter_str.append(tmp_str);
-
 
561
   filter_str.append(tr(" AND FieldType = \"pointer\""));
-
 
562
   modelForPointers->setFilter(filter_str);
-
 
563
   modelForPointers->select();
-
 
564
   ui->tableView_3->resizeColumnsToContents();
-
 
565
-
 
566
-
 
567
-
 
568
548
   i++;
569
   i++;
549
}
570
}
550
571
551
572
552
573