• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Plasma

BackgroundListModel Class Reference

#include <backgroundlistmodel.h>

Inheritance diagram for BackgroundListModel:
Inheritance graph
[legend]

List of all members.

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:
  • backgroundlistmodel.h
  • backgroundlistmodel.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •     Animators
  •     Applets
  •     Engines
  • Solid Modules
  • System Settings
  •   SystemSettingsView
Generated for API Reference by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal