summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scripttools/debugging/qscriptbreakpointsmodel.cpp2
-rw-r--r--src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/scripttools/debugging/qscriptbreakpointsmodel.cpp b/src/scripttools/debugging/qscriptbreakpointsmodel.cpp
index 9469157..32d9f38 100644
--- a/src/scripttools/debugging/qscriptbreakpointsmodel.cpp
+++ b/src/scripttools/debugging/qscriptbreakpointsmodel.cpp
@@ -475,7 +475,7 @@ Qt::ItemFlags QScriptBreakpointsModel::flags(const QModelIndex &index) const
{
if (!index.isValid())
return 0;
- Qt::ItemFlags ret = Qt::ItemIsEnabled | Qt::ItemIsSelectable;
+ Qt::ItemFlags ret = QAbstractItemModel::flags(index);
switch (index.column()) {
case 0:
ret |= Qt::ItemIsUserCheckable;
diff --git a/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp b/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
index 99880be..0054320 100644
--- a/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
+++ b/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
@@ -910,7 +910,7 @@ Qt::ItemFlags QScriptDebuggerLocalsModel::flags(const QModelIndex &index) const
Q_D(const QScriptDebuggerLocalsModel);
if (!index.isValid())
return 0;
- Qt::ItemFlags ret = Qt::ItemIsEnabled | Qt::ItemIsSelectable;
+ Qt::ItemFlags ret = QAbstractItemModel::flags(index);
if ((index.column() == 1) && index.parent().isValid()) {
QScriptDebuggerLocalsModelNode *node = d->nodeFromIndex(index);
if (!(node->property.flags() & QScriptValue::ReadOnly))