diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-02 11:27:46 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-12-12 07:27:15 +0000 |
commit | b86d0b62156993936bf93169a895a92ad60adf7d (patch) | |
tree | 216c2538ad1d0afaf6dae79f205ad66655e75600 /src/tools/uic/customwidgetsinfo.h | |
parent | 384b9d8fedd3c32b4a8d05740cc1c4bd73e171d8 (diff) | |
download | qtbase-b86d0b62156993936bf93169a895a92ad60adf7d.tar.gz |
uic: Small refactorings
- Do not use QString::number() to stream numbers.
- Do not use QLatin1String/Char to stream strings or characters.
- Add a convenience methods to determine the container page add method
for simple containers.
- Similarly, extract a method to determine the layout method and
simplify the code accordingly.
- Fix Clang warnings about else if after return/continue.
- Use QString::isEmpty() instead of size() to check emptiness.
- Fix QHash-contains()/value() Antipattern
Task-number: PYSIDE-797
Change-Id: I9c61d20f46c8d142b947126a27faaf54b41f9e0c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/tools/uic/customwidgetsinfo.h')
-rw-r--r-- | src/tools/uic/customwidgetsinfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/uic/customwidgetsinfo.h b/src/tools/uic/customwidgetsinfo.h index 82e86a1266..a4278b1aca 100644 --- a/src/tools/uic/customwidgetsinfo.h +++ b/src/tools/uic/customwidgetsinfo.h @@ -52,6 +52,7 @@ public: { return m_customWidgets.value(name); } QString customWidgetAddPageMethod(const QString &name) const; + QString simpleContainerAddPageMethod(const QString &name) const; QString realClassName(const QString &className) const; |