FilterLogViewDeletedModel Class Reference

Model for the log view of deleted mails. More...

#include <filterlogviewdeletedmodel.h>

List of all members.

Public Member Functions

 FilterLogViewDeletedModel (QObject *parent=0, FilterLog *log=NULL)
 Constructor.
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 Overloaded from QAbstractItemModel.
virtual int columnCount (const QModelIndex &) const
 Overloaded from QAbstractItemModel.
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 Overloaded from QAbstractItemModel.
virtual QModelIndex parent (const QModelIndex &) const
 Overloaded from QAbstractItemModel.
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 Returns the index of the data in this model specified by the given row, column.
QVariant headerData (int section, Qt::Orientation orientation, int role) const
 Returns the header text of the given section.
void sort (int column, Qt::SortOrder order=Qt::AscendingOrder)
void sort ()
 Sorts the model by the last sort properties.
void refresh ()
 Reloads the data from the log.
void saveSetup ()


Detailed Description

Model for the log view of deleted mails.

Definition at line 34 of file filterlogviewdeletedmodel.h.


Member Function Documentation

QVariant FilterLogViewDeletedModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const [virtual]

Overloaded from QAbstractItemModel.

Returns the data of the given index.

Parameters:
index the index
role the role

Definition at line 33 of file filterlogviewdeletedmodel.cpp.

int FilterLogViewDeletedModel::columnCount ( const QModelIndex &   )  const [virtual]

Overloaded from QAbstractItemModel.

Doesn't give a parent item, because the model doesn't provide tree structured data. The column count is equal to the number of showed account data. Always returns 6.

Definition at line 66 of file filterlogviewdeletedmodel.cpp.

int FilterLogViewDeletedModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]

Overloaded from QAbstractItemModel.

Doesn't give a parent item, because the model doesn't provide tree structured data The row count is equal to the number of accounts.

Parameters:
parent parent index

Definition at line 71 of file filterlogviewdeletedmodel.cpp.

QModelIndex FilterLogViewDeletedModel::parent ( const QModelIndex &   )  const [virtual]

Overloaded from QAbstractItemModel.

Because this model doesn't provide tree structured data this function just returns an invalid index.

Definition at line 80 of file filterlogviewdeletedmodel.cpp.

QModelIndex FilterLogViewDeletedModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const [virtual]

Returns the index of the data in this model specified by the given row, column.

The parent index is not used. Overloaded from QAbstractItemModel

Parameters:
row Row
column Column
parent parent index; not used

Definition at line 85 of file filterlogviewdeletedmodel.cpp.

QVariant FilterLogViewDeletedModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

Returns the header text of the given section.

Parameters:
section header section
orientation orientation of the header; just returns the horizontal orientation
role display role

Definition at line 95 of file filterlogviewdeletedmodel.cpp.

void FilterLogViewDeletedModel::sort ( int  column,
Qt::SortOrder  order = Qt::AscendingOrder 
)

Sorts the model by column in the given order.

Parameters:
column column to sort
order sort order

Definition at line 111 of file filterlogviewdeletedmodel.cpp.

void FilterLogViewDeletedModel::saveSetup (  ) 

Saves the setup

Definition at line 203 of file filterlogviewdeletedmodel.cpp.


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

Generated on Tue May 18 19:43:53 2010 for KShowmail by  doxygen 1.5.6