summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextformat.h
diff options
context:
space:
mode:
authorDmitry Zelenkovsky <Dmitry.Zelenkovskiy@nokia.com>2011-04-28 09:49:13 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-04-28 09:49:13 (GMT)
commitee9455ed2a83084692d969c398ecb91bcd4fc33a (patch)
treee5f5ffdef2bbd0e68b26a4f0e64977e29b5da537 /src/gui/text/qtextformat.h
parentf0faf4011e1128ab5e58ce3912d379481f8320cb (diff)
downloadQt-ee9455ed2a83084692d969c398ecb91bcd4fc33a.zip
Qt-ee9455ed2a83084692d969c398ecb91bcd4fc33a.tar.gz
Qt-ee9455ed2a83084692d969c398ecb91bcd4fc33a.tar.bz2
Support more items for QTextCharFormat::VerticalAlignment enum for custom text objects.
* QTextCharFormat::AlignNormal - support text format descent, place text object bottom on (baseline - descent). * QTextCharFormat::AlignBottom - place text object bottom on baseline. * QTextCharFormat::AlignTop - Still not supported. * Any other vertical alignment is mapped QTextCharFormat::AlignBottom. Add new enum AlignBaseline for custom inline objects to take into account font baseline. Merge-request: 2578 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src/gui/text/qtextformat.h')
-rw-r--r--src/gui/text/qtextformat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text/qtextformat.h b/src/gui/text/qtextformat.h
index ff28eaa..4f4752a 100644
--- a/src/gui/text/qtextformat.h
+++ b/src/gui/text/qtextformat.h
@@ -378,7 +378,8 @@ public:
AlignSubScript,
AlignMiddle,
AlignTop,
- AlignBottom
+ AlignBottom,
+ AlignBaseline
};
enum UnderlineStyle { // keep in sync with Qt::PenStyle!
NoUnderline,