Commit 706c826b authored by hjk's avatar hjk

TreeModel: Make item flags configurable in "group header" constructor

Default to 'editable' (not selectable), intentionally changes behavior
in the Kits, Compilers and Debugger option pages, but brings it more
in line with Qt version.

Change-Id: I71739a5d61c9980fc6da729dcb59b0900047f066
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent ae6730d7
......@@ -616,9 +616,9 @@ TreeItem::TreeItem()
{
}
TreeItem::TreeItem(const QStringList &displays)
TreeItem::TreeItem(const QStringList &displays, int flags)
: m_parent(0), m_model(0), m_displays(new QStringList(displays)), m_lazy(false), m_populated(false),
m_flags(Qt::ItemIsEnabled|Qt::ItemIsSelectable)
m_flags(flags)
{
}
......
......@@ -49,7 +49,7 @@ class QTCREATOR_UTILS_EXPORT TreeItem
{
public:
TreeItem();
explicit TreeItem(const QStringList &displays);
explicit TreeItem(const QStringList &displays, int flags = Qt::ItemIsEnabled);
virtual ~TreeItem();
virtual TreeItem *parent() const { return m_parent; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment