aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/righttoleft/textalignment/textalignment.cpp
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2023-03-23 13:25:21 +0100
committerOliver Eftevaag <oliver.eftevaag@qt.io>2023-07-03 10:57:51 +0200
commitdba7d84843b47d67f5e6b9e6dc711d21ea753822 (patch)
treefcde2f118f2c7654997f9bd066d41c20359926c2 /tests/manual/righttoleft/textalignment/textalignment.cpp
parent6bf49d1262191c9b07a4f2243bc1413551c973ed (diff)
move righttoleft example to manual test, and revamp it
The patch makes the following changes to the example: - It fixes all qmllint warnings. - It translates all user-facing strings. - It reorders some properties. - It removes the Loaders in layoutdirection.qml - It also does some other things, like removing unused lines of code, etc. Pick-to: 6.5 6.6 Change-Id: I798db60a2bf2d87c64b68947588585d10ba4015d Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual/righttoleft/textalignment/textalignment.cpp')
-rw-r--r--tests/manual/righttoleft/textalignment/textalignment.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/manual/righttoleft/textalignment/textalignment.cpp b/tests/manual/righttoleft/textalignment/textalignment.cpp
new file mode 100644
index 0000000000..83353dcd44
--- /dev/null
+++ b/tests/manual/righttoleft/textalignment/textalignment.cpp
@@ -0,0 +1,18 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#include <QtGui/qguiapplication.h>
+#include <QtQuick/QQuickView>
+
+int main(int argc, char *argv[])
+{
+ QGuiApplication app(argc, argv);
+
+ QCoreApplication::setApplicationName("textalignment-manual-test");
+ QCoreApplication::setOrganizationName("QtProject");
+ QQuickView view;
+ view.setSource(QUrl(QStringLiteral("qrc:/qt/qml/textalignment/textalignment.qml")));
+ view.show();
+
+ return app.exec();
+}