MySortFilterProxyModel Class Reference

Reimplement QSortFilterProxyModel. More...

List of all members.

Public Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const
 MySortFilterProxyModel (QString share_label, QString file_label, QObject *parent)
void setFilterFile (bool)
void setFilterShare (bool)
virtual ~MySortFilterProxyModel ()

Private Attributes

QString fileLabel
bool MFile
bool MShare
QString shareLabel


Detailed Description

Reimplement QSortFilterProxyModel.

Date:
2007-06-27
Version:
1.0
Author:
Daniel Rocher
Parameters:
share_label the label of share used in LogForm
file_label the label of file used in LogForm
parent parent of this object
See also:
LogForm

Constructor & Destructor Documentation

MySortFilterProxyModel::MySortFilterProxyModel ( QString  share_label,
QString  file_label,
QObject *  parent 
)

References fileLabel, MFile, MShare, and shareLabel.

MySortFilterProxyModel::~MySortFilterProxyModel (  )  [virtual]


Member Function Documentation

bool MySortFilterProxyModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const

reimplement filterAcceptsRow

References fileLabel, MFile, MShare, and shareLabel.

void MySortFilterProxyModel::setFilterFile ( bool  value  ) 

Show/hide files

References MFile.

Referenced by LogForm::on_checkFile_stateChanged().

void MySortFilterProxyModel::setFilterShare ( bool  value  ) 

Show/hide shares

References MShare.

Referenced by LogForm::on_checkShare_stateChanged().


Member Data Documentation


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

Generated on Thu Nov 6 20:49:45 2008 for qtsmbstatus.kdevelop by  doxygen 1.5.5