diff options
author | Nils Jeisecke <jeisecke@saltation.de> | 2009-05-12 14:47:49 +0200 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-13 17:19:49 +0200 |
commit | e15d415acbd426e58fb1e967eb331fe41488dfff (patch) | |
tree | 848a5a3fcdaee0a0fa1f1a1ccf1a3dc4a9a1afe0 /demos/textedit | |
parent | f629c9caddb7ca921ad5af1c8607e059c30e39b0 (diff) | |
download | qt4-tools-e15d415acbd426e58fb1e967eb331fe41488dfff.tar.gz |
Added QTextListFormat::ListUpperRoman and QTextListFormat::ListLowerRoman for roman numbering of lists as supported by HTML/ODF
Reviewed-by: Olivier Goffart
Merge-request: 681
Diffstat (limited to 'demos/textedit')
-rw-r--r-- | demos/textedit/textedit.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/demos/textedit/textedit.cpp b/demos/textedit/textedit.cpp index 17516b4eb1..5eee855794 100644 --- a/demos/textedit/textedit.cpp +++ b/demos/textedit/textedit.cpp @@ -336,6 +336,8 @@ void TextEdit::setupTextActions() comboStyle->addItem("Ordered List (Decimal)"); comboStyle->addItem("Ordered List (Alpha lower)"); comboStyle->addItem("Ordered List (Alpha upper)"); + comboStyle->addItem("Ordered List (Roman lower)"); + comboStyle->addItem("Ordered List (Roman upper)"); connect(comboStyle, SIGNAL(activated(int)), this, SLOT(textStyle(int))); @@ -573,6 +575,12 @@ void TextEdit::textStyle(int styleIndex) case 6: style = QTextListFormat::ListUpperAlpha; break; + case 7: + style = QTextListFormat::ListLowerRoman; + break; + case 8: + style = QTextListFormat::ListUpperRoman; + break; } cursor.beginEditBlock(); |