summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-19 19:20:37 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-03-19 19:20:37 (GMT)
commit017478570eb47241141fa06e8ca2688e4a2b1f87 (patch)
treed650f42869b313f983edf5c7b7ac1bda0ba6faf2 /Source
parent36f158159bb83ff17fb11f0b3b2554318ed1a9cd (diff)
parent6387f6d85ca7abbc2294d21241b1b2a5bc5b6d4d (diff)
downloadCMake-017478570eb47241141fa06e8ca2688e4a2b1f87.zip
CMake-017478570eb47241141fa06e8ca2688e4a2b1f87.tar.gz
CMake-017478570eb47241141fa06e8ca2688e4a2b1f87.tar.bz2
Merge topic 'expand-version-of-Qt5-gui-fix'
6387f6d cmake-gui: Use the QStandardItemModel workaround until 5.1.0.
Diffstat (limited to 'Source')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index 031350b..6006758 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/Source/QtDialog/QCMakeCacheView.cxx
@@ -491,7 +491,7 @@ QCMakePropertyList QCMakeCacheModel::properties() const
// go to the next in the tree
while(!idxs.isEmpty() && (
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 3)
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) && QT_VERSION < QT_VERSION_CHECK(5, 1, 0)
(idxs.last().row()+1) >= rowCount(idxs.last().parent()) ||
#endif
!idxs.last().sibling(idxs.last().row()+1, 0).isValid()))