summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextoption.cpp
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 /src/gui/text/qtextoption.cpp
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 'src/gui/text/qtextoption.cpp')
-rw-r--r--src/gui/text/qtextoption.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/text/qtextoption.cpp b/src/gui/text/qtextoption.cpp
index c1e254c..a2b8022 100644
--- a/src/gui/text/qtextoption.cpp
+++ b/src/gui/text/qtextoption.cpp
@@ -145,7 +145,7 @@ QTextOption &QTextOption::operator=(const QTextOption &o)
\sa tabArray(), setTabStop(), setTabs()
*/
-void QTextOption::setTabArray(QList<qreal> tabStops)
+void QTextOption::setTabArray(QList<qreal> tabStops) // Qt5: const ref
{
if (!d)
d = new QTextOptionPrivate;
@@ -165,7 +165,7 @@ void QTextOption::setTabArray(QList<qreal> tabStops)
\sa tabStops()
*/
-void QTextOption::setTabs(QList<QTextOption::Tab> tabStops)
+void QTextOption::setTabs(QList<QTextOption::Tab> tabStops) // Qt5: const ref
{
if (!d)
d = new QTextOptionPrivate;
@@ -391,6 +391,12 @@ QList<QTextOption::Tab> QTextOption::tabs() const
*/
/*!
+ \fn Tab::Tab(qreal pos, TabType tabType, QChar delim = QChar())
+ Creates a tab with the given position, tab type, and (for DelimiterTab) delimiter
+ \since 4.6
+*/
+
+/*!
\fn bool Tab::operator==(const Tab &other) const
Returns true if tab \a other is equal to this tab;