mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
remove unused QTextOption member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b2504b1717
commit
53c17bb88a
2 changed files with 2 additions and 9 deletions
|
@ -28,30 +28,26 @@ QT_BEGIN_NAMESPACE
|
|||
/*!
|
||||
Constructs a text option with default properties for text.
|
||||
The text alignment property is set to Qt::AlignLeft. The
|
||||
word wrap property is set to QTextOption::WordWrap. The
|
||||
using of design metrics flag is set to false.
|
||||
word wrap property is set to QTextOption::WordWrap.
|
||||
*/
|
||||
QTextOption::QTextOption()
|
||||
: wordwrap(QTextOption::WordWrap),
|
||||
fflags(0),
|
||||
align(Qt::AlignLeft),
|
||||
direction(Qt::LayoutDirectionAuto),
|
||||
design(false),
|
||||
tab(-1)
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
Constructs a text option with the given \a alignment for text.
|
||||
The word wrap property is set to QTextOption::WordWrap. The using
|
||||
of design metrics flag is set to false.
|
||||
The word wrap property is set to QTextOption::WordWrap.
|
||||
*/
|
||||
QTextOption::QTextOption(Qt::Alignment alignment)
|
||||
: wordwrap(QTextOption::WordWrap),
|
||||
fflags(0),
|
||||
align(alignment),
|
||||
direction(QApplication::layoutDirection()),
|
||||
design(false),
|
||||
tab(-1)
|
||||
{
|
||||
}
|
||||
|
@ -73,7 +69,6 @@ QTextOption::QTextOption(const QTextOption &o)
|
|||
fflags(o.fflags),
|
||||
align(o.align),
|
||||
direction(o.direction),
|
||||
design(o.design),
|
||||
tab(o.tab)
|
||||
{
|
||||
}
|
||||
|
@ -93,7 +88,6 @@ QTextOption &QTextOption::operator=(const QTextOption &o)
|
|||
fflags = o.fflags;
|
||||
align = o.align;
|
||||
direction = o.direction;
|
||||
design = o.design;
|
||||
tab = o.tab;
|
||||
return *this;
|
||||
}
|
||||
|
|
|
@ -76,7 +76,6 @@ private:
|
|||
Flags fflags;
|
||||
Qt::Alignment align;
|
||||
Qt::LayoutDirection direction;
|
||||
bool design;
|
||||
qreal tab;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue