summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksii Zbykovskyi <[email protected]>2025-08-06 13:41:23 +0200
committerOleksii Zbykovskyi <[email protected]>2025-08-06 20:26:58 +0200
commit1ad8e33ef2500cba7e83cb7248f0f554def610ab (patch)
tree566be8b0b91975bceed5e046a9bc0ebb5704128b
parent7564ea5f26f3b5d19abe245a0e10564c54fefd73 (diff)
Combine two snippets blocks in one
Snippets 0 and 1 are used only together and may be combined. Change-Id: Ib138d321116b9eaf4152690dbfbe3a9b20217203 Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r--src/widgets/doc/snippets/qsplashscreen/main.cpp6
-rw-r--r--src/widgets/widgets/qsplashscreen.cpp2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/widgets/doc/snippets/qsplashscreen/main.cpp b/src/widgets/doc/snippets/qsplashscreen/main.cpp
index c4821c6ad00..85a7a6ca396 100644
--- a/src/widgets/doc/snippets/qsplashscreen/main.cpp
+++ b/src/widgets/doc/snippets/qsplashscreen/main.cpp
@@ -13,15 +13,13 @@ int main(int argc, char *argv[])
QSplashScreen splash(pixmap);
splash.show();
app.processEvents();
-//! [0]
-
-//! [1]
+ //...
QMainWindow window;
window.show();
splash.finish(&window);
return app.exec();
}
-//! [1]
+//! [0]
void example()
{
diff --git a/src/widgets/widgets/qsplashscreen.cpp b/src/widgets/widgets/qsplashscreen.cpp
index fcd09908cde..c1ac13994d5 100644
--- a/src/widgets/widgets/qsplashscreen.cpp
+++ b/src/widgets/widgets/qsplashscreen.cpp
@@ -65,8 +65,6 @@ public:
main window is shown:
\snippet qsplashscreen/main.cpp 0
- \dots
- \snippet qsplashscreen/main.cpp 1
The user can hide the splash screen by clicking on it with the
mouse. For mouse handling to work, call QApplication::processEvents()