diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2018-03-13 15:54:27 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2018-03-13 15:22:20 +0000 |
commit | 37b86c89d1db1dc89ff9e6c272d1124678902947 (patch) | |
tree | 3a3cbcd884984d7d958e3366240d7408cc0b4276 /src/libs/utils/stringutils.h | |
parent | a5d6fe33cbc0ab9b29711b345de78ae63ecf2afb (diff) | |
download | qt-creator-37b86c89d1db1dc89ff9e6c272d1124678902947.tar.gz |
Utils: Introduce case friendly comparison function to stringutils
Use this operator in the miniprojecttargetselector as well as the
projectconfigurationmodel. This should unify the sorting of
build-/deploy- and runconfigurations in various places in Creator.
Task-number: QTCREATORBUG-20023
Change-Id: I7aed2ebcb9d65244395d68b7dc5da599d6503962
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/utils/stringutils.h')
-rw-r--r-- | src/libs/utils/stringutils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/utils/stringutils.h b/src/libs/utils/stringutils.h index 1ec3a0aeec..b97063609c 100644 --- a/src/libs/utils/stringutils.h +++ b/src/libs/utils/stringutils.h @@ -56,6 +56,9 @@ QTCREATOR_UTILS_EXPORT QString stripAccelerator(const QString &text); QTCREATOR_UTILS_EXPORT bool readMultiLineString(const QJsonValue &value, QString *out); +// Compare case insensitive and use case sensitive comparison in case of that being equal. +QTCREATOR_UTILS_EXPORT int caseFriendlyCompare(const QString &a, const QString &b); + class QTCREATOR_UTILS_EXPORT AbstractMacroExpander { public: |