summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp')
-rw-r--r--doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp b/doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp
new file mode 100644
index 0000000..2782200
--- /dev/null
+++ b/doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp
@@ -0,0 +1,5 @@
+//! [0]
+QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
+calculateHugeMandelbrot(); // lunch time...
+QApplication::restoreOverrideCursor();
+//! [0]