equal
deleted
inserted
replaced
63 unused(0), |
63 unused(0), |
64 f(0), |
64 f(0), |
65 tab(-1), |
65 tab(-1), |
66 d(0) |
66 d(0) |
67 { |
67 { |
68 direction = QApplication::layoutDirection(); |
68 direction = Qt::LayoutDirectionAuto; |
69 } |
69 } |
70 |
70 |
71 /*! |
71 /*! |
72 Constructs a text option with the given \a alignment for text. |
72 Constructs a text option with the given \a alignment for text. |
73 The word wrap property is set to QTextOption::WordWrap. The using |
73 The word wrap property is set to QTextOption::WordWrap. The using |
143 Sets the tab positions for the text layout to those specified by |
143 Sets the tab positions for the text layout to those specified by |
144 \a tabStops. |
144 \a tabStops. |
145 |
145 |
146 \sa tabArray(), setTabStop(), setTabs() |
146 \sa tabArray(), setTabStop(), setTabs() |
147 */ |
147 */ |
148 void QTextOption::setTabArray(QList<qreal> tabStops) |
148 void QTextOption::setTabArray(QList<qreal> tabStops) // Qt5: const ref |
149 { |
149 { |
150 if (!d) |
150 if (!d) |
151 d = new QTextOptionPrivate; |
151 d = new QTextOptionPrivate; |
152 QList<QTextOption::Tab> tabs; |
152 QList<QTextOption::Tab> tabs; |
153 QTextOption::Tab tab; |
153 QTextOption::Tab tab; |
163 Sets the tab positions for the text layout to those specified by |
163 Sets the tab positions for the text layout to those specified by |
164 \a tabStops. |
164 \a tabStops. |
165 |
165 |
166 \sa tabStops() |
166 \sa tabStops() |
167 */ |
167 */ |
168 void QTextOption::setTabs(QList<QTextOption::Tab> tabStops) |
168 void QTextOption::setTabs(QList<QTextOption::Tab> tabStops) // Qt5: const ref |
169 { |
169 { |
170 if (!d) |
170 if (!d) |
171 d = new QTextOptionPrivate; |
171 d = new QTextOptionPrivate; |
172 d->tabStops = tabStops; |
172 d->tabStops = tabStops; |
173 } |
173 } |
389 \fn Tab::Tab() |
389 \fn Tab::Tab() |
390 Creates a default left tab with position 80. |
390 Creates a default left tab with position 80. |
391 */ |
391 */ |
392 |
392 |
393 /*! |
393 /*! |
|
394 \fn Tab::Tab(qreal pos, TabType tabType, QChar delim = QChar()) |
|
395 |
|
396 Creates a tab with the given position, tab type, and delimiter |
|
397 (\a pos, \a tabType, \a delim). |
|
398 |
|
399 \note \a delim is only used when \a tabType is DelimiterTab. |
|
400 |
|
401 \since 4.7 |
|
402 */ |
|
403 |
|
404 /*! |
394 \fn bool Tab::operator==(const Tab &other) const |
405 \fn bool Tab::operator==(const Tab &other) const |
395 |
406 |
396 Returns true if tab \a other is equal to this tab; |
407 Returns true if tab \a other is equal to this tab; |
397 otherwise returns false. |
408 otherwise returns false. |
398 */ |
409 */ |