|
| MapViewModelHelper (QItemSelectionModel *const selection, DCategorizedSortFilterProxyModel *const filterModel, QObject *const parent, const MapWidgetView::Application application) |
|
| ~MapViewModelHelper () override |
| Destructor.
|
|
QPersistentModelIndex | bestRepresentativeIndexFromList (const QList< QPersistentModelIndex > &list, const int sortKey) override |
| This function finds the best representative marker from a group of markers.
|
|
bool | itemCoordinates (const QModelIndex &index, GeoCoordinates *const coordinates) const override |
| Gets the coordinates of a marker found at current model index.
|
|
QAbstractItemModel * | model () const override |
|
void | onIndicesClicked (const QList< QPersistentModelIndex > &clickedIndices) override |
| This functions is called when one clicks on a thumbnail.
|
|
QPixmap | pixmapFromRepresentativeIndex (const QPersistentModelIndex &index, const QSize &size) override |
| This function retrieves the thumbnail for an index.
|
|
QItemSelectionModel * | selectionModel () const override |
|
| GeoModelHelper (QObject *const parent=nullptr) |
|
virtual PropertyFlags | itemFlags (const QModelIndex &index) const |
|
virtual bool | itemIcon (const QModelIndex &index, QPoint *const offset, QSize *const size, QPixmap *const pixmap, QUrl *const url) const |
| these are necessary for ungrouped models
|
|
virtual PropertyFlags | modelFlags () const |
|
virtual void | onIndicesMoved (const QList< QPersistentModelIndex > &movedIndices, const GeoCoordinates &targetCoordinates, const QPersistentModelIndex &targetSnapIndex) |
|
virtual void | snapItemsTo (const QModelIndex &targetIndex, const QList< QModelIndex > &snappedIndices) |
|
void | snapItemsTo (const QModelIndex &targetIndex, const QList< QPersistentModelIndex > &snappedIndices) |
|