diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-03-13 20:19:27 -0700 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-03-18 22:02:01 -0700 |
| commit | a96871eac888e0c01b29d092bafa80755f1fb47a (patch) | |
| tree | b28e6cc93b054a6d898822dd5a91561c0b7d4395 /examples/quickcontrols/texteditor/texteditor.cpp | |
| parent | 3b6c8d305a91609713278c694a5d2297a880956e (diff) | |
Adjust Controls Text Editor example and docs further
- text formatting includes alignment, not just font properties
- update links in example.md
- update texteditor.html: don't mention Qt Labs Platform, but
link to some recent new stuff
- if ToolButton.action is bound, enabled is redundant (the Action
already has it)
- don't include QApplication
Amends 6217408799c43869b8a7c1fcbff882d42ae71171 and
21b3c4741ef07044952d1cae18ed9665cafe00c3
Change-Id: Ie4565829f02d8ee1541ba4af9d64bd044739179f
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'examples/quickcontrols/texteditor/texteditor.cpp')
| -rw-r--r-- | examples/quickcontrols/texteditor/texteditor.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/quickcontrols/texteditor/texteditor.cpp b/examples/quickcontrols/texteditor/texteditor.cpp index dd4800f7b5..36f27bc5c2 100644 --- a/examples/quickcontrols/texteditor/texteditor.cpp +++ b/examples/quickcontrols/texteditor/texteditor.cpp @@ -1,11 +1,7 @@ // Copyright (C) 2017 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -#ifdef QT_WIDGETS_LIB -#include <QApplication> -#else #include <QGuiApplication> -#endif #include <QFontDatabase> #include <QDebug> #include <QQmlApplicationEngine> @@ -17,11 +13,7 @@ int main(int argc, char *argv[]) QGuiApplication::setApplicationName("Text Editor"); QGuiApplication::setOrganizationName("QtProject"); -#ifdef QT_WIDGETS_LIB - QApplication app(argc, argv); -#else QGuiApplication app(argc, argv); -#endif if (QFontDatabase::addApplicationFont(":/fonts/fontello.ttf") == -1) qWarning() << "Failed to load fontello.ttf"; |
