diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-09-26 22:59:46 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-28 14:02:08 +0200 |
commit | 84251f84b6e7deadb7d50527b877d13cea74ad4b (patch) | |
tree | 61106e2b64005a21a19245b18c73ecc2bb083562 /src/widgets/kernel/qapplication.cpp | |
parent | 50f0aeee770d4e23bb7466c6b5128f5d7dfe4590 (diff) |
Implement support for QGuiApp::setOverrideCursor()
Properly support application override cursors and move
the documentation into the proper place.
Change-Id: I0198b38e0d2e7b10f0fcae342b468e7f8341bf02
Reviewed-on: http://codereview.qt-project.org/5562
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r-- | src/widgets/kernel/qapplication.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index 7550e7dec3..1f4016bd95 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -5084,44 +5084,6 @@ int QApplication::keyboardInputInterval() available in Qt for Embedded Linux. */ -/*! - \fn void QApplication::setOverrideCursor(const QCursor &cursor) - - Sets the application override cursor to \a cursor. - - Application override cursors are intended for showing the user that the - application is in a special state, for example during an operation that - might take some time. - - This cursor will be displayed in all the application's widgets until - restoreOverrideCursor() or another setOverrideCursor() is called. - - Application cursors are stored on an internal stack. setOverrideCursor() - pushes the cursor onto the stack, and restoreOverrideCursor() pops the - active cursor off the stack. changeOverrideCursor() changes the curently - active application override cursor. - - Every setOverrideCursor() must eventually be followed by a corresponding - restoreOverrideCursor(), otherwise the stack will never be emptied. - - Example: - \snippet doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp 0 - - \sa overrideCursor(), restoreOverrideCursor(), changeOverrideCursor(), - QWidget::setCursor() -*/ - -/*! - \fn void QApplication::restoreOverrideCursor() - - Undoes the last setOverrideCursor(). - - If setOverrideCursor() has been called twice, calling - restoreOverrideCursor() will activate the first cursor set. Calling this - function a second time restores the original widgets' cursors. - - \sa setOverrideCursor(), overrideCursor() -*/ /*! \macro qApp |