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

Public Member Functions |
|
| QTextTableFormat () | |
| bool | isValid () const |
| int | columns () const |
| void | setColumns (int columns) |
| void | setColumnWidthConstraints (const QVector< QTextLength > &constraints) |
| QVector< QTextLength > | columnWidthConstraints () const |
| void | clearColumnWidthConstraints () |
| qreal | cellSpacing () const |
| void | setCellSpacing (qreal spacing) |
| qreal | cellPadding () const |
| void | setCellPadding (qreal padding) |
| void | setAlignment (Qt::Alignment alignment) |
| Qt::Alignment | alignment () const |
| void | setHeaderRowCount (int count) |
| int | headerRowCount () const |
Protected Member Functions |
|
| QTextTableFormat (const QTextFormat &fmt) | |
Friends |
|
| class | QTextFormat |
| QTextTableFormat | ( | ) |
| QTextTableFormat | ( | const QTextFormat & | fmt | ) | [explicit, protected] |
| bool isValid | ( | ) | const [inline] |
Reimplemented from QTextFrameFormat.
Definition at line 784 of file qtextformat.h.
{ return isTableFormat(); }
| int columns | ( | ) | const [inline] |
Definition at line 786 of file qtextformat.h.
{ int cols = intProperty(TableColumns); if (cols == 0) cols = 1; return cols; }
| void setColumns | ( | int | columns | ) | [inline] |
Definition at line 822 of file qtextformat.h.
{
if (acolumns == 1)
acolumns = 0;
setProperty(TableColumns, acolumns);
}
| void setColumnWidthConstraints | ( | const QVector< QTextLength > & | constraints | ) | [inline] |
Definition at line 790 of file qtextformat.h.
{ setProperty(TableColumnWidthConstraints, constraints); }
| QVector<QTextLength> columnWidthConstraints | ( | ) | const [inline] |
Definition at line 793 of file qtextformat.h.
{ return lengthVectorProperty(TableColumnWidthConstraints); }
| void clearColumnWidthConstraints | ( | ) | [inline] |
Definition at line 796 of file qtextformat.h.
| qreal cellSpacing | ( | ) | const [inline] |
Definition at line 799 of file qtextformat.h.
{ return doubleProperty(TableCellSpacing); }
| void setCellSpacing | ( | qreal | spacing | ) | [inline] |
Definition at line 801 of file qtextformat.h.
{ setProperty(TableCellSpacing, spacing); }
| qreal cellPadding | ( | ) | const [inline] |
Definition at line 804 of file qtextformat.h.
{ return doubleProperty(TableCellPadding); }
| void setCellPadding | ( | qreal | padding | ) | [inline] |
Definition at line 829 of file qtextformat.h.
{ setProperty(TableCellPadding, apadding); }
| void setAlignment | ( | Qt::Alignment | alignment | ) | [inline] |
Definition at line 832 of file qtextformat.h.
{ setProperty(BlockAlignment, int(aalignment)); }
| Qt::Alignment alignment | ( | ) | const [inline] |
Definition at line 809 of file qtextformat.h.
{ return QFlag(intProperty(BlockAlignment)); }
| void setHeaderRowCount | ( | int | count | ) | [inline] |
Definition at line 812 of file qtextformat.h.
{ setProperty(TableHeaderRowCount, count); }
| int headerRowCount | ( | ) | const [inline] |
Definition at line 814 of file qtextformat.h.
{ return intProperty(TableHeaderRowCount); }
friend class QTextFormat
[friend] |
Reimplemented from QTextFrameFormat.
Definition at line 819 of file qtextformat.h.