view editor/edres.h @ 2017:3a768f8d409d

Rename variable s/engine/eng/g to avoid aliasing with dmsimple::engine. This enables us to build with link-time optimizations -flto if so desired.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 06 Sep 2018 12:36:17 +0300
parents e2ac08228a0f
children
line wrap: on
line source

#ifndef RESOURCEMODEL_H
#define RESOURCEMODEL_H

#include <QAbstractTableModel>
#include <QPair>
#include <QList>

class QEDResourceModel : public QAbstractTableModel
{
    Q_OBJECT
    
public:
    QEDResourceModel(QObject *parent = 0);

    int rowCount(const QModelIndex &parent) const;
    int columnCount(const QModelIndex &parent) const;
    QVariant data(const QModelIndex &index, int role) const;
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    Qt::ItemFlags flags(const QModelIndex &index) const;
//    bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
//    QList< QPair<QString, QString> > getList();

private:
};

#endif