QtGui/qtextoption.h Source File
Go to the documentation of this file.
56 template <typename T> class
QList;
57 struct QTextOptionPrivate;
69 struct Q_GUI_EXPORT
Tab {
70 inline Tab() : position(80),
type(QTextOption::LeftTab) { }
72 : position(pos),
type(tabType), delimiter(delim) {}
90 QTextOption(Qt::Alignment alignment);
93 QTextOption(
const QTextOption &o);
94 QTextOption &operator=(
const QTextOption &o);
96 inline void setAlignment(Qt::Alignment alignment);
97 inline Qt::Alignment
alignment()
const {
return Qt::Alignment(align); }
107 WrapAtWordBoundaryOrAnywhere
113 ShowTabsAndSpaces = 0x1,
114 ShowLineAndParagraphSeparators = 0x2,
115 AddSpaceForLineAndParagraphSeparators = 0x4,
116 SuppressColors = 0x8,
117 IncludeTrailingSpaces = 0x80000000
119 Q_DECLARE_FLAGS(Flags, Flag)
120 inline void setFlags(Flags flags);
121 inline Flags flags()
const {
return Flags(
f); }
123 inline void setTabStop(qreal tabStop);
143 QTextOptionPrivate *d;
146 Q_DECLARE_OPERATORS_FOR_FLAGS(QTextOption::Flags)
148 inline void QTextOption::setAlignment(
Qt::Alignment aalignment)
149 { align = aalignment; }
163 #endif // QTEXTOPTION_H
GLuint GLuint GLsizei GLenum type
Qt::Alignment alignment() const
void setUseDesignMetrics(bool b)
void setWrapMode(WrapMode wrap)
bool useDesignMetrics() const
WrapMode wrapMode() const
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
bool operator!=(const Tab &other) const
void setTextDirection(Qt::LayoutDirection aDirection)
void setFlags(Flags flags)
bool operator==(const Tab &other) const
void setTabStop(qreal tabStop)
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
Qt::LayoutDirection textDirection() const
Tab(qreal pos, TabType tabType, QChar delim=QChar())