Plasma
BackgroundListModel Class Reference
#include <backgroundlistmodel.h>

Public Member Functions | |
| BackgroundListModel (float ratio, Plasma::Wallpaper *listener, QObject *parent) | |
| virtual | ~BackgroundListModel () |
| void | addBackground (const QString &path) |
| virtual bool | contains (const QString &bg) const |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| QModelIndex | indexOf (const QString &path) const |
| Plasma::Package * | package (int index) const |
| void | reload (const QStringList &selected) |
| void | reload () |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| void | setResizeMethod (Plasma::Wallpaper::ResizeMethod resizeMethod) |
| void | setWallpaperSize (QSize size) |
Static Public Member Functions | |
| static QStringList | findAllBackgrounds (Plasma::Wallpaper *structureParent, const BackgroundListModel *container, const QStringList &path) |
| static void | initProgressDialog (KProgressDialog *dialog) |
Protected Slots | |
| void | previewFailed (const KFileItem &item) |
| void | removeBackground (const QString &path) |
| void | showPreview (const KFileItem &item, const QPixmap &preview) |
Detailed Description
Definition at line 29 of file backgroundlistmodel.h.
Constructor & Destructor Documentation
| BackgroundListModel::BackgroundListModel | ( | float | ratio, | |
| Plasma::Wallpaper * | listener, | |||
| QObject * | parent | |||
| ) |
Definition at line 28 of file backgroundlistmodel.cpp.
| BackgroundListModel::~BackgroundListModel | ( | ) | [virtual] |
Definition at line 39 of file backgroundlistmodel.cpp.
Member Function Documentation
| void BackgroundListModel::addBackground | ( | const QString & | path | ) |
Definition at line 105 of file backgroundlistmodel.cpp.
| bool BackgroundListModel::contains | ( | const QString & | bg | ) | const [virtual] |
Definition at line 140 of file backgroundlistmodel.cpp.
| QVariant BackgroundListModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
Definition at line 175 of file backgroundlistmodel.cpp.
| QStringList BackgroundListModel::findAllBackgrounds | ( | Plasma::Wallpaper * | structureParent, | |
| const BackgroundListModel * | container, | |||
| const QStringList & | path | |||
| ) | [static] |
Definition at line 277 of file backgroundlistmodel.cpp.
| QModelIndex BackgroundListModel::indexOf | ( | const QString & | path | ) | const |
Definition at line 119 of file backgroundlistmodel.cpp.
| static void BackgroundListModel::initProgressDialog | ( | KProgressDialog * | dialog | ) | [static] |
| Plasma::Package * BackgroundListModel::package | ( | int | index | ) | const |
Definition at line 272 of file backgroundlistmodel.cpp.
| void BackgroundListModel::previewFailed | ( | const KFileItem & | item | ) | [protected, slot] |
Definition at line 267 of file backgroundlistmodel.cpp.
| void BackgroundListModel::reload | ( | const QStringList & | selected | ) |
Definition at line 61 of file backgroundlistmodel.cpp.
| void BackgroundListModel::reload | ( | ) |
Definition at line 56 of file backgroundlistmodel.cpp.
| void BackgroundListModel::removeBackground | ( | const QString & | path | ) | [protected, slot] |
Definition at line 44 of file backgroundlistmodel.cpp.
| int BackgroundListModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 145 of file backgroundlistmodel.cpp.
| void BackgroundListModel::setResizeMethod | ( | Plasma::Wallpaper::ResizeMethod | resizeMethod | ) |
Definition at line 380 of file backgroundlistmodel.cpp.
| void BackgroundListModel::setWallpaperSize | ( | QSize | size | ) |
Definition at line 375 of file backgroundlistmodel.cpp.
| void BackgroundListModel::showPreview | ( | const KFileItem & | item, | |
| const QPixmap & | preview | |||
| ) | [protected, slot] |
Definition at line 249 of file backgroundlistmodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference