~ubuntu-branches/ubuntu/trusty/hedgewars/trusty-proposed

« back to all changes in this revision

Viewing changes to QTfrontend/themesmodel.h

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2011-11-20 18:31:17 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20111120183117-pjhz1n2pvnmxa246
Tags: 0.9.17-1
* [Paul Wise]
 * Mention the homing bee in the package description (Closes: #577092)
 * Also install the hwengine desktop file (LP: #811770)
 * Depend on ttf-dejavu-core since it is smaller
 * Depend on ttf-wqy-zenhei instead of embedding a copy of it
* [Dmitry E. Oboukhov]
 * New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef THEMESMODEL_H
2
 
#define THEMESMODEL_H
3
 
 
4
 
#include <QAbstractListModel>
5
 
#include <QStringList>
6
 
#include <QHash>
7
 
 
8
 
class ThemesModel : public QAbstractListModel
9
 
{
10
 
    Q_OBJECT
11
 
public:
12
 
    explicit ThemesModel(QStringList themes, QObject *parent = 0);
13
 
 
14
 
    int rowCount(const QModelIndex &parent = QModelIndex()) const;
15
 
    QVariant data(const QModelIndex &index, int role) const;
16
 
    bool setData(const QModelIndex &index, const QVariant &value,
17
 
                 int role = Qt::EditRole);
18
 
 
19
 
signals:
20
 
 
21
 
public slots:
22
 
 
23
 
private:
24
 
 
25
 
    QList<QHash<int, QVariant> > m_data;
26
 
};
27
 
 
28
 
#endif // THEMESMODEL_H