![]() |
Mixxx
|
#include <proxytrackmodel.h>
Public Member Functions | |
ProxyTrackModel (QAbstractItemModel *pTrackModel, bool bHandleSearches=true) | |
virtual | ~ProxyTrackModel () |
virtual TrackPointer | getTrack (const QModelIndex &index) const |
virtual QString | getTrackLocation (const QModelIndex &index) const |
virtual int | getTrackId (const QModelIndex &index) const |
virtual const QLinkedList< int > | getTrackRows (int trackId) const |
virtual void | search (const QString &searchText) |
virtual const QString | currentSearch () const |
virtual bool | isColumnInternal (int column) |
virtual bool | isColumnHiddenByDefault (int column) |
virtual void | removeTrack (const QModelIndex &index) |
virtual void | removeTracks (const QModelIndexList &indices) |
virtual bool | addTrack (const QModelIndex &index, QString location) |
virtual void | moveTrack (const QModelIndex &sourceIndex, const QModelIndex &destIndex) |
virtual QItemDelegate * | delegateForColumn (const int i) |
virtual TrackModel::CapabilitiesFlags | getCapabilities () const |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const |
virtual QString | getModelSetting (QString name) |
virtual bool | setModelSetting (QString name, QVariant value) |
Definition at line 19 of file proxytrackmodel.h.
ProxyTrackModel::ProxyTrackModel | ( | QAbstractItemModel * | pTrackModel, |
bool | bHandleSearches = true |
||
) |
Definition at line 9 of file proxytrackmodel.cpp.
ProxyTrackModel::~ProxyTrackModel | ( | ) | [virtual] |
Definition at line 20 of file proxytrackmodel.cpp.
bool ProxyTrackModel::addTrack | ( | const QModelIndex & | index, |
QString | location | ||
) | [virtual] |
Reimplemented from TrackModel.
Definition at line 80 of file proxytrackmodel.cpp.
const QString ProxyTrackModel::currentSearch | ( | ) | const [virtual] |
Implements TrackModel.
Definition at line 51 of file proxytrackmodel.cpp.
QItemDelegate * ProxyTrackModel::delegateForColumn | ( | const int | i | ) | [virtual] |
Reimplemented from TrackModel.
Definition at line 92 of file proxytrackmodel.cpp.
bool ProxyTrackModel::filterAcceptsRow | ( | int | sourceRow, |
const QModelIndex & | sourceParent | ||
) | const |
TrackModel::CapabilitiesFlags ProxyTrackModel::getCapabilities | ( | ) | const [virtual] |
Reimplemented from TrackModel.
Definition at line 96 of file proxytrackmodel.cpp.
QString ProxyTrackModel::getModelSetting | ( | QString | name | ) | [virtual] |
Reimplemented from TrackModel.
Definition at line 127 of file proxytrackmodel.cpp.
TrackPointer ProxyTrackModel::getTrack | ( | const QModelIndex & | index | ) | const [virtual] |
Enables us to do ORing
Implements TrackModel.
Definition at line 32 of file proxytrackmodel.cpp.
int ProxyTrackModel::getTrackId | ( | const QModelIndex & | index | ) | const [virtual] |
Implements TrackModel.
Definition at line 23 of file proxytrackmodel.cpp.
QString ProxyTrackModel::getTrackLocation | ( | const QModelIndex & | index | ) | const [virtual] |
Implements TrackModel.
Definition at line 37 of file proxytrackmodel.cpp.
const QLinkedList< int > ProxyTrackModel::getTrackRows | ( | int | trackId | ) | const [virtual] |
Implements TrackModel.
Definition at line 28 of file proxytrackmodel.cpp.
bool ProxyTrackModel::isColumnHiddenByDefault | ( | int | column | ) | [virtual] |
Implements TrackModel.
Definition at line 62 of file proxytrackmodel.cpp.
bool ProxyTrackModel::isColumnInternal | ( | int | column | ) | [virtual] |
Implements TrackModel.
Definition at line 58 of file proxytrackmodel.cpp.
void ProxyTrackModel::moveTrack | ( | const QModelIndex & | sourceIndex, |
const QModelIndex & | destIndex | ||
) | [virtual] |
Reimplemented from TrackModel.
Definition at line 85 of file proxytrackmodel.cpp.
void ProxyTrackModel::removeTrack | ( | const QModelIndex & | index | ) | [virtual] |
Reimplemented from TrackModel.
Definition at line 66 of file proxytrackmodel.cpp.
void ProxyTrackModel::removeTracks | ( | const QModelIndexList & | indices | ) | [virtual] |
Reimplemented from TrackModel.
Definition at line 71 of file proxytrackmodel.cpp.
void ProxyTrackModel::search | ( | const QString & | searchText | ) | [virtual] |
Implements TrackModel.
Definition at line 42 of file proxytrackmodel.cpp.
bool ProxyTrackModel::setModelSetting | ( | QString | name, |
QVariant | value | ||
) | [virtual] |
Reimplemented from TrackModel.
Definition at line 133 of file proxytrackmodel.cpp.