18 #ifndef QGSCOMPOSERTABLECOLUMN_H 19 #define QGSCOMPOSERTABLECOLUMN_H 42 virtual bool writeXML( QDomElement& columnElem, QDomDocument & doc )
const;
49 virtual bool readXML(
const QDomElement& columnElem );
56 double width()
const {
return mWidth; }
63 void setWidth(
const double width ) { mWidth = width; }
71 QString
heading()
const {
return mHeading; }
79 void setHeading( QString heading ) { mHeading = heading; }
87 Qt::AlignmentFlag
hAlignment()
const {
return mHAlignment; }
95 void setHAlignment( Qt::AlignmentFlag alignment ) { mHAlignment = alignment; }
133 void setSortOrder( Qt::SortOrder sortOrder ) { mSortOrder = sortOrder; }
171 QColor mBackgroundColor;
172 Qt::AlignmentFlag mHAlignment;
176 Qt::SortOrder mSortOrder;
181 #endif // QGSCOMPOSERTABLECOLUMN_H void setAttribute(QString attribute)
Sets the attribute name or expression used for the column's values.
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 setHeading(QString heading)
Sets the heading for a column, which is the value displayed in the columns header cell...
void setHAlignment(Qt::AlignmentFlag alignment)
Sets the horizontal alignment for a column, which controls the alignment used for drawing column valu...
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.
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.