diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-06 15:56:26 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-06 18:09:42 +0100 |
commit | d294f6c732c72f21673b23fcf01c50e2039c5b18 (patch) | |
tree | a35cc272dad06b77cf667866742e00ab7f61ca21 /sources/shiboken6/generator | |
parent | 7526d9c4aa884a9d03700a76751158fd9c8bfece (diff) |
Documentation/TOC sorting: Also sort Qt functions by the 2nd character
This makes the function table of Qt Core look better.
Amends fe62a95fe11cf2b4904fa09c57996089505a9438.
Pick-to: 6.6
Change-Id: I4f7440e2972feb924cdde187002d1520ecec8c7d
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'sources/shiboken6/generator')
-rw-r--r-- | sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp b/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp index 52e1771bc..9f1915e96 100644 --- a/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp +++ b/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp @@ -965,8 +965,8 @@ static QStringList enumListToToc(const AbstractMetaEnumList &enums) static QChar sortKey(const QString &key) { const auto size = key.size(); - if (size >= 2 && key.at(0) == u'Q' && key.at(1).isUpper()) - return key.at(1); // "QClass" -> 'C' + if (size >= 2 && (key.at(0) == u'Q' || key.at(0) == u'q') && key.at(1).isUpper()) + return key.at(1); // "QClass" -> 'C', "qSin()" -> 'S' if (size >= 3 && key.startsWith("Q_"_L1)) return key.at(2).toUpper(); // "Q_ARG" -> 'A' if (size >= 4 && key.startsWith("QT_"_L1)) |