summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-05-22 11:23:39 (GMT)
committerjasplin <qt-info@nokia.com>2009-05-22 11:28:49 (GMT)
commit7c00cc50fc41a7c7b9c04e258a9eb03ff187c574 (patch)
tree053795142d89461fa47af48bc41691896e4c81b4
parent1a709fbe25a2446a9b311ded88aec5565258f3ac (diff)
downloadQt-7c00cc50fc41a7c7b9c04e258a9eb03ff187c574.zip
Qt-7c00cc50fc41a7c7b9c04e258a9eb03ff187c574.tar.gz
Qt-7c00cc50fc41a7c7b9c04e258a9eb03ff187c574.tar.bz2
Clarified doc for QGraphicsTextItem::setTextInteractionFlags().
Reviewed-by: TrustMe Task-number: 253559
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 828dd4f..bd764b5 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -8837,9 +8837,9 @@ bool QGraphicsTextItemPrivate::_q_mouseOnEdge(QGraphicsSceneMouseEvent *event)
Sets the flags \a flags to specify how the text item should react to user
input.
- The default for a QGraphicsTextItem is Qt::NoTextInteraction. Setting a
- value different to Qt::NoTextInteraction will also set the ItemIsFocusable
- QGraphicsItem flag.
+ The default for a QGraphicsTextItem is Qt::NoTextInteraction. This function
+ also affects the ItemIsFocusable QGraphicsItem flag by setting it if \a flags
+ is different from Qt::NoTextInteraction and clearing it otherwise.
By default, the text is read-only. To transform the item into an editor,
set the Qt::TextEditable flag.