QTfrontend/themesmodel.h
author sheepluva
Sat, 24 Sep 2011 01:41:03 +0200
changeset 6002 7f790689205c
parent 5289 9d18b61bd3eb
permissions -rw-r--r--
rope: CheezeMonkey (omg I mentioned your name :O) has pointed out that there is still a way to get stuck in walls. This should fix it. NOTE: although not necessary for this fix to work rope behavior got also changed: I removed the direction-bias. if you press left and right at the same time the result is now neutral rather than left.

#ifndef THEMESMODEL_H
#define THEMESMODEL_H

#include <QAbstractListModel>
#include <QStringList>
#include <QHash>

class ThemesModel : public QAbstractListModel
{
    Q_OBJECT
public:
    explicit ThemesModel(QStringList themes, QObject *parent = 0);

    int rowCount(const QModelIndex &parent = QModelIndex()) const;
    QVariant data(const QModelIndex &index, int role) const;
    bool setData(const QModelIndex &index, const QVariant &value,
                 int role = Qt::EditRole);

signals:

public slots:

private:

    QList<QHash<int, QVariant> > m_data;
};

#endif // THEMESMODEL_H