summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlabel_p.h
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2010-09-13 14:48:39 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2010-09-23 09:59:21 (GMT)
commit9b20aac0ad83b917c46cc44b78dc90fb1d238fe8 (patch)
treee107dd857f1a09c9355c2d9e8e622ca827a62a01 /src/gui/widgets/qlabel_p.h
parent3f90a835f43258b5c19f82da8a0f1e4d1b348e42 (diff)
downloadQt-9b20aac0ad83b917c46cc44b78dc90fb1d238fe8.zip
Qt-9b20aac0ad83b917c46cc44b78dc90fb1d238fe8.tar.gz
Qt-9b20aac0ad83b917c46cc44b78dc90fb1d238fe8.tar.bz2
Fix text direction handling in QLabel
For QLabel, text direction should be determined by actual text (if it's a simple text label) or the textDirection() property of the defaultTextOption of corresponding QTextDocument. Task-number: QTBUG-13552 Reviewed-by: Lars Knoll
Diffstat (limited to 'src/gui/widgets/qlabel_p.h')
-rw-r--r--src/gui/widgets/qlabel_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qlabel_p.h b/src/gui/widgets/qlabel_p.h
index fba7224..83624c7 100644
--- a/src/gui/widgets/qlabel_p.h
+++ b/src/gui/widgets/qlabel_p.h
@@ -132,6 +132,7 @@ public:
QRectF layoutRect() const;
QRect documentRect() const;
QPoint layoutPoint(const QPoint& p) const;
+ Qt::LayoutDirection textDirection() const;
#ifndef QT_NO_CONTEXTMENU
QMenu *createStandardContextMenu(const QPoint &pos);
#endif