interface/qt: disallow editing and hide header

This commit is contained in:
jussi 2019-10-08 13:01:32 +03:00
parent 846a760ec6
commit 9f0490af5a

View File

@ -91,6 +91,7 @@ void AssignableWidget::genAssignableTree(QTreeView *treeView) {
}
m_assignableTreeView->setModel(assignableModel);
// connect(m_assignableTreeWidget, &QTreeWidget::currentItemChanged, []() {qDebug("item changed");});
m_assignableTreeView->setHeaderHidden(true);
// Don't allow editing the item names
m_assignableTreeView->setEditTriggers(QAbstractItemView::NoEditTriggers);
}