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

#include <FdViewJournal.hpp>

Collaboration diagram for FdDelegateJournal:
Collaboration graph
[legend]

Public Member Functions

 FdDelegateJournal (FdModelJournal *model, FdSubWindow *subwindow, FdViewJournal *view)
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

Private Attributes

FdSubWindowmSubwindow
FdViewJournalmView
const FdModelJournalmModel

Detailed Description

Definition at line 88 of file FdViewJournal.hpp.

Constructor & Destructor Documentation

FdDelegateJournal::FdDelegateJournal ( FdModelJournal model,
FdSubWindow subwindow,
FdViewJournal view 
)
explicit

Definition at line 383 of file FdViewJournal.cpp.

Member Function Documentation

QWidget * FdDelegateJournal::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Creates an editor to help users completing fields, by providing a completer for colum #JournalLabel, #JournalDebitId, #JournalCreditId, #JournalDebitLabel and #JournalCreditLabel (note there is no difference between credit and debit type, only between id and label).

Definition at line 428 of file FdViewJournal.cpp.

QString FdDelegateJournal::displayText ( const QVariant &  value) const

Definition at line 388 of file FdViewJournal.cpp.

QString FdDelegateJournal::displayText ( const QVariant &  value,
const QLocale &  locale 
) const

Reimplemented. Dates are displayed using the format dd.MM.yyy and doubles with two decimals, even if they are zero.

Definition at line 396 of file FdViewJournal.cpp.

void FdDelegateJournal::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Reimplemented. Invalid entry will be paint in red.

See Also
FdItemJournal::isValid().

Definition at line 411 of file FdViewJournal.cpp.

Member Data Documentation

const FdModelJournal* FdDelegateJournal::mModel
private

Definition at line 93 of file FdViewJournal.hpp.

FdSubWindow* FdDelegateJournal::mSubwindow
private

Definition at line 91 of file FdViewJournal.hpp.

FdViewJournal* FdDelegateJournal::mView
private

Definition at line 92 of file FdViewJournal.hpp.


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