Skip to content

Commit

Permalink
Examples: move widgets/codeeditor into manual tests
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vohi committed Feb 8, 2023
1 parent 3fe0bf6 commit 48a1a55
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 10 deletions.
Binary file removed doc/src/images/codeeditor-example.png
Binary file not shown.
6 changes: 0 additions & 6 deletions examples/widgets/doc/src/syntaxhighlighter.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

*/
1 change: 0 additions & 1 deletion examples/widgets/widgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion examples/widgets/widgets/widgets.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ SUBDIRS = analogclock \
calculator \
calendarwidget \
charactermap \
codeeditor \
digitalclock \
groupbox \
icons \
Expand Down
3 changes: 1 addition & 2 deletions src/widgets/widgets/qplaintextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/

Expand Down
File renamed without changes.

0 comments on commit 48a1a55

Please sign in to comment.