25 #ifndef DIGIKAM_GPS_ITEM_SORT_PROXY_MODEL_H
26 #define DIGIKAM_GPS_ITEM_SORT_PROXY_MODEL_H
30 #include <QItemSelectionModel>
31 #include <QSortFilterProxyModel>
32 #include <QAbstractItemModel>
33 #include <QModelIndex>
34 #include <QItemSelection>
50 QItemSelectionModel*
const sourceSelectionModel);
57 bool lessThan(
const QModelIndex& left,
58 const QModelIndex& right)
const override;
68 class GPSLinkItemSelectionModelPrivate;
91 QObject*
const parent =
nullptr);
98 void select(
const QModelIndex& index, QItemSelectionModel::SelectionFlags command)
override;
99 void select(
const QItemSelection& selection, QItemSelectionModel::SelectionFlags command)
override;
107 GPSLinkItemSelectionModelPrivate*
const d_ptr;
112 Q_PRIVATE_SLOT(d_func(),
void sourceSelectionChanged(
const QItemSelection& selected,
113 const QItemSelection& deselected))
114 Q_PRIVATE_SLOT(d_func(),
void sourceCurrentChanged(
const QModelIndex& current))
115 Q_PRIVATE_SLOT(d_func(),
void slotCurrentChanged(const QModelIndex& current))
120 class GPSModelIndexProxyMapperPrivate;
148 Q_PROPERTY(
bool isConnected
150 NOTIFY isConnectedChanged)
155 const QAbstractItemModel*
const rightModel,
156 QObject*
const parent =
nullptr);
162 QModelIndex mapLeftToRight(
const QModelIndex& index)
const;
167 QModelIndex mapRightToLeft(
const QModelIndex& index)
const;
172 QItemSelection mapSelectionLeftToRight(
const QItemSelection& selection)
const;
177 QItemSelection mapSelectionRightToLeft(
const QItemSelection& selection)
const;
179 bool isConnected()
const;
188 GPSModelIndexProxyMapperPrivate*
const d_ptr;
Definition: gpsitemmodel.h:43
Definition: gpsitemsortproxymodel.h:44
~GPSItemSortProxyModel() override
Definition: gpsitemsortproxymodel.cpp:65
QItemSelectionModel * mappedSelectionModel() const
Definition: gpsitemsortproxymodel.cpp:87
GPSItemSortProxyModel(GPSItemModel *const imageModel, QItemSelectionModel *const sourceSelectionModel)
Definition: gpsitemsortproxymodel.cpp:54
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override
Definition: gpsitemsortproxymodel.cpp:70
Definition: gpsitemsortproxymodel.h:80
~GPSLinkItemSelectionModel() override
Definition: gpsitemsortproxymodel.cpp:174
void select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override
Definition: gpsitemsortproxymodel.cpp:216
void linkedItemSelectionModelChanged()
GPSLinkItemSelectionModelPrivate *const d_ptr
Definition: gpsitemsortproxymodel.h:107
QItemSelectionModel * linkedItemSelectionModel
Definition: gpsitemsortproxymodel.h:85
void setLinkedItemSelectionModel(QItemSelectionModel *const selectionModel)
Definition: gpsitemsortproxymodel.cpp:186
GPSLinkItemSelectionModel(QAbstractItemModel *const targetModel, QItemSelectionModel *const linkedItemSelectionModel, QObject *const parent=nullptr)
Definition: gpsitemsortproxymodel.cpp:159
Definition: gpsitemsortproxymodel.h:140
void isConnectedChanged()
Definition: datefolderview.cpp:43