summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-21 16:27:04 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-21 16:27:04 (GMT)
commit685e98b24ce27fee3085e9f2359494960a7952ff (patch)
treeedfa52bb898ab000b43ca9012701a83f9fa0cfca /src/gui/graphicsview
parenta033edc2517a0a108fc3c23190557a22465c96fb (diff)
downloadQt-685e98b24ce27fee3085e9f2359494960a7952ff.zip
Qt-685e98b24ce27fee3085e9f2359494960a7952ff.tar.gz
Qt-685e98b24ce27fee3085e9f2359494960a7952ff.tar.bz2
Doc: documentation for boolean properties should say what happens when
the property is set, not what doesn't happen when the property is not set.
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsscene.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp
index 21fe49a..b017022 100644
--- a/src/gui/graphicsview/qgraphicsscene.cpp
+++ b/src/gui/graphicsview/qgraphicsscene.cpp
@@ -2694,15 +2694,17 @@ void QGraphicsScene::clearFocus()
/*!
\property QGraphicsScene::stickyFocus
- \brief whether or not clicking the scene will clear focus
+ \brief whether clicking into the scene background will clear focus
\since 4.6
- If this property is false (the default), then clicking on the scene
- background or on an item that does not accept focus, will clear
- focus. Otherwise, focus will remain unchanged.
+ In a QGraphicsScene with stickyFocus set to true, focus will remain
+ unchanged when the user clicks into the scene background or on an item
+ that does not accept focus. Otherwise, focus will be cleared.
- The focus change happens in response to a mouse press. You can reimplement
+ By default, this property is false.
+
+ Focus changes in response to a mouse press. You can reimplement
mousePressEvent() in a subclass of QGraphicsScene to toggle this property
based on where the user has clicked.