21 : mBackgroundColor(
Qt::transparent )
22 , mHAlignment(
Qt::AlignLeft )
23 , mVAlignment(
Qt::AlignVCenter )
26 , mSortOrder(
Qt::AscendingOrder )
66 mHeading = columnElem.
attribute(
"heading",
"" );
67 mAttribute = columnElem.
attribute(
"attribute",
"" );
76 bool redOk, greenOk, blueOk, alphaOk;
77 int bgRed, bgGreen, bgBlue, bgAlpha;
82 if ( redOk && greenOk && blueOk && alphaOk )
84 mBackgroundColor =
QColor( bgRed, bgGreen, bgBlue, bgAlpha );
virtual ~QgsComposerTableColumn()
QDomNodeList elementsByTagName(const QString &tagname) const
void setAttribute(const QString &attribute)
Sets the attribute name or expression used for the column's values.
QDomNode appendChild(const QDomNode &newChild)
QString attribute(const QString &name, const QString &defValue) const
virtual bool writeXML(QDomElement &columnElem, QDomDocument &doc) const
Writes the column's properties to xml for storage.
double toDouble(bool *ok) const
QgsComposerTableColumn * clone()
Creates a duplicate column which is a deep copy of this column.
void setHAlignment(Qt::AlignmentFlag alignment)
Sets the horizontal alignment for a column, which controls the alignment used for drawing column valu...
QDomElement toElement() const
QString number(int n, int base)
void setHeading(const QString &heading)
Sets the heading for a column, which is the value displayed in the columns header cell...
void setAttribute(const QString &name, const QString &value)
int toInt(bool *ok, int base) const
Stores properties of a column in a QgsComposerTable.
QgsComposerTableColumn(const QString &heading=QString())
Constructor for QgsComposerTableColumn.
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...
void setWidth(const double width)
Sets the width for a column.
virtual bool readXML(const QDomElement &columnElem)
Reads the column's properties from xml.
QDomElement createElement(const QString &tagName)
void setSortByRank(int sortByRank)
Sets the sort rank for the column.
QDomNode at(int index) const