15 #ifndef QGSTABLECELL_H 16 #define QGSTABLECELL_H 18 #include "qgis_core.h" 56 QVariant
content()
const {
return mContent; }
63 void setContent(
const QVariant &content ) { mContent = content; }
129 SIP_PYOBJECT __repr__();
131 QString str = QStringLiteral(
"<QgsTableCell: %1>" ).arg( sipCpp->content().toString() );
132 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
139 QColor mBackgroundColor;
140 QColor mForegroundColor;
141 std::unique_ptr< QgsNumericFormat > mFormat;
170 #endif // QGSTABLECELL_H The class is used as a container of context for various read/write operations on other objects...
void setBackgroundColor(const QColor &color)
Sets the cell's background color.
QColor backgroundColor() const
Returns the cell's background color, or an invalid color if a default color should be used for the ba...
Encapsulates the contents and formatting of a single table cell.
QVariant content() const
Returns the cell's content.
QVector< QgsTableRow > QgsTableContents
A set of table rows.
void setContent(const QVariant &content)
Sets the cell's content.
void setForegroundColor(const QColor &color)
Sets the cell's foreground color.
QColor foregroundColor() const
Returns the cell's foreground color, or an invalid color if a default color should be used for the fo...
QVector< QgsTableCell > QgsTableRow
A row of table cells.