summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-11-26 14:05:01 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-27 13:52:14 +0100
commit80a0227a57b62a30ec3fcac4e3d986cc97bc3ae4 (patch)
tree4941a60e1a6f40ed97f379a0e24168c8f9dc407e
parent777a881641675b7060f4aac27324bd0123a4a1ae (diff)
downloadqtscript-80a0227a57b62a30ec3fcac4e3d986cc97bc3ae4.tar.gz
Always get the default flags from QAIM.
Change-Id: I9171bce02bc1cd0973fee43af1774f887b4f8668 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
-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))