diff options
author | David Faure <faure@kde.org> | 2010-06-04 22:06:15 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2010-06-04 22:06:44 (GMT) |
commit | 51fa7df978d71a366c95c732d6a8c2576690d63a (patch) | |
tree | e112d17e004c95d77c02375f0fa4d575afcda297 /tests/auto/qtextformat | |
parent | 09c6a81109d3978c1583c556202c01c1e774f11f (diff) | |
download | Qt-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/qtextformat')
-rw-r--r-- | tests/auto/qtextformat/tst_qtextformat.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/qtextformat/tst_qtextformat.cpp b/tests/auto/qtextformat/tst_qtextformat.cpp index ee1f4b5..9b71481 100644 --- a/tests/auto/qtextformat/tst_qtextformat.cpp +++ b/tests/auto/qtextformat/tst_qtextformat.cpp @@ -308,10 +308,7 @@ void tst_QTextFormat::getSetTabs() format.setTabPositions(tabs); Comparator c2(tabs, format.tabPositions()); - QTextOption::Tab tab2; - tab2.position = 3456; - tab2.type = QTextOption::RightTab; - tab2.delimiter = QChar('x'); + QTextOption::Tab tab2(3456, QTextOption::RightTab, QChar('x')); tabs.append(tab2); format.setTabPositions(tabs); Comparator c3(tabs, format.tabPositions()); |