40 Q_PROPERTY(QColor overlayForeground READ overlayForeground WRITE setOverlayForeground DESIGNABLE
true)
41 Q_PROPERTY(QColor overlayBackground READ overlayBackground WRITE setOverlayBackground DESIGNABLE
true)
42 Q_PROPERTY(
int overlayAlpha READ overlayAlpha WRITE setOverlayAlpha DESIGNABLE
true)
47 explicit CoverView(QWidget* parent =
nullptr);
54 [[nodiscard]] QStyleOptionViewItem viewOptions()
const override;
57 [[nodiscard]]
int mapModelIndexToIndex(
const QModelIndex& idx)
const override;
58 [[nodiscard]]
ModelIndexRange mapIndexToModelIndexes(
int idx)
const override;
59 [[nodiscard]] SelectionViewInterface::SelectionType selectionType()
const override;
61 [[nodiscard]]
int zoom()
const;
62 void changeZoom(
int zoom = -1);
63 void changeSortorder(AlbumSortorder so);
65 [[nodiscard]] QColor overlayForeground()
const;
66 void setOverlayForeground(
const QColor& color);
68 [[nodiscard]] QColor overlayBackground()
const;
69 void setOverlayBackground(
const QColor& color);
71 [[nodiscard]]
int overlayAlpha()
const;
72 void setOverlayAlpha(
int alpha);
83 void initContextMenu()
override;
86 [[nodiscard]]
bool isMergeable()
const override;
87 [[nodiscard]] MD::Interpretation metadataInterpretation()
const override;
88 [[nodiscard]]
ItemModel* itemModel()
const override;
89 [[nodiscard]]
int sizeHintForColumn(
int size)
const override;
91 void triggerSelectionChange(
const IndexSet& indexes)
override;
93 [[nodiscard]] PlayActionEventHandler::TrackSet trackSet()
const override;
95 void skinChanged()
override;
97 void wheelEvent(QWheelEvent* e)
override;
98 void resizeEvent(QResizeEvent* e)
override;
99 void hideEvent(QHideEvent* e)
override;
102 void resizeSections();
103 void refreshView()
override;
105 void scrollspeedChanged();