qt6-bb10/examples/widgets/richtext/textedit
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
..
images TextEdit example: add indent/unindent feature 2019-05-06 19:24:32 +00:00
.prev_CMakeLists.txt Regenerate examples 2020-02-04 18:50:39 +00:00
CMakeLists.txt Regenerate examples 2020-02-04 18:50:39 +00:00
example.html preserve HTML heading level in QTextBlockFormat; demonstrate in example 2018-03-02 08:05:00 +00:00
example.md Render markdown task lists (checkboxes instead of bullets) in QTextEdit 2019-05-02 04:10:21 +00:00
main.cpp Prepare for deprecating the QDesktopWidget 2019-10-15 20:09:29 +02:00
textedit.cpp Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
textedit.h TextEdit example: add indent/unindent feature 2019-05-06 19:24:32 +00:00
textedit.pro qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
textedit.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
textedit.qrc TextEdit example: add indent/unindent feature 2019-05-06 19:24:32 +00:00