QGIS API Documentation
2.14.0-Essen
|
Stores properties of a column in a QgsComposerTable. More...
#include <qgscomposertablecolumn.h>
Public Member Functions | |
QgsComposerTableColumn (const QString &heading=QString()) | |
Constructor for QgsComposerTableColumn. More... | |
virtual | ~QgsComposerTableColumn () |
QString | attribute () const |
Returns the attribute name or expression used for the column's values. More... | |
QgsComposerTableColumn * | clone () |
Creates a duplicate column which is a deep copy of this column. More... | |
Qt::AlignmentFlag | hAlignment () const |
Returns the horizontal alignment for a column, which controls the alignment used for drawing column values within cells. More... | |
QString | heading () const |
Returns the heading for a column, which is the value displayed in the columns header cell. More... | |
virtual bool | readXML (const QDomElement &columnElem) |
Reads the column's properties from xml. More... | |
void | setAttribute (const QString &attribute) |
Sets the attribute name or expression used for the column's values. More... | |
void | setHAlignment (Qt::AlignmentFlag alignment) |
Sets the horizontal alignment for a column, which controls the alignment used for drawing column values within cells. More... | |
void | setHeading (const QString &heading) |
Sets the heading for a column, which is the value displayed in the columns header cell. More... | |
void | setSortByRank (int sortByRank) |
Sets the sort rank for the column. More... | |
void | setSortOrder (Qt::SortOrder sortOrder) |
Sets the sort order for the column. More... | |
void | setVAlignment (Qt::AlignmentFlag alignment) |
Sets the vertical alignment for a column, which controls the alignment used for drawing column values within cells. More... | |
void | setWidth (const double width) |
Sets the width for a column. More... | |
int | sortByRank () const |
Returns the sort rank for the column. More... | |
Qt::SortOrder | sortOrder () const |
Returns the sort order for the column. More... | |
Qt::AlignmentFlag | vAlignment () const |
Returns the vertical alignment for a column, which controls the alignment used for drawing column values within cells. More... | |
double | width () const |
Returns the width for a column. More... | |
virtual bool | writeXML (QDomElement &columnElem, QDomDocument &doc) const |
Writes the column's properties to xml for storage. More... | |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Stores properties of a column in a QgsComposerTable.
Some properties of a QgsComposerTableColumn are applicable only in certain contexts. For instance, the attribute and setAttribute methods only have an effect for QgsComposerAttributeTables, and have no effect for QgsComposerTextTables.
Definition at line 27 of file qgscomposertablecolumn.h.
Constructor for QgsComposerTableColumn.
heading | column heading |
Definition at line 20 of file qgscomposertablecolumn.cpp.
|
virtual |
Definition at line 33 of file qgscomposertablecolumn.cpp.
|
inline |
Returns the attribute name or expression used for the column's values.
This property is only used when the column is part of a QgsComposerAttributeTable.
Definition at line 128 of file qgscomposertablecolumn.h.
QgsComposerTableColumn * QgsComposerTableColumn::clone | ( | ) |
Creates a duplicate column which is a deep copy of this column.
Definition at line 91 of file qgscomposertablecolumn.cpp.
|
inline |
Returns the horizontal alignment for a column, which controls the alignment used for drawing column values within cells.
Definition at line 92 of file qgscomposertablecolumn.h.
|
inline |
Returns the heading for a column, which is the value displayed in the columns header cell.
Definition at line 75 of file qgscomposertablecolumn.h.
|
virtual |
Reads the column's properties from xml.
columnElem | a QDomElement holding the column's desired properties. |
Definition at line 62 of file qgscomposertablecolumn.cpp.
|
inline |
Sets the attribute name or expression used for the column's values.
This property is only used when the column is part of a QgsComposerAttributeTable.
attribute | attribute name or expression text for column |
Definition at line 137 of file qgscomposertablecolumn.h.
|
inline |
Sets the horizontal alignment for a column, which controls the alignment used for drawing column values within cells.
alignment | horizontal alignment for cell. |
Definition at line 101 of file qgscomposertablecolumn.h.
|
inline |
Sets the heading for a column, which is the value displayed in the columns header cell.
heading | Heading for column. |
Definition at line 83 of file qgscomposertablecolumn.h.
|
inline |
Sets the sort rank for the column.
If the sort rank is > 0 then the column will be sorted in the table. The sort rank specifies the priority given to the column when the table is sorted by multiple columns, with lower sort ranks having higher priority. This property is only used when the column is part of a QgsComposerAttributeTable.
sortByRank | sort rank for column. If sort rank is <= 0 then the column is not being sorted. |
Definition at line 185 of file qgscomposertablecolumn.h.
|
inline |
Sets the sort order for the column.
This property is only used when the column is part of a QgsComposerAttributeTable and when sortByRank is > 0.
sortOrder | sort order for column |
Definition at line 157 of file qgscomposertablecolumn.h.
|
inline |
Sets the vertical alignment for a column, which controls the alignment used for drawing column values within cells.
alignment | vertical alignment for cell. |
Definition at line 119 of file qgscomposertablecolumn.h.
|
inline |
Sets the width for a column.
width | column width in mm, or 0 if column width is to be automatically calculated. |
Definition at line 67 of file qgscomposertablecolumn.h.
|
inline |
Returns the sort rank for the column.
If the sort rank is > 0 then the column will be sorted in the table. The sort rank specifies the priority given to the column when the table is sorted by multiple columns, with lower sort ranks having higher priority. This property is only used when the column is part of a QgsComposerAttributeTable.
Definition at line 171 of file qgscomposertablecolumn.h.
|
inline |
Returns the sort order for the column.
This property is only used when the column is part of a QgsComposerAttributeTable and when sortByRank is > 0.
Definition at line 147 of file qgscomposertablecolumn.h.
|
inline |
Returns the vertical alignment for a column, which controls the alignment used for drawing column values within cells.
Definition at line 110 of file qgscomposertablecolumn.h.
|
inline |
Returns the width for a column.
Definition at line 60 of file qgscomposertablecolumn.h.
|
virtual |
Writes the column's properties to xml for storage.
columnElem | an existing QDomElement in which to store the column's properties. |
doc | QDomDocument for the destination xml. |
Definition at line 38 of file qgscomposertablecolumn.cpp.