Skip to content

Commit

Permalink
Move findfiles example into manual tests
Browse files Browse the repository at this point in the history
The example follows bad and outdated practices:

- running time consuming and I/O heavy workload in the GUI thread
- calling processEvents to keep the UI responsive
- showing results only at the end of a search rather than continuously

Perhaps this example can be rewritten at some point to apply modern
practices (at least use a thread and emit signals), but it seems
to have low overall educational value.

Moving it to be a manual test for now.

Fixes: QTBUG-111002
Pick-to: 6.5
Change-Id: Id630fd4599096448ea4f96bcbf977b11a039796f
Reviewed-by: Axel Spoerl <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
  • Loading branch information
vohi committed Feb 8, 2023
1 parent 55f2b44 commit 3fe0bf6
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 3 deletions.
Binary file removed doc/src/images/findfiles-example.png
Binary file not shown.
1 change: 0 additions & 1 deletion examples/widgets/dialogs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ if(QT_FEATURE_wizard)
qt_internal_add_example(trivialwizard)
endif()
qt_internal_add_example(extension)
qt_internal_add_example(findfiles)
qt_internal_add_example(standarddialogs)
qt_internal_add_example(tabdialog)
if(QT_FEATURE_wizard AND TARGET Qt6::PrintSupport)
Expand Down
1 change: 0 additions & 1 deletion examples/widgets/dialogs/dialogs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ QT_FOR_CONFIG += widgets
TEMPLATE = subdirs
SUBDIRS = classwizard \
extension \
findfiles \
licensewizard \
standarddialogs \
tabdialog \
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/dialogs/qprogressdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void QProgressDialogPrivate::_q_disconnectOnClose()
\image fusion-progressdialog.png A progress dialog shown in the Fusion widget style.
\sa QDialog, QProgressBar, {Find Files Example}, {Pixelator Example}
\sa QDialog, QProgressBar, {Pixelator Example}
*/


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3fe0bf6

Please sign in to comment.