24 #ifndef KLFSTYLEMANAGER_H 25 #define KLFSTYLEMANAGER_H 29 #include <QListWidget> 30 #include <QStringListModel> 44 virtual Qt::ItemFlags flags(
const QModelIndex& index)
const;
46 virtual QString styleName(
int row)
const;
47 virtual void setStyleName(
int row,
const QString& newname);
49 Qt::DropActions supportedDropActions()
const;
51 QMimeData *mimeData(
const QModelIndexList& indexes)
const;
52 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
56 void internalMoveCompleted(
int prevrow,
int newrow);
79 void refreshActionsEnabledState();
80 void showActionsContextMenu(
const QPoint& pos);
82 void retranslateUi(
bool alsoBaseUi =
true);
85 void slotModelMoveCompleted(
int previouspos,
int newpos);
88 Ui::KLFStyleManager *u;
virtual ~KLFStyleListModel()
KLFStyleListModel(QObject *parent=0)