Subversion Repositories OpenInventory

Rev

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

Rev 209 Rev 211
Line 192... Line 192...
192
192
193
            // Append a new item to the current parent's list of children.
193
            // Append a new item to the current parent's list of children.
194
          // // //  parents.last()->appendChild(new QTreeWidgetItem(columnData, parents.last()));
194
          // // //  parents.last()->appendChild(new QTreeWidgetItem(columnData, parents.last()));
195
            QTreeWidgetItem* itm_tmp;
195
            QTreeWidgetItem* itm_tmp;
196
            itm_tmp = new QTreeWidgetItem( parents.last());
196
            itm_tmp = new QTreeWidgetItem( parents.last());
197
            itm_tmp->setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled);
197
            itm_tmp->setFlags(Qt::ItemIsEditable | Qt::ItemIsSelectable | Qt::ItemIsEnabled);
198
198
199
/*
199
/*
200
            QLineEdit * edit_line;
200
            QLineEdit * edit_line;
201
            edit_line = new QLineEdit(this);
201
            edit_line = new QLineEdit(this);
202
            ui->treeWidget->setItemWidget(itm_tmp, 5, edit_line);
202
            ui->treeWidget->setItemWidget(itm_tmp, 5, edit_line);