summaryrefslogtreecommitdiff
path: root/src/plugins/valgrind/xmlprotocol/stackmodel.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-09-24 15:48:17 +0200
committerhjk <qthjk@ovi.com>2012-09-25 09:26:32 +0200
commit4e4580d4c267dbb995ede106caa3347d556ad88c (patch)
treec0b2fd5dbfa85a34d769b2d79849312274a278e0 /src/plugins/valgrind/xmlprotocol/stackmodel.cpp
parentdb0a6f525bd52039873bf77eb1f7010b95eea30d (diff)
downloadqt-creator-4e4580d4c267dbb995ede106caa3347d556ad88c.tar.gz
Make handling of model ids compatible with Qt 5.
QAbstractItemModel::internalId() returns a quintptr in Qt 5. Handle this in a way compatible with both Qt 4 and Qt 5. Change-Id: Iacb9ab71e95085f061fac1e3f4e4759ed43ca7ef Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/valgrind/xmlprotocol/stackmodel.cpp')
-rw-r--r--src/plugins/valgrind/xmlprotocol/stackmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/valgrind/xmlprotocol/stackmodel.cpp b/src/plugins/valgrind/xmlprotocol/stackmodel.cpp
index 40291f1c5c..b736f83252 100644
--- a/src/plugins/valgrind/xmlprotocol/stackmodel.cpp
+++ b/src/plugins/valgrind/xmlprotocol/stackmodel.cpp
@@ -192,7 +192,7 @@ QModelIndex StackModel::parent(const QModelIndex &child) const
{
QTC_ASSERT(!child.isValid() || child.model() == this, return QModelIndex());
- if (child.internalId() == -1)
+ if (quintptr(child.internalId()) == quintptr(-1))
return QModelIndex();
return createIndex(child.internalId(), 0, -1);
}