diff options
author | Martin Smith <msmith@trolltech.com> | 2010-01-05 11:39:22 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-01-07 10:33:20 (GMT) |
commit | 5bd804dbe13061b95c992d40b2cdce766e6a078d (patch) | |
tree | 3af4c18c149e2dae6e25a19ea10059fe146f8b26 | |
parent | 87a09ea46105eb750c1f12f5b5c954063487c473 (diff) | |
download | Qt-5bd804dbe13061b95c992d40b2cdce766e6a078d.zip Qt-5bd804dbe13061b95c992d40b2cdce766e6a078d.tar.gz Qt-5bd804dbe13061b95c992d40b2cdce766e6a078d.tar.bz2 |
doc: Added note explaining grabMouse() for Cocoa and Carbon.
Task-number: QTBUG-6810
(cherry picked from commit 190f45bcc7383bdc68a904e7dd5780372d00afba)
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index d6380e1..f6ae581 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -11872,16 +11872,20 @@ void QWidget::ungrabGesture(Qt::GestureType gesture) mouse when a mouse button is pressed and keeps it until the last button is released. - Note that only visible widgets can grab mouse input. If - isVisible() returns false for a widget, that widget cannot call - grabMouse(). + \note Only visible widgets can grab mouse input. If isVisible() + returns false for a widget, that widget cannot call grabMouse(). + + \note \bold{(Mac OS X developers)} For \e Cocoa, calling + grabMouse() on a widget only works when the mouse is inside the + frame of that widget. For \e Carbon, it works outside the widget's + frame as well, like for Windows and X11. \sa releaseMouse() grabKeyboard() releaseKeyboard() */ /*! \fn void QWidget::grabMouse(const QCursor &cursor) - \overload + \overload grabMouse() Grabs the mouse input and changes the cursor shape. @@ -11891,6 +11895,8 @@ void QWidget::ungrabGesture(Qt::GestureType gesture) \warning Grabbing the mouse might lock the terminal. + \note \bold{(Mac OS X developers)} See the note in QWidget::grabMouse(). + \sa releaseMouse(), grabKeyboard(), releaseKeyboard(), setCursor() */ |