Cute Chess  0.1
Public Slots | Public Member Functions | List of all members
PgnTagsModel Class Reference

Supplies PGN tag information to views. More...

#include <pgntagsmodel.h>

Inheritance diagram for PgnTagsModel:
QAbstractItemModel

Public Slots

void setTag (const QString &name, const QString &value)
 

Public Member Functions

virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
virtual QModelIndex parent (const QModelIndex &index) const
 
 PgnTagsModel (QObject *parent=nullptr)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
void setTags (const QList< QPair< QString, QString > > &tags)
 

Detailed Description

Supplies PGN tag information to views.

Constructor & Destructor Documentation

PgnTagsModel::PgnTagsModel ( QObject parent = nullptr)

Constructs a model with the given parent.

Member Function Documentation

void PgnTagsModel::setTags ( const QList< QPair< QString, QString > > &  tags)

Associates tags with this model.


The documentation for this class was generated from the following files: