FreeDebks  1.0.3
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Private Attributes | List of all members
FdDelegateCoa Class Reference

#include <FdViewCoa.hpp>

Collaboration diagram for FdDelegateCoa:
Collaboration graph
[legend]

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

FdModelCoamModel

Detailed Description

Definition at line 91 of file FdViewCoa.hpp.

Constructor & Destructor Documentation

FdDelegateCoa::FdDelegateCoa ( FdModelCoa model)
explicit

Definition at line 397 of file FdViewCoa.cpp.

Member Function Documentation

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.

Member Data Documentation

FdModelCoa* FdDelegateCoa::mModel
private

Definition at line 95 of file FdViewCoa.hpp.


The documentation for this class was generated from the following files: