25 #ifndef DIGIKAM_GEO_MODEL_HELPER_H
26 #define DIGIKAM_GEO_MODEL_HELPER_H
30 #include <QItemSelectionModel>
32 #include <QAbstractItemModel>
33 #include <QPersistentModelIndex>
60 Q_DECLARE_FLAGS(PropertyFlags, PropertyFlag)
67 void snapItemsTo(
const QModelIndex& targetIndex,
71 virtual QAbstractItemModel*
model()
const = 0;
75 virtual PropertyFlags modelFlags()
const;
78 virtual bool itemIcon(
const QModelIndex& index,
81 QPixmap*
const pixmap,
82 QUrl*
const url)
const;
83 virtual PropertyFlags itemFlags(
const QModelIndex& index)
const;
84 virtual void snapItemsTo(
const QModelIndex& targetIndex,
88 virtual QPixmap pixmapFromRepresentativeIndex(
const QPersistentModelIndex& index,
96 const QPersistentModelIndex& targetSnapIndex);
102 const QPixmap& pixmap);
108 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::GeoModelHelper::PropertyFlags)
Definition: geocoordinates.h:49
Helper class to access data in models.
Definition: geomodelhelper.h:47
void signalThumbnailAvailableForIndex(const QPersistentModelIndex &index, const QPixmap &pixmap)
virtual QItemSelectionModel * selectionModel() const =0
virtual QAbstractItemModel * model() const =0
these are necessary for grouped and ungrouped models
PropertyFlag
Definition: geomodelhelper.h:53
virtual bool itemCoordinates(const QModelIndex &index, GeoCoordinates *const coordinates) const =0
void signalModelChangedDrastically()
void signalVisibilityChanged()
Definition: datefolderview.cpp:43