summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteinitialization.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-04-19 11:23:55 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-04 08:12:33 +0200
commitda3cb1deb6c752f8e4c05434e3451432e5d787ba (patch)
treec2f7992eeee39617102cb864f798ebd7c06ec5f0 /src/tools/uic/cpp/cppwriteinitialization.h
parent8231614661e1eecaabcf33d1e332809556e86089 (diff)
uic: Generate Qt 5 connection syntax
Add a enum and formatting for member function pointer based connections. Now preferably use member function pointer for Qt classes or parameterless connections. This should not require qOverload() within Qt classes after the Signal/Slot disambiguation. Add command line option to force either syntax for all connections. Task-number: QTBUG-76375 Change-Id: Icdb4051e1173172a71cd536bdbc7d1ab1edf267d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.h')
-rw-r--r--src/tools/uic/cpp/cppwriteinitialization.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/uic/cpp/cppwriteinitialization.h b/src/tools/uic/cpp/cppwriteinitialization.h
index 0a6ddbb3c8a..df06358077e 100644
--- a/src/tools/uic/cpp/cppwriteinitialization.h
+++ b/src/tools/uic/cpp/cppwriteinitialization.h
@@ -37,6 +37,8 @@
#include <qstack.h>
#include <qtextstream.h>
+enum class ConnectionSyntax;
+
QT_BEGIN_NAMESPACE
class Driver;
@@ -238,6 +240,10 @@ private:
QString writeBrushInitialization(const DomBrush *brush);
void addButtonGroup(const DomWidget *node, const QString &varName);
void addWizardPage(const QString &pageVarName, const DomWidget *page, const QString &parentWidget);
+ bool isCustomWidget(const QString &className) const;
+ ConnectionSyntax connectionSyntax(const QString &senderSignature,
+ const QString &senderClassName,
+ const QString &receiverClassName) const;
const Uic *m_uic;
Driver *m_driver;