summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextobject.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2010-06-05 20:05:44 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2010-06-09 22:07:52 (GMT)
commitfee7f7d67f780b798a63994a1125f9ca3ade1bd3 (patch)
tree534a237bac875be4e9c7cf471b86576d2234f779 /src/gui/text/qtextobject.h
parent7358af18674f6dbd9abf67f6e02809f43e2cfc3e (diff)
downloadQt-fee7f7d67f780b798a63994a1125f9ca3ade1bd3.zip
Qt-fee7f7d67f780b798a63994a1125f9ca3ade1bd3.tar.gz
Qt-fee7f7d67f780b798a63994a1125f9ca3ade1bd3.tar.bz2
Add QTextBlock::textDirection()
The method returns the resolved text direction for the block. It implements P1-P3 of the Unicode bidi algorithm. Task-number: Part of Qt-3292 Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/text/qtextobject.h')
-rw-r--r--src/gui/text/qtextobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qtextobject.h b/src/gui/text/qtextobject.h
index 67f67d8..a573a26 100644
--- a/src/gui/text/qtextobject.h
+++ b/src/gui/text/qtextobject.h
@@ -221,6 +221,8 @@ public:
QTextCharFormat charFormat() const;
int charFormatIndex() const;
+ Qt::LayoutDirection textDirection() const;
+
QString text() const;
const QTextDocument *document() const;