Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 206 → Rev 209

/trunk/DBViewer/mainwindow.cpp
35,6 → 35,7
ui->treeWidget_2->setAlternatingRowColors(true);
 
ui->treeWidget->setIconSize(QSize(30,30));
ui->treeWidget->setColumnWidth(0, 400);
ui->treeWidget_2->setIconSize(QSize(128,128));
 
MainWindow::readSettings();
86,6 → 87,7
ui->pushButton_4->setEnabled(false);
 
// setFrm.show();
treeForm.show();
 
connect(ui->getsettingAct, SIGNAL(triggered()), this, SLOT(getSetting())); // âûáîð â ãëàâíîé ôîðìå â ìåíþ "Áàçà äàííûõ" ïóíêòà "Ïàðàìåòðû ñîåäèíåíèÿ"
connect(setFrm.pushButton, SIGNAL(clicked()), this, SLOT(applySetting()));
192,7 → 194,17
// // // parents.last()->appendChild(new QTreeWidgetItem(columnData, parents.last()));
QTreeWidgetItem* itm_tmp;
itm_tmp = new QTreeWidgetItem( parents.last());
itm_tmp->setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled);
 
/*
QLineEdit * edit_line;
edit_line = new QLineEdit(this);
ui->treeWidget->setItemWidget(itm_tmp, 5, edit_line);
*/
//static QStandartDelegate delegate;
ui->treeWidget->setItemDelegateForColumn(5, &standart_delegate);
 
 
itm_tmp->setText(0, QString(columnData.at(0).toString()));
if (columnData.at(1).toString() == "true") {
itm_tmp->setCheckState(0,Qt::Checked);