summaryrefslogtreecommitdiff
path: root/tests/auto/qhelpcontentmodel
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2018-06-20 11:04:39 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2018-07-09 12:15:30 +0000
commitcffe60fdb87d39494c92500aa6f99204d20fb90a (patch)
tree2ded8c7b3351588b82abf85dd46b2fd598322258 /tests/auto/qhelpcontentmodel
parentb3a591884528bc2793172ad9950be60844b1ecc2 (diff)
downloadqttools-cffe60fdb87d39494c92500aa6f99204d20fb90a.tar.gz
Order contents items alphabetically by title
If many different doc versions are installed order them by version number in the reverse order (the bigger version in front) Task-number: QTBUG-21357 Task-number: QTBUG-59364 Task-number: QTCREATORBUG-10004 Task-number: QTCREATORBUG-17949 Change-Id: I8429c3d63fedf9811ea41ca13f754b677ff55a1e Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'tests/auto/qhelpcontentmodel')
-rw-r--r--tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp b/tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp
index 5a39cc923..039ea2f9a 100644
--- a/tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp
+++ b/tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp
@@ -146,7 +146,7 @@ void tst_QHelpContentModel::contentItemAt()
item = m->contentItemAt(m->index(4, 0, root));
QCOMPARE(item->title(), QString("qmake Concepts"));
- item = m->contentItemAt(m->index(1, 0));
+ item = m->contentItemAt(m->index(0, 0));
QCOMPARE(item->title(), QString("Fancy Manual"));
w.start();