#include <streamdirectoryproxymodel.h>
Public Member Functions | |
| streamDirectoryProxyModel (streamDirectoryModel *parent) | |
| virtual | ~streamDirectoryProxyModel () |
| virtual bool | hasChildren (const QModelIndex &parent) const |
| virtual void | setSourceModel (QAbstractItemModel *sourceModel) |
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.
| streamDirectoryProxyModel::streamDirectoryProxyModel | ( | streamDirectoryModel * | parent | ) | [explicit] |
The constructor.
| parent | Set's the parent. It's at the same time the source model. |
Definition at line 23 of file streamdirectoryproxymodel.cpp.
References setSourceModel().

| streamDirectoryProxyModel::~streamDirectoryProxyModel | ( | ) | [virtual] |
The destructor.
Definition at line 32 of file streamdirectoryproxymodel.cpp.
| 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 MainWindow::MainWindow(), and streamDirectoryProxyModel().
