summaryrefslogtreecommitdiffstats
path: root/tests/manual/qtextcursorinsert/main.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2023-03-13 08:20:59 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2023-09-12 06:20:23 +0100
commit63eaa3a989075ea0e7bd8e37dcc14c9b191330d3 (patch)
treef0c092f822af302d0d86860188cd5814909474fb /tests/manual/qtextcursorinsert/main.cpp
parent185627557e15746a1d8bccbc4ad48e7855dcb1a4 (diff)
Add manual test for QTextCursor::insert*
Visualize what's going on with tst_QTextCursor::insertMarkdown() at least. But this could be expanded for other purposes. It's also interesting to test drag-and-drop with this. And you can save the result to any supported text format. Change-Id: I363c32ff9b1bd7c53c562b08c58de95a69be0aa9 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/manual/qtextcursorinsert/main.cpp')
-rw-r--r--tests/manual/qtextcursorinsert/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/manual/qtextcursorinsert/main.cpp b/tests/manual/qtextcursorinsert/main.cpp
new file mode 100644
index 00000000000..75b4e3e41ae
--- /dev/null
+++ b/tests/manual/qtextcursorinsert/main.cpp
@@ -0,0 +1,14 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#include "widget.h"
+
+#include <QApplication>
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ Widget w;
+ w.show();
+ return a.exec();
+}