summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteincludes.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2018-01-09 16:29:55 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2018-01-15 15:50:12 +0000
commit748836dae80a7d11901f3f0630168829076d11a8 (patch)
tree11d3ee3bd0ee04ddba126fc6ef9ae21bcf9dc5e7 /src/tools/uic/cpp/cppwriteincludes.h
parent000c76ada5cc21479fc479be16a7507fed6490f8 (diff)
Don't generate QAction include unconditionally
Generate it only when the form contains some actions. Change-Id: Ic1d64003ccff6102174771c04999cf7c90ac2ae8 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteincludes.h')
-rw-r--r--src/tools/uic/cpp/cppwriteincludes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/uic/cpp/cppwriteincludes.h b/src/tools/uic/cpp/cppwriteincludes.h
index f91e1cf8ff..7f03849798 100644
--- a/src/tools/uic/cpp/cppwriteincludes.h
+++ b/src/tools/uic/cpp/cppwriteincludes.h
@@ -56,6 +56,13 @@ struct WriteIncludes : public TreeWalker
void acceptProperty(DomProperty *node) override;
//
+// actions
+//
+ void acceptActionGroup(DomActionGroup *node) Q_DECL_OVERRIDE;
+ void acceptAction(DomAction *node) Q_DECL_OVERRIDE;
+ void acceptActionRef(DomActionRef *node) Q_DECL_OVERRIDE;
+
+//
// custom widgets
//
void acceptCustomWidgets(DomCustomWidgets *node) override;