18 #ifndef QGSCOMPOSERTABLECOLUMN_H 19 #define QGSCOMPOSERTABLECOLUMN_H 53 virtual bool readXML(
const QDomElement& columnElem );
60 double width()
const {
return mWidth; }
67 void setWidth(
const double width ) { mWidth = width; }
92 Qt::AlignmentFlag
hAlignment()
const {
return mHAlignment; }
101 void setHAlignment( Qt::AlignmentFlag alignment ) { mHAlignment = alignment; }
119 void setVAlignment( Qt::AlignmentFlag alignment ) { mVAlignment = alignment; }
157 void setSortOrder( Qt::SortOrder sortOrder ) { mSortOrder = sortOrder; }
196 Qt::AlignmentFlag mHAlignment;
197 Qt::AlignmentFlag mVAlignment;
201 Qt::SortOrder mSortOrder;
206 #endif // QGSCOMPOSERTABLECOLUMN_H void setAttribute(const QString &attribute)
Sets the attribute name or expression used for the column's values.
Qt::AlignmentFlag vAlignment() const
Returns the vertical alignment for a column, which controls the alignment used for drawing column val...
int sortByRank() const
Returns the sort rank for the column.
double width() const
Returns the width for a column.
Qt::SortOrder sortOrder() const
Returns the sort order for the column.
void setHAlignment(Qt::AlignmentFlag alignment)
Sets the horizontal alignment for a column, which controls the alignment used for drawing column valu...
void setHeading(const QString &heading)
Sets the heading for a column, which is the value displayed in the columns header cell...
Stores properties of a column in a QgsComposerTable.
QString heading() const
Returns the heading for a column, which is the value displayed in the columns header cell...
void setSortOrder(Qt::SortOrder sortOrder)
Sets the sort order for the column.
void setVAlignment(Qt::AlignmentFlag alignment)
Sets the vertical alignment for a column, which controls the alignment used for drawing column values...
Qt::AlignmentFlag hAlignment() const
Returns the horizontal alignment for a column, which controls the alignment used for drawing column v...
QString attribute() const
Returns the attribute name or expression used for the column's values.
void setWidth(const double width)
Sets the width for a column.
void setSortByRank(int sortByRank)
Sets the sort rank for the column.