#include <FdViewCoa.hpp>
Public Member Functions | |
FdDelegateCoa (FdModelCoa *model) | |
QString | displayText (const QVariant &value) const |
QString | displayText (const QVariant &value, const QLocale &locale) const |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
Private Attributes | |
FdModelCoa * | mModel |
Definition at line 91 of file FdViewCoa.hpp.
|
explicit |
Definition at line 397 of file FdViewCoa.cpp.
QWidget * FdDelegateCoa::createEditor | ( | QWidget * | parent, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Reimplemented. Creates an editor for column #CoaSigns.
Definition at line 446 of file FdViewCoa.cpp.
QString FdDelegateCoa::displayText | ( | const QVariant & | value | ) | const |
Definition at line 401 of file FdViewCoa.cpp.
QString FdDelegateCoa::displayText | ( | const QVariant & | value, |
const QLocale & | locale | ||
) | const |
Reimplemented. Doubles are always displayed with two decimals, even if it is zero.
Definition at line 409 of file FdViewCoa.cpp.
void FdDelegateCoa::paint | ( | QPainter * | painter, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Reimplemented. Categories (FdItemCoa instances with TabRole set to CategoryRole) appear in bold font and negative doubles appear in red.
Definition at line 429 of file FdViewCoa.cpp.
void FdDelegateCoa::setModelData | ( | QWidget * | editor, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const |
Reimplemented.
Definition at line 464 of file FdViewCoa.cpp.
|
private |
Definition at line 95 of file FdViewCoa.hpp.