diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/widgets/doc/snippets/qsplashscreen/main.cpp | 6 | ||||
| -rw-r--r-- | src/widgets/widgets/qsplashscreen.cpp | 2 |
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() |
