18 #ifndef QGSLAYOUTTABLECOLUMN_H 19 #define QGSLAYOUTTABLECOLUMN_H 22 #include <QDomDocument> 23 #include <QDomElement> 26 #include "qgis_core.h" 54 bool writeXml( QDomElement &columnElem, QDomDocument &doc )
const;
61 bool readXml(
const QDomElement &columnElem );
68 double width()
const {
return mWidth; }
74 void setWidth(
const double width ) { mWidth = width; }
81 QString
heading()
const {
return mHeading; }
88 void setHeading(
const QString &heading ) { mHeading = heading; }
96 Qt::AlignmentFlag
hAlignment()
const {
return mHAlignment; }
104 void setHAlignment( Qt::AlignmentFlag alignment ) { mHAlignment = alignment; }
120 void setVAlignment( Qt::AlignmentFlag alignment ) { mVAlignment = alignment; }
136 void setAttribute(
const QString &attribute ) { mAttribute = attribute; }
193 QColor mBackgroundColor = Qt::transparent;
194 Qt::AlignmentFlag mHAlignment = Qt::AlignLeft;
195 Qt::AlignmentFlag mVAlignment = Qt::AlignVCenter;
199 Qt::SortOrder mSortOrder = Qt::AscendingOrder;
206 #endif //QGSLAYOUTTABLECOLUMN_H void setHeading(const QString &heading)
Sets the heading for a column, which is the value displayed in the column's header cell...
Stores properties of a column for a QgsLayoutTable.
void setAttribute(const QString &attribute)
Sets the attribute name or expression used for the column's values.
Qt::AlignmentFlag hAlignment() const
Returns the horizontal alignment for a column, which controls the alignment used for drawing column v...
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.
void setHAlignment(Qt::AlignmentFlag alignment)
Sets the horizontal alignment for a column, which controls the alignment used for drawing column valu...
void setSortByRank(int rank)
Sets the sort rank for the column.
double width() const
Returns the width for the column in mm, or 0 if column width is automatically calculated.
Qt::SortOrder sortOrder() const
Returns the sort order for the column.
QgsCompositionConverter class converts a QGIS 2.x composition to a QGIS 3.x layout.
void setWidth(const double width)
Sets the width for a column in mm.
QString attribute() const
Returns the attribute name or expression used for the column's values.
void setVAlignment(Qt::AlignmentFlag alignment)
Sets the vertical alignment for a column, which controls the alignment used for drawing column values...
void setSortOrder(Qt::SortOrder order)
Sets the sort order for the column.
QString heading() const
Returns the heading for a column, which is the value displayed in the column's header cell...