24 #ifndef DIGIKAM_TABLE_VIEW_SELECTION_MODEL_SYNCER_H
25 #define DIGIKAM_TABLE_VIEW_SELECTION_MODEL_SYNCER_H
29 #include <QItemSelectionModel>
35 class TableViewShared;
46 QModelIndex
toSource(
const QModelIndex& targetIndex)
const;
47 QModelIndex
toTarget(
const QModelIndex& sourceIndex)
const;
55 void slotSourceModelReset();
56 void slotSourceCurrentChanged(
const QModelIndex& current,
const QModelIndex& previous);
61 void slotSourceSelectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
62 void slotTargetCurrentChanged(
const QModelIndex& current,
const QModelIndex& previous);
67 void slotTargetSelectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
68 void slotTargetColumnsInserted(
const QModelIndex& parent,
int start,
int end);
69 void slotTargetModelRowsInserted(
const QModelIndex& parent,
int start,
int end);
70 void slotTargetModelReset();
71 void slotDoInitialSync();
81 const QScopedPointer<Private> d;
Definition: tableview_selection_model_syncer.h:38
~TableViewSelectionModelSyncer() override
Definition: tableview_selection_model_syncer.cpp:90
void slotSetActive(const bool isActive)
Definition: tableview_selection_model_syncer.cpp:313
TableViewSelectionModelSyncer(TableViewShared *const sharedObject, QObject *const parent=nullptr)
Definition: tableview_selection_model_syncer.cpp:52
QModelIndex toSource(const QModelIndex &targetIndex) const
Definition: tableview_selection_model_syncer.cpp:94
int targetModelColumnCount() const
Definition: tableview_selection_model_syncer.cpp:104
QItemSelection itemSelectionToTarget(const QItemSelection &selection) const
Definition: tableview_selection_model_syncer.cpp:189
QItemSelection itemSelectionToSource(const QItemSelection &selection) const
Definition: tableview_selection_model_syncer.cpp:165
QModelIndex toTarget(const QModelIndex &sourceIndex) const
Definition: tableview_selection_model_syncer.cpp:99
QItemSelection targetIndexToRowItemSelection(const QModelIndex &targetIndex) const
Definition: tableview_selection_model_syncer.cpp:109
Definition: tableview_shared.h:44
Definition: datefolderview.cpp:43