◆ ItemDelegateOverlay()
Digikam::ItemDelegateOverlay::ItemDelegateOverlay |
( |
QObject *const |
parent = nullptr | ) |
|
|
explicit |
◆ ~ItemDelegateOverlay()
Digikam::ItemDelegateOverlay::~ItemDelegateOverlay |
( |
| ) |
|
|
override |
◆ acceptsDelegate()
virtual bool Digikam::ItemDelegateOverlay::acceptsDelegate |
( |
QAbstractItemDelegate * |
| ) |
const |
|
inlinevirtual |
◆ affectedIndexes()
QList< QModelIndex > Digikam::ItemDelegateOverlay::affectedIndexes |
( |
const QModelIndex & |
index | ) |
const |
|
protected |
◆ affectsMultiple()
bool Digikam::ItemDelegateOverlay::affectsMultiple |
( |
const QModelIndex & |
index | ) |
const |
|
protected |
◆ delegate()
QAbstractItemDelegate * Digikam::ItemDelegateOverlay::delegate |
( |
| ) |
const |
References m_delegate.
Referenced by Digikam::GroupIndicatorOverlay::checkIndex(), Digikam::ItemCoordinatesOverlay::checkIndex(), ShowFoto::ShowfotoCoordinatesOverlay::checkIndex(), Digikam::ImportCoordinatesOverlay::checkIndex(), Digikam::ItemRatingOverlay::hide(), Digikam::ImportRatingOverlay::hide(), Digikam::ItemCategorizedView::removeOverlay(), ShowFoto::ShowfotoCategorizedView::removeOverlay(), Digikam::ImportCategorizedView::removeOverlay(), setDelegate(), Digikam::ItemRatingOverlay::slotEntered(), Digikam::ImportRatingOverlay::slotEntered(), Digikam::AssignNameOverlay::updatePosition(), Digikam::GroupIndicatorOverlay::updatePosition(), Digikam::ItemCoordinatesOverlay::updatePosition(), Digikam::ItemRatingOverlay::updatePosition(), Digikam::TagsLineEditOverlay::updatePosition(), ShowFoto::ShowfotoCoordinatesOverlay::updatePosition(), Digikam::ImportCoordinatesOverlay::updatePosition(), Digikam::ImportLockOverlay::updatePosition(), Digikam::ImportDownloadOverlay::updatePosition(), and Digikam::ImportRatingOverlay::updatePosition().
◆ hideNotification
void Digikam::ItemDelegateOverlay::hideNotification |
( |
| ) |
|
|
signal |
◆ mouseMoved()
void Digikam::ItemDelegateOverlay::mouseMoved |
( |
QMouseEvent * |
e, |
|
|
const QRect & |
visualRect, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
virtual |
Only these two methods are implemented as virtual methods. For all other events, connect to the view's signals. There are a few signals specifically for overlays and all QAbstractItemView standard signals.
Referenced by Digikam::ItemDelegateOverlayContainer::mouseMoved().
◆ numberOfAffectedIndexes()
int Digikam::ItemDelegateOverlay::numberOfAffectedIndexes |
( |
const QModelIndex & |
index | ) |
const |
|
protected |
◆ paint()
void Digikam::ItemDelegateOverlay::paint |
( |
QPainter * |
p, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
virtual |
◆ requestNotification
void Digikam::ItemDelegateOverlay::requestNotification |
( |
const QModelIndex & |
index, |
|
|
const QString & |
message |
|
) |
| |
|
signal |
◆ setActive()
void Digikam::ItemDelegateOverlay::setActive |
( |
bool |
active | ) |
|
|
virtual |
Called when the overlay was installed and shall begin working, and before it is removed and shall stop. Setup your connections to view and delegate here. You will be disconnected automatically on removal.
Reimplemented in Digikam::ImportRatingOverlay, Digikam::TagsLineEditOverlay, Digikam::ItemRatingOverlay, Digikam::GroupIndicatorOverlay, Digikam::AssignNameOverlay, Digikam::ImportRotateOverlay, Digikam::ImportDownloadOverlay, Digikam::ImportLockOverlay, Digikam::ImportCoordinatesOverlay, ShowFoto::ShowfotoCoordinatesOverlay, Digikam::PersistentWidgetDelegateOverlay, Digikam::HoverButtonDelegateOverlay, Digikam::AbstractWidgetDelegateOverlay, Digikam::ActionVersionsOverlay, Digikam::ShowHideVersionsOverlay, Digikam::ItemSelectionOverlay, Digikam::ItemRotateOverlay, Digikam::ItemFullScreenOverlay, Digikam::ItemCoordinatesOverlay, and Digikam::FaceRejectionOverlay.
Referenced by Digikam::VersionsTreeView::addOverlay(), Digikam::ImportCategorizedView::addOverlay(), Digikam::ItemCategorizedView::addOverlay(), ShowFoto::ShowfotoCategorizedView::addOverlay(), Digikam::ItemDelegateOverlayContainer::removeAllOverlays(), Digikam::ItemDelegateOverlayContainer::removeOverlay(), and Digikam::ItemDelegateOverlayContainer::setAllOverlaysActive().
◆ setDelegate()
void Digikam::ItemDelegateOverlay::setDelegate |
( |
QAbstractItemDelegate * |
delegate | ) |
|
◆ setView()
void Digikam::ItemDelegateOverlay::setView |
( |
QAbstractItemView * |
view | ) |
|
References m_view, update(), and view().
Referenced by Digikam::VersionsTreeView::addOverlay(), Digikam::ImportCategorizedView::addOverlay(), Digikam::ItemCategorizedView::addOverlay(), ShowFoto::ShowfotoCategorizedView::addOverlay(), Digikam::ItemDelegateOverlayContainer::removeAllOverlays(), Digikam::ItemCategorizedView::removeOverlay(), Digikam::VersionsTreeView::removeOverlay(), ShowFoto::ShowfotoCategorizedView::removeOverlay(), Digikam::ImportCategorizedView::removeOverlay(), and Digikam::ItemDelegateOverlayContainer::setViewOnAllOverlays().
◆ update
void Digikam::ItemDelegateOverlay::update |
( |
const QModelIndex & |
index | ) |
|
|
signal |
◆ view()
QAbstractItemView * Digikam::ItemDelegateOverlay::view |
( |
| ) |
const |
References m_view.
Referenced by affectedIndexes(), affectsMultiple(), Digikam::FaceRejectionOverlay::createButton(), Digikam::ItemFullScreenOverlay::createButton(), Digikam::ItemRotateOverlay::createButton(), Digikam::ItemSelectionOverlay::createButton(), Digikam::ShowHideVersionsOverlay::createButton(), Digikam::ActionVersionsOverlay::createButton(), Digikam::ImportRotateOverlay::createButton(), numberOfAffectedIndexes(), Digikam::AbstractWidgetDelegateOverlay::setActive(), Digikam::ItemRatingOverlay::setActive(), Digikam::TagsLineEditOverlay::setActive(), Digikam::ImportRatingOverlay::setActive(), setView(), Digikam::ItemRatingOverlay::slotEntered(), Digikam::TagsLineEditOverlay::slotEntered(), Digikam::ImportRatingOverlay::slotEntered(), and viewHasMultiSelection().
◆ viewHasMultiSelection()
bool Digikam::ItemDelegateOverlay::viewHasMultiSelection |
( |
| ) |
const |
|
protected |
◆ visualChange
void Digikam::ItemDelegateOverlay::visualChange |
( |
| ) |
|
|
protectedvirtualslot |
Called when any change from the delegate occurs - when the overlay is installed, when size hints, styles or fonts change
Reimplemented in Digikam::ImportRatingOverlay, Digikam::ImportDownloadOverlay, Digikam::ImportLockOverlay, Digikam::ImportCoordinatesOverlay, ShowFoto::ShowfotoCoordinatesOverlay, Digikam::HoverButtonDelegateOverlay, Digikam::TagsLineEditOverlay, Digikam::ItemRatingOverlay, Digikam::ItemCoordinatesOverlay, Digikam::GroupIndicatorOverlay, and Digikam::AssignNameOverlay.
Referenced by setDelegate().
◆ m_delegate
QAbstractItemDelegate* Digikam::ItemDelegateOverlay::m_delegate |
|
protected |
◆ m_view
QAbstractItemView* Digikam::ItemDelegateOverlay::m_view |
|
protected |
Referenced by Digikam::AbstractWidgetDelegateOverlay::parentWidget(), Digikam::ItemSelectionOverlay::setActive(), Digikam::AbstractWidgetDelegateOverlay::setActive(), Digikam::PersistentWidgetDelegateOverlay::setActive(), setView(), Digikam::ItemSelectionOverlay::slotClicked(), Digikam::FaceRejectionOverlay::updateButton(), Digikam::ItemFullScreenOverlay::updateButton(), Digikam::ItemRotateOverlay::updateButton(), Digikam::ItemSelectionOverlay::updateButton(), Digikam::ShowHideVersionsOverlay::updateButton(), Digikam::ActionVersionsOverlay::updateButton(), Digikam::ImportRotateOverlay::updateButton(), Digikam::AssignNameOverlay::updatePosition(), Digikam::GroupIndicatorOverlay::updatePosition(), Digikam::ItemCoordinatesOverlay::updatePosition(), Digikam::ItemRatingOverlay::updatePosition(), Digikam::TagsLineEditOverlay::updatePosition(), ShowFoto::ShowfotoCoordinatesOverlay::updatePosition(), Digikam::ImportCoordinatesOverlay::updatePosition(), Digikam::ImportLockOverlay::updatePosition(), Digikam::ImportDownloadOverlay::updatePosition(), Digikam::ImportRatingOverlay::updatePosition(), and view().
The documentation for this class was generated from the following files: