Plasma
BackgroundListModel Class Reference
#include <backgroundlistmodel.h>
Inheritance diagram for BackgroundListModel:

Public Member Functions | |
void | addBackground (const QString &path) |
BackgroundListModel (float ratio, QObject *listener) | |
virtual bool | contains (const QString &bg) const |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
int | indexOf (const QString &path) const |
Background * | package (int index) const |
void | reload (const QStringList &selected) |
void | reload () |
void | removeBackground (const QString &path) |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual | ~BackgroundListModel () |
Static Public Member Functions | |
static QList< Background * > | findAllBackgrounds (const BackgroundContainer *container, const QString &path, float ratio) |
Detailed Description
Definition at line 25 of file backgroundlistmodel.h.
Constructor & Destructor Documentation
BackgroundListModel::BackgroundListModel | ( | float | ratio, | |
QObject * | listener | |||
) |
Definition at line 21 of file backgroundlistmodel.cpp.
BackgroundListModel::~BackgroundListModel | ( | ) | [virtual] |
Definition at line 97 of file backgroundlistmodel.cpp.
Member Function Documentation
void BackgroundListModel::addBackground | ( | const QString & | path | ) |
Definition at line 71 of file backgroundlistmodel.cpp.
bool BackgroundListModel::contains | ( | const QString & | bg | ) | const [virtual] |
QVariant BackgroundListModel::data | ( | const QModelIndex & | index, | |
int | role = Qt::DisplayRole | |||
) | const [virtual] |
Definition at line 109 of file backgroundlistmodel.cpp.
QList< Background * > BackgroundListModel::findAllBackgrounds | ( | const BackgroundContainer * | container, | |
const QString & | path, | |||
float | ratio | |||
) | [static] |
Definition at line 149 of file backgroundlistmodel.cpp.
int BackgroundListModel::indexOf | ( | const QString & | path | ) | const |
Definition at line 82 of file backgroundlistmodel.cpp.
Background * BackgroundListModel::package | ( | int | index | ) | const |
Definition at line 144 of file backgroundlistmodel.cpp.
void BackgroundListModel::reload | ( | const QStringList & | selected | ) |
Definition at line 43 of file backgroundlistmodel.cpp.
void BackgroundListModel::reload | ( | ) |
Definition at line 38 of file backgroundlistmodel.cpp.
void BackgroundListModel::removeBackground | ( | const QString & | path | ) |
Definition at line 28 of file backgroundlistmodel.cpp.
int BackgroundListModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 104 of file backgroundlistmodel.cpp.
The documentation for this class was generated from the following files: