#include <MapObjectInfoModel.h>
|
enum | Roles {
LabelRole = Qt::UserRole
, TypeRole = Qt::UserRole+1
, IdRole = Qt::UserRole+2
, NameRole = Qt::UserRole+3
,
ObjectRole = Qt::UserRole+4
, PhoneRole = Qt::UserRole+5
, WebsiteRole = Qt::UserRole+6
, AddressLocationRole = Qt::UserRole+7
,
AddressNumberRole = Qt::UserRole+8
, PostalCodeRole = Qt::UserRole+9
, RegionRole = Qt::UserRole+10
, LatRole = Qt::UserRole+11
,
LonRole = Qt::UserRole+12
, AltLangName = Qt::UserRole+13
, OpeningHours = Qt::UserRole+14
} |
|
◆ Roles
Enumerator |
---|
LabelRole | |
TypeRole | |
IdRole | |
NameRole | |
ObjectRole | |
PhoneRole | |
WebsiteRole | |
AddressLocationRole | |
AddressNumberRole | |
PostalCodeRole | |
RegionRole | |
LatRole | |
LonRole | |
AltLangName | |
OpeningHours | |
◆ MapObjectInfoModel()
osmscout::MapObjectInfoModel::MapObjectInfoModel |
( |
| ) |
|
References dbInitialized(), osmscout::OSMScoutQt::GetInstance(), osmscout::OSMScoutQt::GetSettings(), osmscout::LookupModule::initialisationFinished(), osmscout::OSMScoutQt::MakeLookupModule(), osmscout::LookupModule::objectsLoaded(), objectsOnViewRequested(), objectsRequested(), onObjectsLoaded(), onViewObjectsLoaded(), osmscout::LookupModule::requestObjects(), osmscout::LookupModule::requestObjectsOnView(), and osmscout::LookupModule::viewObjectsLoaded().
◆ ~MapObjectInfoModel()
osmscout::MapObjectInfoModel::~MapObjectInfoModel |
( |
| ) |
|
|
override |
◆ createOverlayObject()
QObject * osmscout::MapObjectInfoModel::createOverlayObject |
( |
int |
row | ) |
const |
◆ data()
QVariant osmscout::MapObjectInfoModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
References AddressLocationRole, osmscout::LookupModule::ObjectInfo::addressNumber, AddressNumberRole, osmscout::LookupModule::ObjectInfo::adminRegionList, osmscout::LookupModule::AdminRegionNames(), osmscout::LookupModule::ObjectInfo::altLangName, AltLangName, osmscout::LookupModule::ObjectInfo::center, createOverlayObject(), osmscout::GeoCoord::GetLat(), osmscout::GeoCoord::GetLon(), osmscout::LookupModule::ObjectInfo::id, IdRole, LabelRole, LatRole, LonRole, osmscout::LookupModule::ObjectInfo::name, NameRole, ObjectRole, osmscout::LookupModule::ObjectInfo::objectType, osmscout::LookupModule::ObjectInfo::openingHours, osmscout::LookupModule::ObjectInfo::phone, PhoneRole, PostalCodeRole, RegionRole, osmscout::LookupModule::ObjectInfo::reverseLookupRef, osmscout::LookupModule::ObjectInfo::type, TypeRole, osmscout::LookupModule::ObjectInfo::website, and WebsiteRole.
◆ dbInitialized
◆ flags()
Qt::ItemFlags osmscout::MapObjectInfoModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ isReady()
bool osmscout::MapObjectInfoModel::isReady |
( |
| ) |
const |
|
inline |
◆ objectsOnViewRequested
void osmscout::MapObjectInfoModel::objectsOnViewRequested |
( |
const MapViewStruct & |
view, |
|
|
const QRectF & |
filterRectangle |
|
) |
| |
|
signal |
◆ objectsRequested
void osmscout::MapObjectInfoModel::objectsRequested |
( |
const LocationEntry & |
entry, |
|
|
bool |
reverseLookupAddresses |
|
) |
| |
|
signal |
◆ onObjectsLoaded
◆ onViewObjectsLoaded
void osmscout::MapObjectInfoModel::onViewObjectsLoaded |
( |
const MapViewStruct & |
view, |
|
|
const QList< LookupModule::ObjectInfo > & |
objects |
|
) |
| |
|
slot |
◆ readyChange
void osmscout::MapObjectInfoModel::readyChange |
( |
bool |
ready | ) |
|
|
signal |
◆ roleNames()
QHash< int, QByteArray > osmscout::MapObjectInfoModel::roleNames |
( |
| ) |
const |
|
override |
References AddressLocationRole, AddressNumberRole, AltLangName, IdRole, LabelRole, LatRole, LonRole, NameRole, ObjectRole, OpeningHours, PhoneRole, PostalCodeRole, RegionRole, TypeRole, and WebsiteRole.
◆ rowCount()
Q_INVOKABLE int osmscout::MapObjectInfoModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
inlineoverride |
◆ setLocationEntry
void osmscout::MapObjectInfoModel::setLocationEntry |
( |
QObject * |
o | ) |
|
|
slot |
◆ setPosition
void osmscout::MapObjectInfoModel::setPosition |
( |
QObject * |
mapView, |
|
|
const int |
width, |
|
|
const int |
height, |
|
|
const int |
screenX, |
|
|
const int |
screenY |
|
) |
| |
|
slot |
◆ ready
bool osmscout::MapObjectInfoModel::ready |
|
read |
The documentation for this class was generated from the following files: