streamDirectoryProxyModel Class Reference

An proxy model for streamDirectoryModel. More...

#include <streamdirectoryproxymodel.h>

List of all members.

Public Member Functions

 streamDirectoryProxyModel (streamDirectoryModel *parent)
virtual ~streamDirectoryProxyModel ()
virtual bool hasChildren (const QModelIndex &parent) const
virtual void setSourceModel (QAbstractItemModel *sourceModel)


Detailed Description

An proxy model for streamDirectoryModel.

This class provides a proxy model for streamDirectoryModel or inherited classes. It is a class that extends QSortFilterProxyModel with the ability to handle correctly the hasChildren() function and provides case insensitive sorting by default.

Definition at line 32 of file streamdirectoryproxymodel.h.


Constructor & Destructor Documentation

streamDirectoryProxyModel::streamDirectoryProxyModel ( streamDirectoryModel parent  )  [explicit]

The constructor.

Parameters:
parent Set's the parent. It's at the same time the source model.
Note:
After the construction of the object, the source model can't be changed anymore.

Definition at line 23 of file streamdirectoryproxymodel.cpp.

References setSourceModel().

Here is the call graph for this function:

streamDirectoryProxyModel::~streamDirectoryProxyModel (  )  [virtual]

The destructor.

Definition at line 32 of file streamdirectoryproxymodel.cpp.


Member Function Documentation

bool streamDirectoryProxyModel::hasChildren ( const QModelIndex &  parent  )  const [virtual]

Reimplemented from base class to provide this functionality.

Definition at line 36 of file streamdirectoryproxymodel.cpp.

void streamDirectoryProxyModel::setSourceModel ( QAbstractItemModel *  sourceModel  )  [virtual]

A dummy function without any functionality. Use the constructor to pass the source model. Once set, it can't be changed anymore.

Definition at line 41 of file streamdirectoryproxymodel.cpp.

Referenced by streamdirectoryDockwidget::streamdirectoryDockwidget(), and streamDirectoryProxyModel().

Here is the caller graph for this function:


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

doxygen