#include <klfstylemanager.h>
Signals | |
void | internalMoveCompleted (int prevrow, int newrow) |
Public Member Functions | |
KLFStyleListModel (QObject *parent=0) | |
virtual | ~KLFStyleListModel () |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
virtual QString | styleName (int row) const |
virtual void | setStyleName (int row, const QString &newname) |
Qt::DropActions | supportedDropActions () const |
QStringList | mimeTypes () const |
QMimeData * | mimeData (const QModelIndexList &indexes) const |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
Definition at line 37 of file klfstylemanager.h.
KLFStyleListModel::KLFStyleListModel | ( | QObject * | parent = 0 | ) | [inline] |
Definition at line 41 of file klfstylemanager.h.
virtual KLFStyleListModel::~KLFStyleListModel | ( | ) | [inline, virtual] |
Definition at line 42 of file klfstylemanager.h.
bool KLFStyleListModel::dropMimeData | ( | const QMimeData * | data, |
Qt::DropAction | action, | ||
int | row, | ||
int | column, | ||
const QModelIndex & | parent | ||
) |
Definition at line 87 of file klfstylemanager.cpp.
References QMimeData::data(), QMimeData::hasFormat(), QStringListModel::insertRows(), internalMoveCompleted(), QModelIndex::isValid(), QStringListModel::removeRows(), QStringListModel::rowCount(), setStyleName(), and styleName().
Qt::ItemFlags KLFStyleListModel::flags | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 41 of file klfstylemanager.cpp.
References QModelIndex::isValid(), QModelIndex::model(), QModelIndex::row(), and QStringListModel::rowCount().
void KLFStyleListModel::internalMoveCompleted | ( | int | prevrow, |
int | newrow | ||
) | [signal] |
Referenced by dropMimeData().
QMimeData * KLFStyleListModel::mimeData | ( | const QModelIndexList & | indexes | ) | const |
Definition at line 71 of file klfstylemanager.cpp.
References QMimeData::setData(), and styleName().
QStringList KLFStyleListModel::mimeTypes | ( | ) | const |
Definition at line 64 of file klfstylemanager.cpp.
void KLFStyleListModel::setStyleName | ( | int | row, |
const QString & | newname | ||
) | [virtual] |
Definition at line 53 of file klfstylemanager.cpp.
References QStringListModel::setData().
Referenced by dropMimeData(), KLFStyleManager::slotMoveDown(), KLFStyleManager::slotMoveUp(), and KLFStyleManager::slotRename().
QString KLFStyleListModel::styleName | ( | int | row | ) | const [virtual] |
Definition at line 48 of file klfstylemanager.cpp.
References QStringListModel::data().
Referenced by dropMimeData(), mimeData(), KLFStyleManager::slotMoveDown(), and KLFStyleManager::slotMoveUp().
Qt::DropActions KLFStyleListModel::supportedDropActions | ( | ) | const |
Definition at line 59 of file klfstylemanager.cpp.