7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qnamespace.h>
9#include <QtCore/qchar.h>
10#include <QtCore/qmetatype.h>
27 struct Q_GUI_EXPORT
Tab {
35 && delimiter ==
other.delimiter;
55 inline Qt::Alignment
alignment()
const {
return Qt::Alignment(align); }
65 WrapAtWordBoundaryOrAnywhere
71 ShowTabsAndSpaces = 0x1,
72 ShowLineAndParagraphSeparators = 0x2,
73 AddSpaceForLineAndParagraphSeparators = 0x4,
75 ShowDocumentTerminator = 0x10,
76 IncludeTrailingSpaces = 0x80000000
82 inline void setTabStopDistance(
qreal tabStopDistance);
108{ align =
uint(aalignment.toInt()); }
111{
f =
uint(aflags.toInt()); }
void setFlags(Flags flags)
Sets the flags associated with the option to the given flags.
void setTextDirection(Qt::LayoutDirection aDirection)
Sets the direction of the text layout defined by the option to the given direction.
WrapMode wrapMode() const
Returns the text wrap mode defined by the option.
Qt::Alignment alignment() const
Returns the text alignment defined by the option.
qreal tabStopDistance() const
Qt::LayoutDirection textDirection() const
Returns the direction of the text layout defined by the option.
void setWrapMode(WrapMode wrap)
Sets the option's text wrap mode to the given mode.
void setUseDesignMetrics(bool b)
If enable is true then the layout will use design metrics; otherwise it will use the metrics of the p...
Flags flags() const
Returns the flags associated with the option.
bool useDesignMetrics() const
Returns true if the layout uses design rather than device metrics; otherwise returns false.
Flag
\value IncludeTrailingSpaces When this option is set, QTextLine::naturalTextWidth() and naturalTextRe...
WrapMode
This enum describes how text is wrapped in a document.
void setTabStopDistance(qreal tabStopDistance)
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
GLboolean GLboolean GLboolean b
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
static QT_BEGIN_NAMESPACE QAsn1Element wrap(quint8 type, const QAsn1Element &child)
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]
Tab(qreal pos, TabType tabType, QChar delim=QChar())
Creates a tab with the given position, tab type, and delimiter (pos, tabType, delim).
Tab()
\variable Tab::position Distance from the start of the paragraph.
bool operator!=(const Tab &other) const
Returns true if tab other is not equal to this tab; otherwise returns false.
bool operator==(const Tab &other) const
Returns true if tab other is equal to this tab; otherwise returns false.