summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/itemmodels/qitemselectionmodel
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/itemmodels/qitemselectionmodel')
-rw-r--r--tests/auto/corelib/itemmodels/qitemselectionmodel/tst_qitemselectionmodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/itemmodels/qitemselectionmodel/tst_qitemselectionmodel.cpp b/tests/auto/corelib/itemmodels/qitemselectionmodel/tst_qitemselectionmodel.cpp
index 92f9c87b9f..e9bc0581be 100644
--- a/tests/auto/corelib/itemmodels/qitemselectionmodel/tst_qitemselectionmodel.cpp
+++ b/tests/auto/corelib/itemmodels/qitemselectionmodel/tst_qitemselectionmodel.cpp
@@ -82,8 +82,10 @@ private slots:
void layoutChangedWithAllSelected2();
void layoutChangedTreeSelection();
void deselectRemovedMiddleRange();
+#if QT_DEPRECATED_SINCE(5, 15)
void rangeOperatorLessThan_data();
void rangeOperatorLessThan();
+#endif
void setModel();
void testDifferentModels();
@@ -2445,6 +2447,7 @@ static QStandardItemModel* getModel(QObject *parent)
return model;
}
+#if QT_DEPRECATED_SINCE(5, 15)
enum Result {
LessThan,
NotLessThan,
@@ -2579,6 +2582,7 @@ void tst_QItemSelectionModel::rangeOperatorLessThan()
if (!(r2 < r4))
QVERIFY(r4 < r2);
}
+#endif
void tst_QItemSelectionModel::setModel()
{