Definition at line 529 of file qtextformat.h.
#include <qtextformat.h>

Public Member Functions |
|
| QTextBlockFormat () | |
| bool | isValid () const |
| void | setAlignment (Qt::Alignment alignment) |
| Qt::Alignment | alignment () const |
| void | setTopMargin (qreal margin) |
| qreal | topMargin () const |
| void | setBottomMargin (qreal margin) |
| qreal | bottomMargin () const |
| void | setLeftMargin (qreal margin) |
| qreal | leftMargin () const |
| void | setRightMargin (qreal margin) |
| qreal | rightMargin () const |
| void | setTextIndent (qreal aindent) |
| qreal | textIndent () const |
| void | setIndent (int indent) |
| int | indent () const |
| void | setNonBreakableLines (bool b) |
| bool | nonBreakableLines () const |
| void | setPageBreakPolicy (PageBreakFlags flags) |
| PageBreakFlags | pageBreakPolicy () const |
| void | setTabPositions (const QList< QTextOption::Tab > &tabs) |
| QList< QTextOption::Tab > | tabPositions () const |
Protected Member Functions |
|
| QTextBlockFormat (const QTextFormat &fmt) | |
Friends |
|
| class | QTextFormat |
| QTextBlockFormat | ( | ) |
| QTextBlockFormat | ( | const QTextFormat & | fmt | ) | [explicit, protected] |
| bool isValid | ( | ) | const [inline] |
Reimplemented from QTextFormat.
Definition at line 534 of file qtextformat.h.
{ return isBlockFormat(); }
| void setAlignment | ( | Qt::Alignment | alignment | ) | [inline] |
Definition at line 587 of file qtextformat.h.
{ setProperty(BlockAlignment, int(aalignment)); }
| Qt::Alignment alignment | ( | ) | const [inline] |
Definition at line 537 of file qtextformat.h.
{ int a = intProperty(BlockAlignment); if (a == 0) a = Qt::AlignLeft; return QFlag(a); }
| void setTopMargin | ( | qreal | margin | ) | [inline] |
Definition at line 540 of file qtextformat.h.
{ setProperty(BlockTopMargin, margin); }
| qreal topMargin | ( | ) | const [inline] |
Definition at line 542 of file qtextformat.h.
{ return doubleProperty(BlockTopMargin); }
| void setBottomMargin | ( | qreal | margin | ) | [inline] |
Definition at line 545 of file qtextformat.h.
{ setProperty(BlockBottomMargin, margin); }
| qreal bottomMargin | ( | ) | const [inline] |
Definition at line 547 of file qtextformat.h.
{ return doubleProperty(BlockBottomMargin); }
| void setLeftMargin | ( | qreal | margin | ) | [inline] |
Definition at line 550 of file qtextformat.h.
{ setProperty(BlockLeftMargin, margin); }
| qreal leftMargin | ( | ) | const [inline] |
Definition at line 552 of file qtextformat.h.
{ return doubleProperty(BlockLeftMargin); }
| void setRightMargin | ( | qreal | margin | ) | [inline] |
Definition at line 555 of file qtextformat.h.
{ setProperty(BlockRightMargin, margin); }
| qreal rightMargin | ( | ) | const [inline] |
Definition at line 557 of file qtextformat.h.
{ return doubleProperty(BlockRightMargin); }
| void setTextIndent | ( | qreal | aindent | ) | [inline] |
Definition at line 560 of file qtextformat.h.
{ setProperty(TextIndent, aindent); }
| qreal textIndent | ( | ) | const [inline] |
Definition at line 562 of file qtextformat.h.
{ return doubleProperty(TextIndent); }
| void setIndent | ( | int | indent | ) | [inline] |
Definition at line 590 of file qtextformat.h.
{ setProperty(BlockIndent, aindent); }
| int indent | ( | ) | const [inline] |
Definition at line 566 of file qtextformat.h.
{ return intProperty(BlockIndent); }
| void setNonBreakableLines | ( | bool | b | ) | [inline] |
Definition at line 569 of file qtextformat.h.
{ setProperty(BlockNonBreakableLines, b); }
| bool nonBreakableLines | ( | ) | const [inline] |
Definition at line 571 of file qtextformat.h.
{ return boolProperty(BlockNonBreakableLines); }
| void setPageBreakPolicy | ( | PageBreakFlags | flags | ) | [inline] |
Definition at line 574 of file qtextformat.h.
{ setProperty(PageBreakPolicy, int(flags)); }
| PageBreakFlags pageBreakPolicy | ( | ) | const [inline] |
Definition at line 576 of file qtextformat.h.
{ return PageBreakFlags(intProperty(PageBreakPolicy)); }
| void setTabPositions | ( | const QList< QTextOption::Tab > & | tabs | ) |
| QList<QTextOption::Tab> tabPositions | ( | ) | const |
friend class QTextFormat
[friend] |
Definition at line 584 of file qtextformat.h.