summaryrefslogtreecommitdiffstats
path: root/tests/manual/findfiles/main.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <[email protected]>2023-02-08 09:41:33 +0100
committerVolker Hilsheimer <[email protected]>2023-02-09 00:23:34 +0100
commit3fe0bf6e1bd3713543a5b763d3bfcee0c03faf4c (patch)
tree73a54a589276a8e7e6966ffc7e60afd78740c89e /tests/manual/findfiles/main.cpp
parent55f2b448b0aec4e9a8fd3896b2a40f37e939ecb3 (diff)
Move findfiles example into manual tests
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]>
Diffstat (limited to 'tests/manual/findfiles/main.cpp')
-rw-r--r--tests/manual/findfiles/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/manual/findfiles/main.cpp b/tests/manual/findfiles/main.cpp
new file mode 100644
index 00000000000..27409403a5f
--- /dev/null
+++ b/tests/manual/findfiles/main.cpp
@@ -0,0 +1,14 @@
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#include <QApplication>
+
+#include "window.h"
+
+int main(int argc, char *argv[])
+{
+ QApplication app(argc, argv);
+ Window window;
+ window.show();
+ return app.exec();
+}