Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 212 → Rev 213

/trunk/DBViewer/database.cpp
1163,6 → 1163,7
for (int i=0; i < row; i++){
QTreeWidgetItem * item_tmp;
QString modelName;
QString model_id;
 
bool enabled;
 
1172,10 → 1173,13
// modelString =
 
modelName = model_for_ListModelsTable->data(model_for_ListModelsTable->index(i, 1)).toString();
model_id = model_for_ListModelsTable->data(model_for_ListModelsTable->index(i, 0)).toString();
 
enabled = model_for_ListModelsTable->data(model_for_ListModelsTable->index(i, 3)).toBool();
item_tmp = new QTreeWidgetItem(ui->treeWidget);
item_tmp->setText(0, modelName);
item_tmp->setText(4, QVariant(i).toString()); // çàïèøåì â 4 êîëîíêó íîìåðñòðîêè ìîäåëè â òàáëèöå ìîäåëåé
item_tmp->setText(6, model_id);
if (enabled) item_tmp->setCheckState(0,Qt::Checked);
else item_tmp->setCheckState(0,Qt::Unchecked);