|
| CDefaultFormatter (int alignment=alignDefault(), bool i18n=true, const QList< int > &supportedRoles={ Qt::DisplayRole }) |
| Constructor.
|
|
virtual | ~CDefaultFormatter () |
| Virtual destructor.
|
|
| CDefaultFormatter (const CDefaultFormatter &)=default |
| Copy constructor.
|
|
CDefaultFormatter & | operator= (const CDefaultFormatter &)=default |
| Copy assignment operator.
|
|
virtual Qt::ItemFlags | flags (Qt::ItemFlags flags, bool editable) const |
| Flags.
|
|
virtual swift::misc::CVariant | displayRole (const swift::misc::CVariant &dataCVariant) const |
| Value provided as CVariant, formatter converts to standard types or string. Used with Qt::DisplayRole displaying a text.
|
|
virtual swift::misc::CVariant | editRole (const swift::misc::CVariant &dataCVariant) const |
| Value provided as CVariant, formatter converts to standard types or string. Used with Qt::DisplayRole displaying a text.
|
|
virtual swift::misc::CVariant | tooltipRole (const swift::misc::CVariant &value) const |
| Value provided as CVariant, formatter converts to QString. Used with Qt::ToolTipRole displaying a text.
|
|
virtual swift::misc::CVariant | decorationRole (const swift::misc::CVariant &dataCVariant) const |
| Value provided as CVariant, formatted as icon (Qt docu: "The data to be rendered as a decoration in the form
of an icon"). Used with Qt::DecorationRole displaying an icon, method returns pixmap, icon, or color (see docu)
|
|
virtual swift::misc::CVariant | alignmentRole () const |
| Qt::Alignment (as CVariant)
|
|
virtual swift::misc::CVariant | checkStateRole (const swift::misc::CVariant &value) const |
| Value provided as CVariant (expecting a bool), returning as Qt::CheckStae.
|
|
virtual bool | hasAlignment () const |
| Alignment available?
|
|
bool | supportsRole (int role) const |
| Is given role supported by formatter.
|
|
virtual swift::misc::CVariant | data (int role, const swift::misc::CVariant &inputData) const |
| Receives CVariant of column data, and returns CVariant wrapping string, pixmap, or other values depending on role.
|
|
Column formatter default implementation, also serving as interface.
Definition at line 29 of file columnformatters.h.