23 #ifndef DIGIKAM_TRASH_VIEW_H
24 #define DIGIKAM_TRASH_VIEW_H
29 #include <QStyledItemDelegate>
34 class DTrashItemModel;
43 explicit TrashView(QWidget*
const parent =
nullptr);
79 void slotSelectionChanged();
80 void slotUndoLastDeletedItems();
81 void slotRestoreSelectedItems();
82 void slotDeleteSelectedItems();
83 void slotRemoveItemsFromModel();
84 void slotRemoveAllItemsFromModel();
85 void slotDeleteAllItems();
86 void slotDataChanged();
87 void slotChangeLastSelectedItem(
const QModelIndex& curr,
const QModelIndex& prev);
109 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
Definition: dtrashitemmodel.h:40
Definition: trashview.h:102
ThumbnailAligningDelegate(QObject *const parent=nullptr)
Definition: trashview.cpp:452
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: trashview.cpp:457
Definition: thumbnailsize.h:42
Definition: trashview.h:38
ThumbnailSize getThumbnailSize() const
Definition: trashview.cpp:192
void setThumbnailSize(const ThumbnailSize &thumbSize)
set thumbnail size to give to model
Definition: trashview.cpp:393
QString statusBarText() const
Definition: trashview.cpp:426
~TrashView() override
Definition: trashview.cpp:182
void selectLastSelected()
Highlights the last selected item when the view gets focus.
Definition: trashview.cpp:405
QUrl lastSelectedItemUrl() const
Definition: trashview.cpp:400
DTrashItemModel * model() const
Definition: trashview.cpp:187
TrashView(QWidget *const parent=nullptr)
Definition: trashview.cpp:94
Definition: datefolderview.cpp:43