qt5base-lts/examples/widgets
Volker Hilsheimer bcaff2b06f Remove QGuiAction again and split QAction implementation up instead
Duplicating the number of classes is a high price to pay to be able to
have some QAction functionality behave differently, or be only available
in widgets applications.

Instead, declare the entire API in QtGui in QAction* classes, and
delegate the implementation of QtWidgets specific functionality to
the private. The creation of the private is then delegated to the
Q(Gui)ApplicationPrivate instance through a virtual factory function.

Change some public APIs that are primarily useful for specialized tools
such as Designer to operate on QObject* rather than QWidget*. APIs that
depend on QtWidgets types have been turned into inline template
functions, so that they are instantiated only at the caller side, where
we can expect the respective types to be fully defined. This way, we
only need to forward declare a few classes in the header, and don't
need to generate any additional code for e.g. language bindings.

Change-Id: Id0b27f9187652ec531a2e8b1b9837e82dc81625c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-03-29 11:18:57 +01:00
..
animation Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
desktop QComboBox: remove currentIndexChanged(const QString&) 2020-02-19 11:32:40 +00:00
dialogs Merge remote-tracking branch 'origin/5.15' into dev 2020-02-13 18:31:40 +01:00
doc Merge remote-tracking branch 'origin/5.15' into dev 2020-02-26 18:39:21 +01:00
draganddrop Merge remote-tracking branch 'origin/5.15' into dev 2020-03-03 14:13:02 +01:00
effects Regenerate examples 2020-02-04 18:50:39 +00:00
gallery Add a widget gallery example 2020-01-09 13:52:25 +01:00
gestures Regenerate examples 2020-02-04 18:50:39 +00:00
graphicsview Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
itemviews Merge remote-tracking branch 'origin/5.15' into dev 2020-03-16 18:41:27 +01:00
layouts Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
mac cmake: Remove APPLE prefix from platform names 2020-03-16 17:57:56 +01:00
mainwindows Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
painting Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qnx/foreignwindows Basic foreign window support for QNX 2019-05-01 13:49:18 +00:00
richtext Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
scroller Regenerate examples 2020-02-04 18:50:39 +00:00
statemachine Regenerate examples 2020-02-04 18:50:39 +00:00
tools Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
touch Merge remote-tracking branch 'origin/5.15' into dev 2020-02-13 18:31:40 +01:00
tutorials Re-generate various CMake projects and configure after merge 2020-03-16 20:43:56 +01:00
widgets Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
windowcontainer Post-merge fixes 2020-01-30 20:45:08 +00:00
CMakeLists.txt cmake: Remove APPLE prefix from platform names 2020-03-16 17:57:56 +01:00
widgets.pro Add a widget gallery example 2020-01-09 13:52:25 +01:00