summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextodfwriter
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2010-06-04 22:06:15 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2010-06-04 22:06:44 (GMT)
commit51fa7df978d71a366c95c732d6a8c2576690d63a (patch)
treee112d17e004c95d77c02375f0fa4d575afcda297 /tests/auto/qtextodfwriter
parent09c6a81109d3978c1583c556202c01c1e774f11f (diff)
downloadQt-51fa7df978d71a366c95c732d6a8c2576690d63a.zip
Qt-51fa7df978d71a366c95c732d6a8c2576690d63a.tar.gz
Qt-51fa7df978d71a366c95c732d6a8c2576690d63a.tar.bz2
Add convenience constructor to QTextOption::Tab
Merge-request: 1734 Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Diffstat (limited to 'tests/auto/qtextodfwriter')
-rw-r--r--tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp b/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
index 64c42bb..a463d86 100644
--- a/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
+++ b/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
@@ -198,14 +198,9 @@ void tst_QTextOdfWriter::testWriteStyle2()
{
QTextBlockFormat bf; // = cursor.blockFormat();
QList<QTextOption::Tab> tabs;
- QTextOption::Tab tab1;
- tab1.position = 40;
- tab1.type = QTextOption::RightTab;
+ QTextOption::Tab tab1(40, QTextOption::RightTab);
tabs << tab1;
- QTextOption::Tab tab2;
- tab2.position = 80;
- tab2.type = QTextOption::DelimiterTab;
- tab2.delimiter = 'o';
+ QTextOption::Tab tab2(80, QTextOption::DelimiterTab, 'o');
tabs << tab2;
bf.setTabPositions(tabs);