Skip to content

OSMAreaModel

#include <osmareamodel.h>

Inherits from QAbstractListModel

Public Types

Name
enum Roles { AreaGroupRole = Qt::UserRole, TypeRole}

Public Functions

Name
OSMAreaModel(const OSMController * controller =nullptr, QObject * parent =nullptr)
~OSMAreaModel() override
int rowCount(const QModelIndex & index ={}) const override
QVariant data(const QModelIndex & index, int role =Qt::DisplayRole) const override

Protected Functions

Name
QHash< int, QByteArray > roleNames() const override

Public Types Documentation

enum Roles

Enumerator Value Description
AreaGroupRole Qt::UserRole
TypeRole

Public Functions Documentation

function OSMAreaModel

1
2
3
4
explicit OSMAreaModel(
    const OSMController * controller =nullptr,
    QObject * parent =nullptr
)

function ~OSMAreaModel

1
~OSMAreaModel() override

function rowCount

1
2
3
int rowCount(
    const QModelIndex & index ={}
) const override

function data

1
2
3
4
QVariant data(
    const QModelIndex & index,
    int role =Qt::DisplayRole
) const override

Protected Functions Documentation

function roleNames

1
QHash< int, QByteArray > roleNames() const override

Updated on 2023-07-03 at 11:02:08 +0000