1
#ifndef MERKAARTOR_TAGMODEL_H_
2
#define MERKAARTOR_TAGMODEL_H_
4
#include <QtCore/QAbstractTableModel>
5
#include <QtCore/QString>
13
class TagModel : public QAbstractTableModel
17
TagModel(MainWindow* aMain);
20
inline static const QString newKeyText(void)
21
{ return tr("Edit this to add..."); }
23
void setFeature(const QList<MapFeature*> Features);
24
int rowCount(const QModelIndex &parent = QModelIndex()) const;
25
int columnCount(const QModelIndex &parent = QModelIndex()) const;
26
QVariant data(const QModelIndex &index, int role) const;
27
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
28
Qt::ItemFlags flags(const QModelIndex &index) const;
29
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
32
QList<MapFeature*> theFeatures;
33
QList<std::pair<QString, QString> > Tags;