Subversion Repositories OpenInventory

Rev

Rev 189 | Rev 193 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 189 Rev 192
Line 30... Line 30...
30
30
31
    ui->treeWidget->setAlternatingRowColors(true);
31
    ui->treeWidget->setAlternatingRowColors(true);
32
    ui->treeWidget_2->setAlternatingRowColors(true);
32
    ui->treeWidget_2->setAlternatingRowColors(true);
33
33
34
    ui->treeWidget->setIconSize(QSize(30,30));
34
    ui->treeWidget->setIconSize(QSize(30,30));
35
    ui->treeWidget_2->setIconSize(QSize(30,30));
35
    ui->treeWidget_2->setIconSize(QSize(64,64));
36
36
37
    MainWindow::readSettings();
37
    MainWindow::readSettings();
38
38
39
    MainWindow::openDataBase();
39
    MainWindow::openDataBase();
40
40
Line 394... Line 394...
394
bool MainWindow::buildPreviewModel(QString modelName, QString rootClassID){
394
bool MainWindow::buildPreviewModel(QString modelName, QString rootClassID){
395
QSqlQuery q;
395
QSqlQuery q;
396
QString sql_str;
396
QString sql_str;
397
QString field_name_str;
397
QString field_name_str;
398
QString root_class_name;
398
QString root_class_name;
399
bool ok;
399
//bool ok;
400
int field_name;
400
//int field_name;
401
401
402
//ui->treeWidget->clear();
402
//ui->treeWidget->clear();
403
403
404
root_class_name = MainWindow::ClassName(rootClassID); // îïðåäåëÿåì èìÿ êëàññà
404
root_class_name = MainWindow::ClassName(rootClassID); // îïðåäåëÿåì èìÿ êëàññà
405
405
Line 458... Line 458...
458
bool MainWindow::rebuildPreviewModel(QTreeWidgetItem* root_item, QString rootClassID, int row){
458
bool MainWindow::rebuildPreviewModel(QTreeWidgetItem* root_item, QString rootClassID, int row){
459
QSqlQuery q;
459
QSqlQuery q;
460
QString sql_str;
460
QString sql_str;
461
QString field_name_str;
461
QString field_name_str;
462
QString root_class_name;
462
QString root_class_name;
463
bool ok;
463
//bool ok;
464
int field_name;
464
//int field_name;
465
465
466
//ui->treeWidget->clear();
466
//ui->treeWidget->clear();
467
467
468
root_class_name = MainWindow::ClassName(rootClassID); // îïðåäåëÿåì èìÿ êëàññà
468
root_class_name = MainWindow::ClassName(rootClassID); // îïðåäåëÿåì èìÿ êëàññà
469
469