~ubuntu-branches/ubuntu/maverick/hedgewars/maverick-proposed

« back to all changes in this revision

Viewing changes to QTfrontend/model/themesmodel.h

  • Committer: Package Import Robot
  • Author(s): Evan Broder
  • Date: 2011-11-22 04:49:51 UTC
  • mfrom: (3.2.15 sid)
  • Revision ID: package-import@ubuntu.com-20111122044951-elrt8tvvs5andmuw
Tags: 0.9.17-1~maverick0.1
* Backport 0.9.17-1 to Maverick to fix network play (LP: #852603):
  - debian/patches/haskell-backwards-compat.patch: Replace or
    reimplement functions used by the server that weren't available in
    Maverick's Haskell stack
  - Drop libghc-bytestring-show-dev build-dependency.
  - Add 6's to get libghc6-deepseq-dev, libghc6-utf8-string-dev
    build-dependencies
  - Change libghc6-network-dev build-dependency to libghc6-network-bytestring-dev

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