|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
Encapsulates the contents and formatting of a single table cell. More...
#include <qgstablecell.h>
Public Member Functions | |
| QgsTableCell (const QgsTableCell &other) | |
| QgsTableCell (const QVariant &content=QVariant()) | |
| Constructor for QgsTableCell, with the specified content. | |
| ~QgsTableCell () | |
| QColor | backgroundColor () const |
| Returns the cell's background color, or an invalid color if a default color should be used for the background. | |
| int | columnSpan () const |
| Returns the column span for the cell. | |
| QVariant | content () const |
| Returns the cell's content. | |
| QColor | foregroundColor () const |
| Returns the cell's foreground color, or an invalid color if a default color should be used for the foreground. | |
| Qt::Alignment | horizontalAlignment () const |
| Returns the horizontal alignment for text in the cell. | |
| const QgsNumericFormat * | numericFormat () const |
Returns the numeric format used for numbers in the cell, or nullptr if no format is set. | |
| QgsTableCell & | operator= (const QgsTableCell &other) |
| QVariantMap | properties (const QgsReadWriteContext &context) const |
| Returns the properties of the cell. | |
| int | rowSpan () const |
| Returns the row span for the cell. | |
| void | setBackgroundColor (const QColor &color) |
| Sets the cell's background color. | |
| void | setContent (const QVariant &content) |
| Sets the cell's content. | |
| void | setForegroundColor (const QColor &color) |
| Sets the cell's foreground color. | |
| void | setHorizontalAlignment (Qt::Alignment alignment) |
| Sets the horizontal alignment for text in the cell. | |
| void | setNumericFormat (QgsNumericFormat *format) |
Sets the numeric format used for numbers in the cell, or nullptr if no specific format is set. | |
| void | setProperties (const QVariantMap &properties, const QgsReadWriteContext &context) |
| Sets the properties for the cell. | |
| void | setSpan (int rowSpan, int columnSpan) |
| Sets the row and column span for the cell. | |
| void | setTextFormat (const QgsTextFormat &format) |
| Sets the cell's text format. | |
| void | setVerticalAlignment (Qt::Alignment alignment) |
| Sets the vertical alignment for text in the cell. | |
| QgsTextFormat | textFormat () const |
| Returns the cell's text format. | |
| Qt::Alignment | verticalAlignment () const |
| Returns the vertical alignment for text in the cell. | |
Encapsulates the contents and formatting of a single table cell.
Definition at line 37 of file qgstablecell.h.
| QgsTableCell::QgsTableCell | ( | const QVariant & | content = QVariant() | ) |
Constructor for QgsTableCell, with the specified content.
Definition at line 23 of file qgstablecell.cpp.
| QgsTableCell::QgsTableCell | ( | const QgsTableCell & | other | ) |
Definition at line 27 of file qgstablecell.cpp.
|
default |
|
inline |
Returns the cell's background color, or an invalid color if a default color should be used for the background.
Definition at line 72 of file qgstablecell.h.
|
inline |
|
inline |
|
inline |
Returns the cell's foreground color, or an invalid color if a default color should be used for the foreground.
Definition at line 88 of file qgstablecell.h.
| Qt::Alignment QgsTableCell::horizontalAlignment | ( | ) | const |
Returns the horizontal alignment for text in the cell.
Definition at line 137 of file qgstablecell.cpp.
| const QgsNumericFormat * QgsTableCell::numericFormat | ( | ) | const |
Returns the numeric format used for numbers in the cell, or nullptr if no format is set.
Definition at line 58 of file qgstablecell.cpp.
| QgsTableCell & QgsTableCell::operator= | ( | const QgsTableCell & | other | ) |
Definition at line 41 of file qgstablecell.cpp.
| QVariantMap QgsTableCell::properties | ( | const QgsReadWriteContext & | context | ) | const |
Returns the properties of the cell.
Definition at line 68 of file qgstablecell.cpp.
|
inline |
Returns the row span for the cell.
Definition at line 189 of file qgstablecell.h.
|
inline |
Sets the cell's background color.
Set an invalid color if a default color should be used for the background.
Definition at line 81 of file qgstablecell.h.
|
inline |
|
inline |
Sets the cell's foreground color.
Set an invalid color if a default color should be used for the foreground.
Definition at line 97 of file qgstablecell.h.
| void QgsTableCell::setHorizontalAlignment | ( | Qt::Alignment | alignment | ) |
Sets the horizontal alignment for text in the cell.
Definition at line 142 of file qgstablecell.cpp.
| void QgsTableCell::setNumericFormat | ( | QgsNumericFormat * | format | ) |
Sets the numeric format used for numbers in the cell, or nullptr if no specific format is set.
Ownership of format is transferred to the cell.
Definition at line 63 of file qgstablecell.cpp.
| void QgsTableCell::setProperties | ( | const QVariantMap & | properties, |
| const QgsReadWriteContext & | context ) |
Sets the properties for the cell.
Definition at line 98 of file qgstablecell.cpp.
| void QgsTableCell::setSpan | ( | int | rowSpan, |
| int | columnSpan ) |
Sets the row and column span for the cell.
Definition at line 157 of file qgstablecell.cpp.
|
inline |
Sets the cell's text format.
true.Definition at line 117 of file qgstablecell.h.
| void QgsTableCell::setVerticalAlignment | ( | Qt::Alignment | alignment | ) |
Sets the vertical alignment for text in the cell.
Definition at line 152 of file qgstablecell.cpp.
|
inline |
Returns the cell's text format.
true.Definition at line 107 of file qgstablecell.h.
| Qt::Alignment QgsTableCell::verticalAlignment | ( | ) | const |
Returns the vertical alignment for text in the cell.
Definition at line 147 of file qgstablecell.cpp.