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 /src/gui/text/qtextoption.h | |
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 'src/gui/text/qtextoption.h')
-rw-r--r-- | src/gui/text/qtextoption.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qtextoption.h b/src/gui/text/qtextoption.h index 1381ed1..5af7834 100644 --- a/src/gui/text/qtextoption.h +++ b/src/gui/text/qtextoption.h @@ -68,6 +68,8 @@ public: struct Q_GUI_EXPORT Tab { inline Tab() : position(80), type(QTextOption::LeftTab) { } + inline Tab(qreal pos, TabType tabType, QChar delim = QChar()) + : position(pos), type(tabType), delimiter(delim) {} inline bool operator==(const Tab &other) const { return type == other.type |