From 48a1a5564f89e1e8f0b6f4a28398e4ae0b3f751c Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 8 Feb 2023 13:26:22 +0100 Subject: [PATCH] Examples: move widgets/codeeditor into manual tests It's not a very well written example, using (largely unneed) hacks to implement what it does. It's also misleading - the syntaxhighlighter example is a better showcase for building a useful code editor. Move it to manual tests. Fixes: QTBUG-111025 Pick-to: 6.5 Change-Id: I405d41688235bf3e9a08373e716769f26d02fec6 Reviewed-by: Eskil Abrahamsen Blomfeldt --- doc/src/images/codeeditor-example.png | Bin 14994 -> 0 bytes examples/widgets/doc/src/syntaxhighlighter.qdoc | 6 ------ examples/widgets/widgets/CMakeLists.txt | 1 - examples/widgets/widgets/widgets.pro | 1 - src/widgets/widgets/qplaintextedit.cpp | 3 +-- .../textrendering}/codeeditor/CMakeLists.txt | 0 .../textrendering}/codeeditor/codeeditor.cpp | 0 .../textrendering}/codeeditor/codeeditor.h | 0 .../textrendering}/codeeditor/codeeditor.pro | 0 .../textrendering/codeeditor}/codeeditor.qdoc | 0 .../manual/textrendering}/codeeditor/main.cpp | 0 11 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 doc/src/images/codeeditor-example.png rename {examples/widgets/widgets => tests/manual/textrendering}/codeeditor/CMakeLists.txt (100%) rename {examples/widgets/widgets => tests/manual/textrendering}/codeeditor/codeeditor.cpp (100%) rename {examples/widgets/widgets => tests/manual/textrendering}/codeeditor/codeeditor.h (100%) rename {examples/widgets/widgets => tests/manual/textrendering}/codeeditor/codeeditor.pro (100%) rename {examples/widgets/doc/src => tests/manual/textrendering/codeeditor}/codeeditor.qdoc (100%) rename {examples/widgets/widgets => tests/manual/textrendering}/codeeditor/main.cpp (100%) diff --git a/doc/src/images/codeeditor-example.png b/doc/src/images/codeeditor-example.png deleted file mode 100644 index 32cf94779f7c7cd3f8d8f4e0725af14ed80a5089..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14994 zcmbVzV{~L~)Mdr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syntaxhighlighter.qdoc index 1b4ef2561be..bdd13abdf3d 100644 --- a/examples/widgets/doc/src/syntaxhighlighter.qdoc +++ b/examples/widgets/doc/src/syntaxhighlighter.qdoc @@ -219,10 +219,4 @@ function. The QSyntaxHighlighter class also provides the \l {QSyntaxHighlighter::document()}{document()} function which returns the currently set document. - - \section1 Other Code Editor Features - - The \l{Code Editor Example} shows how to implement line - numbers and how to highlight the current line. - */ diff --git a/examples/widgets/widgets/CMakeLists.txt b/examples/widgets/widgets/CMakeLists.txt index ee90c019b07..d852233c8d1 100644 --- a/examples/widgets/widgets/CMakeLists.txt +++ b/examples/widgets/widgets/CMakeLists.txt @@ -5,7 +5,6 @@ qt_internal_add_example(analogclock) qt_internal_add_example(calculator) qt_internal_add_example(calendarwidget) qt_internal_add_example(charactermap) -qt_internal_add_example(codeeditor) qt_internal_add_example(digitalclock) qt_internal_add_example(groupbox) qt_internal_add_example(icons) diff --git a/examples/widgets/widgets/widgets.pro b/examples/widgets/widgets/widgets.pro index 1dd736e56fb..36d428429c7 100644 --- a/examples/widgets/widgets/widgets.pro +++ b/examples/widgets/widgets/widgets.pro @@ -3,7 +3,6 @@ SUBDIRS = analogclock \ calculator \ calendarwidget \ charactermap \ - codeeditor \ digitalclock \ groupbox \ icons \ diff --git a/src/widgets/widgets/qplaintextedit.cpp b/src/widgets/widgets/qplaintextedit.cpp index cd9889e9ffa..83156aa6b6e 100644 --- a/src/widgets/widgets/qplaintextedit.cpp +++ b/src/widgets/widgets/qplaintextedit.cpp @@ -1187,8 +1187,7 @@ void QPlainTextEditPrivate::ensureViewportLayouted() \sa QTextDocument, QTextCursor, {Qt Widgets - Application Example}, - {Code Editor Example}, {Syntax Highlighter Example}, - {Rich Text Processing} + {Syntax Highlighter Example}, {Rich Text Processing} */ diff --git a/examples/widgets/widgets/codeeditor/CMakeLists.txt b/tests/manual/textrendering/codeeditor/CMakeLists.txt similarity index 100% rename from examples/widgets/widgets/codeeditor/CMakeLists.txt rename to tests/manual/textrendering/codeeditor/CMakeLists.txt diff --git a/examples/widgets/widgets/codeeditor/codeeditor.cpp b/tests/manual/textrendering/codeeditor/codeeditor.cpp similarity index 100% rename from examples/widgets/widgets/codeeditor/codeeditor.cpp rename to tests/manual/textrendering/codeeditor/codeeditor.cpp diff --git a/examples/widgets/widgets/codeeditor/codeeditor.h b/tests/manual/textrendering/codeeditor/codeeditor.h similarity index 100% rename from examples/widgets/widgets/codeeditor/codeeditor.h rename to tests/manual/textrendering/codeeditor/codeeditor.h diff --git a/examples/widgets/widgets/codeeditor/codeeditor.pro b/tests/manual/textrendering/codeeditor/codeeditor.pro similarity index 100% rename from examples/widgets/widgets/codeeditor/codeeditor.pro rename to tests/manual/textrendering/codeeditor/codeeditor.pro diff --git a/examples/widgets/doc/src/codeeditor.qdoc b/tests/manual/textrendering/codeeditor/codeeditor.qdoc similarity index 100% rename from examples/widgets/doc/src/codeeditor.qdoc rename to tests/manual/textrendering/codeeditor/codeeditor.qdoc diff --git a/examples/widgets/widgets/codeeditor/main.cpp b/tests/manual/textrendering/codeeditor/main.cpp similarity index 100% rename from examples/widgets/widgets/codeeditor/main.cpp rename to tests/manual/textrendering/codeeditor/main.cpp