Хранилища Subversion OpenInventory

Редакция

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

Редакция 166 Редакция 168
Строка 6... Строка 6...
6
    QMainWindow(parent),
6
    QMainWindow(parent),
7
    ui(new Ui::ClassEditor)
7
    ui(new Ui::ClassEditor)
8
{
8
{
9
    ui->setupUi(this);
9
    ui->setupUi(this);
10
10
11
     iconFrm.show();
11
   //  iconFrm.show();
12
   
12
   
13
13
14
14
15
    readSettings();
15
    readSettings();
16
16
Строка 804... Строка 804...
804
                                                    bool ok;
804
                                                    bool ok;
805
805
806
                                                    ok = mymodel->setData(mymodel->index(currIndexOfClassesTable.row(), 5), QVariant (bytes), Qt::EditRole);
806
                                                    ok = mymodel->setData(mymodel->index(currIndexOfClassesTable.row(), 5), QVariant (bytes), Qt::EditRole);
807
                                                    mymodel->submitAll();
807
                                                    mymodel->submitAll();
808
808
-
 
809
809
                                              }
810
                                              }
810
811
811
812
812
}
813
}
813
814
814
void ClassEditor::on_myModel_dataChanged( const QModelIndex & topLeft, const QModelIndex & bottomRight ){
815
void ClassEditor::on_myModel_dataChanged( const QModelIndex & topLeft, const QModelIndex & bottomRight ){
815
816
816
int i;
817
int i;
817
i++;
818
i++;
818
ui->tableView->resizeColumnsToContents();
819
ui->tableView->resizeColumnsToContents();
819
-
 
-
 
820
ui->tableView->resizeRowsToContents();
820
821
821
822
822
823
823
824
824
}
825
}
Строка 1149... Строка 1150...
1149
    ui->tableView->hideColumn(2);
1150
    ui->tableView->hideColumn(2);
1150
    CPictureDelegate *pictureDelegate;
1151
    CPictureDelegate *pictureDelegate;
1151
    pictureDelegate = new CPictureDelegate(this);
1152
    pictureDelegate = new CPictureDelegate(this);
1152
    pictureDelegate->setTableView(ui->tableView);
1153
    pictureDelegate->setTableView(ui->tableView);
1153
    ui->tableView->setItemDelegateForColumn(5, pictureDelegate);
1154
    ui->tableView->setItemDelegateForColumn(5, pictureDelegate);
1154
-
 
-
 
1155
    ui->tableView->resizeColumnsToContents();
-
 
1156
    ui->tableView->resizeRowsToContents();
1155
    /*
1157
    /*
1156
    for (int i=0; i < mymodel->rowCount(); i++){
1158
    for (int i=0; i < mymodel->rowCount(); i++){
1157
    ui->tableView->setRowHeight(i, 100);
1159
    ui->tableView->setRowHeight(i, 100);
1158
    }
1160
    }
1159
*/
1161
*/