Debugger: Remove one use of TreeItem::setFlags

One step towards the removal of the TreeItem::m_flags member
that's unused in most instances.

Change-Id: I0cdc3d1e8a47c3925fb54c129b724ded8721577b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-07-27 17:12:06 +02:00
committed by hjk
parent cda7a3188f
commit 5211e32b82
3 changed files with 16 additions and 15 deletions

View File

@@ -67,9 +67,6 @@ void ConsoleItemModel::shiftEditableRow()
int position = rootItem()->childCount();
Q_ASSERT(position > 0);
// Disable editing for old editable row
rootItem()->lastChild()->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
appendItem(new ConsoleItem(ConsoleItem::InputType), position);
emit selectEditableRow(index(position, 0, QModelIndex()), QItemSelectionModel::ClearAndSelect);
}