18 #ifndef QGSCOMPOSERTABLE_H 19 #define QGSCOMPOSERTABLE_H 66 void setLineTextDistance(
double d );
79 void setHeaderFont(
const QFont& f );
95 void setHeaderFontColor(
const QColor& color );
125 void setContentFont(
const QFont& f );
141 void setContentFontColor(
const QColor& color );
158 void setShowGrid(
bool show );
174 void setGridStrokeWidth(
double w );
240 virtual void refreshAttributes();
249 virtual void adjustFrameToSize();
294 void drawHorizontalGridLines(
QPainter* p,
int nAttributes );
323 #endif // QGSCOMPOSERTABLE_H
QColor headerFontColor() const
Returns the color used to draw header text in the table.
QFont contentFont() const
Returns the font used to draw text in table body cells.
HeaderHAlignment
Controls how headers are horizontally aligned in a table.
QColor contentFontColor() const
Returns the color used to draw text in table body cells.
A item that forms part of a map composition.
bool showGrid() const
Returns whether grid lines are drawn in the table.
HeaderHAlignment mHeaderHAlignment
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const
Stores item state in DOM element.
QList< QgsComposerTableColumn * > * columns()
Returns a pointer to the list of QgsComposerTableColumns shown in the table.
QColor gridColor() const
Returns the color used for grid lines in the table.
void setGridColor(const QColor &c)
Sets color used for grid lines in the table.
A class to display feature attributes in the print composer.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
virtual int type() const override
Return correct graphics item type.
HeaderHAlignment headerHAlignment() const
Returns the horizontal alignment for table headers.
Stores properties of a column in a QgsComposerTable.
Graphics scene for map printing.
virtual bool getFeatureAttributes(QList< QgsAttributeMap > &attributeMaps)
Fetches the text used for the rows of the table.
QList< QgsComposerTableColumn * > mColumns
double lineTextDistance() const
Returns the margin distance between cell borders and their contents.
double gridStrokeWidth() const
Returns the width of grid lines in the table.
QList< QgsAttributeMap > mAttributeMaps
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)
Sets item state from DOM element.
double mLineTextDistance
Distance between table lines and text.
QMap< int, double > mMaxColumnWidthMap
QFont headerFont() const
Returns the font used to draw header text in the table.