digiKam
|
Public Slots | |
void | enterPersistentMode () |
void | leavePersistentMode () |
void | setPersistent (bool persistent) |
void | storeFocus () |
Signals | |
void | confirmFaces (const QList< QModelIndex > &indexes, int tagId) |
void | hideNotification () |
void | ignoreFaces (const QList< QModelIndex > &indexes) |
void | removeFaces (const QList< QModelIndex > &indexes) |
void | requestNotification (const QModelIndex &index, const QString &message) |
void | unknownFaces (const QList< QModelIndex > &indexes) |
void | update (const QModelIndex &index) |
Public Member Functions | |
virtual bool | acceptsDelegate (QAbstractItemDelegate *) const |
AssignNameOverlay (QObject *const parent) | |
AssignNameWidget * | assignNameWidget () const |
QAbstractItemDelegate * | delegate () const |
bool | isPersistent () const |
virtual void | mouseMoved (QMouseEvent *e, const QRect &visualRect, const QModelIndex &index) |
virtual void | paint (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) |
void | setDelegate (QAbstractItemDelegate *delegate) |
void | setView (QAbstractItemView *view) |
QAbstractItemView * | view () const |
~AssignNameOverlay () override | |
Protected Slots | |
void | slotAssigned (const TaggingAction &action, const ItemInfo &, const QVariant &faceIdentifier) |
void | slotIgnored (const ItemInfo &, const QVariant &faceIdentifier) |
void | slotRejected (const ItemInfo &, const QVariant &faceIdentifier) |
void | slotUnknown (const ItemInfo &, const QVariant &faceIdentifier) |
Protected Member Functions | |
QList< QModelIndex > | affectedIndexes (const QModelIndex &index) const |
bool | affectsMultiple (const QModelIndex &index) const |
bool | checkIndex (const QModelIndex &index) const override |
bool | checkIndexOnEnter (const QModelIndex &index) const |
QWidget * | createWidget () override |
bool | eventFilter (QObject *o, QEvent *e) override |
void | hide () override |
QModelIndex | index () const |
virtual QString | notifyMultipleMessage (const QModelIndex &, int number) |
int | numberOfAffectedIndexes (const QModelIndex &index) const |
QWidget * | parentWidget () const |
void | restoreFocus () |
void | setActive (bool) override |
void | setFocusOnWidget () override |
void | showOnIndex (const QModelIndex &index) override |
see slotEntered() More... | |
void | slotEntered (const QModelIndex &index) override |
void | slotLayoutChanged () override |
void | slotReset () override |
void | slotRowsRemoved (const QModelIndex &parent, int start, int end) override |
void | slotViewportEntered () override |
void | updateFace () |
void | updatePosition () |
bool | viewHasMultiSelection () const |
void | viewportLeaveEvent (QObject *obj, QEvent *event) override |
void | visualChange () override |
void | widgetEnterEvent () override |
void | widgetEnterNotifyMultiple (const QModelIndex &index) |
void | widgetLeaveEvent () override |
void | widgetLeaveNotifyMultiple () |
Protected Attributes | |
QAbstractItemDelegate * | m_delegate |
bool | m_mouseButtonPressedOnWidget |
QAbstractItemView * | m_view |
QWidget * | m_widget |
|
explicit |
|
override |
|
inlinevirtualinherited |
Referenced by Digikam::ItemDelegateOverlayContainer::installOverlay().
|
protectedinherited |
References Digikam::ItemDelegateOverlay::affectsMultiple(), and Digikam::ItemDelegateOverlay::view().
Referenced by slotAssigned(), Digikam::FaceRejectionOverlay::slotClicked(), slotIgnored(), Digikam::ItemRatingOverlay::slotRatingChanged(), Digikam::ImportRatingOverlay::slotRatingChanged(), slotRejected(), and slotUnknown().
|
protectedinherited |
For the context that an overlay can affect multiple items: Assuming the currently overlayed index is given. Will an operation affect only the single item, or multiple? If multiple, retrieve the affected selection.
References Digikam::ItemDelegateOverlay::view(), and Digikam::ItemDelegateOverlay::viewHasMultiSelection().
Referenced by Digikam::ItemDelegateOverlay::affectedIndexes(), Digikam::ItemDelegateOverlay::numberOfAffectedIndexes(), and Digikam::AbstractWidgetDelegateOverlay::widgetEnterNotifyMultiple().
AssignNameWidget * Digikam::AssignNameOverlay::assignNameWidget | ( | ) | const |
Referenced by eventFilter(), setActive(), setFocusOnWidget(), updateFace(), and viewportLeaveEvent().
|
overrideprotectedvirtual |
Return true here if you want to show the overlay for the given index. The default implementation returns true.
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::ItemModel::ExtraDataRole, Digikam::FaceTagsIface::fromVariant(), and Digikam::PersistentWidgetDelegateOverlay::index().
|
protectedinherited |
Utility method called from slotEntered
References Digikam::AbstractWidgetDelegateOverlay::checkIndex().
Referenced by Digikam::AbstractWidgetDelegateOverlay::slotEntered(), and Digikam::PersistentWidgetDelegateOverlay::slotEntered().
|
signal |
Referenced by slotAssigned().
|
overrideprotectedvirtual |
Create your widget here. When creating the object, pass parentWidget() as parent widget. Ownership of the object is passed. It will be deleted in setActive(false).
Implements Digikam::AbstractWidgetDelegateOverlay.
References Digikam::AssignNameWidget::AddTagsLineEditMode, Digikam::AssignNameWidget::Compact, Digikam::AbstractWidgetDelegateOverlay::parentWidget(), Digikam::DHBox::setStretchFactor(), Digikam::AssignNameWidget::TranslucentThemedFrameless, and Digikam::AssignNameWidget::UnconfirmedEditMode.
|
inherited |
References Digikam::ItemDelegateOverlay::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(), Digikam::ItemDelegateOverlay::setDelegate(), Digikam::ItemRatingOverlay::slotEntered(), Digikam::ImportRatingOverlay::slotEntered(), 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().
|
slotinherited |
References Digikam::PersistentWidgetDelegateOverlay::setPersistent().
Referenced by eventFilter(), and setActive().
|
overrideprotected |
|
overrideprotectedvirtual |
Called when the widget shall be hidden (mouse cursor left index, viewport, uninstalled etc.). Default implementation hide()s m_widget.
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::PersistentWidgetDelegateOverlay::hide().
Referenced by slotAssigned(), slotIgnored(), slotRejected(), and slotUnknown().
|
signalinherited |
|
signal |
Referenced by slotIgnored().
|
protectedinherited |
|
inherited |
Referenced by viewportLeaveEvent().
|
slotinherited |
References Digikam::PersistentWidgetDelegateOverlay::setPersistent().
Referenced by eventFilter(), Digikam::PersistentWidgetDelegateOverlay::setActive(), and setActive().
|
virtualinherited |
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().
|
protectedvirtualinherited |
|
protectedinherited |
|
virtualinherited |
Referenced by Digikam::ItemDelegateOverlayContainer::drawOverlays().
|
protectedinherited |
Returns the widget to be used as parent for your widget created in createWidget()
References Digikam::ItemDelegateOverlay::m_view.
Referenced by createWidget(), Digikam::GroupIndicatorOverlay::createWidget(), Digikam::ItemCoordinatesOverlay::createWidget(), Digikam::ItemRatingOverlay::createWidget(), Digikam::TagsLineEditOverlay::createWidget(), ShowFoto::ShowfotoCoordinatesOverlay::createWidget(), Digikam::ImportCoordinatesOverlay::createWidget(), Digikam::ImportLockOverlay::createWidget(), Digikam::ImportDownloadOverlay::createWidget(), and Digikam::ImportRatingOverlay::createWidget().
|
signal |
Referenced by slotRejected().
|
signalinherited |
|
protectedinherited |
|
overrideprotectedvirtual |
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 from Digikam::ItemDelegateOverlay.
References assignNameWidget(), Digikam::PersistentWidgetDelegateOverlay::enterPersistentMode(), Digikam::PersistentWidgetDelegateOverlay::leavePersistentMode(), Digikam::PersistentWidgetDelegateOverlay::setActive(), slotAssigned(), slotIgnored(), slotRejected(), slotUnknown(), and Digikam::PersistentWidgetDelegateOverlay::storeFocus().
|
inherited |
References Digikam::ItemDelegateOverlay::delegate(), Digikam::ItemDelegateOverlay::m_delegate, and Digikam::ItemDelegateOverlay::visualChange().
Referenced by Digikam::ItemDelegateOverlayContainer::installOverlay(), Digikam::ItemDelegateOverlayContainer::removeAllOverlays(), and Digikam::ItemDelegateOverlayContainer::removeOverlay().
|
overrideprotectedvirtual |
Reimplement to set the focus on the correct subwidget. Default implementation sets focus on widget()
Reimplemented from Digikam::PersistentWidgetDelegateOverlay.
References assignNameWidget(), and Digikam::AssignNameWidget::lineEdit().
|
slotinherited |
Enters persistent mode. The overlay is moved because of mouse hover.
References Digikam::PersistentWidgetDelegateOverlay::hide(), Digikam::PersistentWidgetDelegateOverlay::showOnIndex(), and Digikam::PersistentWidgetDelegateOverlay::slotEntered().
Referenced by Digikam::PersistentWidgetDelegateOverlay::enterPersistentMode(), Digikam::PersistentWidgetDelegateOverlay::leavePersistentMode(), Digikam::PersistentWidgetDelegateOverlay::slotLayoutChanged(), Digikam::PersistentWidgetDelegateOverlay::slotReset(), Digikam::PersistentWidgetDelegateOverlay::slotRowsRemoved(), and Digikam::PersistentWidgetDelegateOverlay::viewportLeaveEvent().
|
inherited |
References Digikam::ItemDelegateOverlay::m_view, Digikam::ItemDelegateOverlay::update(), and Digikam::ItemDelegateOverlay::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().
|
overrideprotectedvirtual |
see slotEntered()
Reimplemented from Digikam::PersistentWidgetDelegateOverlay.
References Digikam::PersistentWidgetDelegateOverlay::index(), Digikam::PersistentWidgetDelegateOverlay::showOnIndex(), updateFace(), and updatePosition().
|
protectedslot |
References Digikam::ItemDelegateOverlay::affectedIndexes(), confirmFaces(), Digikam::FaceTagsIface::fromVariant(), Digikam::FaceTags::getOrCreateTagForPerson(), hide(), Digikam::PersistentWidgetDelegateOverlay::index(), Digikam::FaceTagsIface::isConfirmedName(), Digikam::TaggingAction::isValid(), Digikam::TaggingAction::newTagName(), Digikam::TaggingAction::shallAssignTag(), Digikam::TaggingAction::shallCreateNewTag(), and Digikam::TaggingAction::tagId().
Referenced by setActive().
|
overrideprotectedvirtualinherited |
Most overlays reimplement this slot to get the starting point for repositioning a widget etc. This class instead provides showOnIndex() which you shall use for this purpose.
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::AbstractWidgetDelegateOverlay::checkIndexOnEnter(), Digikam::PersistentWidgetDelegateOverlay::hide(), Digikam::PersistentWidgetDelegateOverlay::index(), Digikam::AbstractWidgetDelegateOverlay::m_widget, and Digikam::PersistentWidgetDelegateOverlay::showOnIndex().
Referenced by Digikam::PersistentWidgetDelegateOverlay::setPersistent().
|
protectedslot |
References Digikam::ItemDelegateOverlay::affectedIndexes(), hide(), ignoreFaces(), and Digikam::PersistentWidgetDelegateOverlay::index().
Referenced by setActive().
|
overrideprotectedvirtualinherited |
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::PersistentWidgetDelegateOverlay::setPersistent(), and Digikam::AbstractWidgetDelegateOverlay::slotLayoutChanged().
|
protectedslot |
References Digikam::ItemDelegateOverlay::affectedIndexes(), hide(), Digikam::PersistentWidgetDelegateOverlay::index(), and removeFaces().
Referenced by setActive().
|
overrideprotectedvirtualinherited |
Default implementations of these three slots call hide()
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::PersistentWidgetDelegateOverlay::setPersistent(), and Digikam::AbstractWidgetDelegateOverlay::slotReset().
|
overrideprotectedvirtualinherited |
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::PersistentWidgetDelegateOverlay::setPersistent(), and Digikam::AbstractWidgetDelegateOverlay::slotRowsRemoved().
|
protectedslot |
References Digikam::ItemDelegateOverlay::affectedIndexes(), hide(), Digikam::PersistentWidgetDelegateOverlay::index(), and unknownFaces().
Referenced by setActive().
|
overrideprotectedvirtualinherited |
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::AbstractWidgetDelegateOverlay::slotViewportEntered().
|
slotinherited |
Referenced by setActive().
|
signal |
Referenced by slotUnknown().
|
signalinherited |
Referenced by Digikam::ItemDelegateOverlay::setView().
|
protected |
The order to plug these functions is important, since setUserData() controls how the Overlay appears on a particular face.
References assignNameWidget(), Digikam::ItemModel::ExtraDataRole, Digikam::FaceTagsIface::fromVariant(), Digikam::PersistentWidgetDelegateOverlay::index(), Digikam::ItemModel::retrieveItemInfo(), Digikam::AssignNameWidget::setCurrentFace(), and Digikam::AssignNameWidget::setUserData().
Referenced by showOnIndex().
|
protected |
|
inherited |
References Digikam::ItemDelegateOverlay::m_view.
Referenced by Digikam::ItemDelegateOverlay::affectedIndexes(), Digikam::ItemDelegateOverlay::affectsMultiple(), Digikam::FaceRejectionOverlay::createButton(), Digikam::ItemFullScreenOverlay::createButton(), Digikam::ItemRotateOverlay::createButton(), Digikam::ItemSelectionOverlay::createButton(), Digikam::ShowHideVersionsOverlay::createButton(), Digikam::ActionVersionsOverlay::createButton(), Digikam::ImportRotateOverlay::createButton(), Digikam::ItemDelegateOverlay::numberOfAffectedIndexes(), Digikam::AbstractWidgetDelegateOverlay::setActive(), Digikam::ItemRatingOverlay::setActive(), Digikam::TagsLineEditOverlay::setActive(), Digikam::ImportRatingOverlay::setActive(), Digikam::ItemDelegateOverlay::setView(), Digikam::ItemRatingOverlay::slotEntered(), Digikam::TagsLineEditOverlay::slotEntered(), Digikam::ImportRatingOverlay::slotEntered(), and Digikam::ItemDelegateOverlay::viewHasMultiSelection().
|
protectedinherited |
Utility method
References Digikam::ItemDelegateOverlay::view().
Referenced by Digikam::ItemDelegateOverlay::affectsMultiple().
|
overrideprotectedvirtual |
Called when a QEvent::Leave of the viewport is received. The default implementation hide()s.
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References assignNameWidget(), Digikam::PersistentWidgetDelegateOverlay::isPersistent(), Digikam::AbstractWidgetDelegateOverlay::m_widget, and Digikam::PersistentWidgetDelegateOverlay::viewportLeaveEvent().
|
overrideprotectedvirtual |
Called when any change from the delegate occurs - when the overlay is installed, when size hints, styles or fonts change
Reimplemented from Digikam::ItemDelegateOverlay.
References Digikam::AbstractWidgetDelegateOverlay::m_widget, and updatePosition().
|
overrideprotectedvirtual |
Called when a QEvent::Enter resp. QEvent::Leave event for the widget is received. The default implementation does nothing.
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::PersistentWidgetDelegateOverlay::index(), and Digikam::AbstractWidgetDelegateOverlay::widgetEnterNotifyMultiple().
|
protectedinherited |
A sample implementation for above methods
References Digikam::ItemDelegateOverlay::affectsMultiple(), Digikam::AbstractWidgetDelegateOverlay::notifyMultipleMessage(), Digikam::ItemDelegateOverlay::numberOfAffectedIndexes(), and Digikam::ItemDelegateOverlay::requestNotification().
Referenced by widgetEnterEvent(), Digikam::FaceRejectionOverlay::widgetEnterEvent(), Digikam::ItemFullScreenOverlay::widgetEnterEvent(), Digikam::ItemRatingOverlay::widgetEnterEvent(), Digikam::ItemRotateOverlay::widgetEnterEvent(), Digikam::ImportRatingOverlay::widgetEnterEvent(), and Digikam::ImportRotateOverlay::widgetEnterEvent().
|
overrideprotectedvirtual |
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
References Digikam::AbstractWidgetDelegateOverlay::widgetLeaveNotifyMultiple().
|
protectedinherited |
References Digikam::ItemDelegateOverlay::hideNotification().
Referenced by widgetLeaveEvent(), Digikam::FaceRejectionOverlay::widgetLeaveEvent(), Digikam::ItemFullScreenOverlay::widgetLeaveEvent(), Digikam::ItemRatingOverlay::widgetLeaveEvent(), Digikam::ItemRotateOverlay::widgetLeaveEvent(), Digikam::ImportRatingOverlay::widgetLeaveEvent(), and Digikam::ImportRotateOverlay::widgetLeaveEvent().
|
protectedinherited |
Referenced by Digikam::ItemDelegateOverlay::delegate(), and Digikam::ItemDelegateOverlay::setDelegate().
|
protectedinherited |
Referenced by Digikam::AbstractWidgetDelegateOverlay::eventFilter().
|
protectedinherited |
Referenced by Digikam::AbstractWidgetDelegateOverlay::parentWidget(), Digikam::ItemSelectionOverlay::setActive(), Digikam::AbstractWidgetDelegateOverlay::setActive(), Digikam::PersistentWidgetDelegateOverlay::setActive(), Digikam::ItemDelegateOverlay::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(), 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 Digikam::ItemDelegateOverlay::view().
|
protectedinherited |
Referenced by Digikam::TagsLineEditOverlay::addTagsLineEdit(), Digikam::HoverButtonDelegateOverlay::button(), Digikam::GroupIndicatorOverlay::buttonWidget(), Digikam::ItemCoordinatesOverlay::buttonWidget(), ShowFoto::ShowfotoCoordinatesOverlay::buttonWidget(), Digikam::ImportCoordinatesOverlay::buttonWidget(), Digikam::ImportLockOverlay::buttonWidget(), Digikam::ImportDownloadOverlay::buttonWidget(), Digikam::GroupIndicatorOverlay::checkIndex(), Digikam::ItemCoordinatesOverlay::checkIndex(), ShowFoto::ShowfotoCoordinatesOverlay::checkIndex(), Digikam::ImportCoordinatesOverlay::checkIndex(), Digikam::ImportLockOverlay::checkIndex(), Digikam::ImportDownloadOverlay::checkIndex(), Digikam::AbstractWidgetDelegateOverlay::eventFilter(), Digikam::AbstractWidgetDelegateOverlay::hide(), Digikam::TagsLineEditOverlay::hide(), Digikam::PersistentWidgetDelegateOverlay::hide(), Digikam::ItemRatingOverlay::ratingWidget(), Digikam::ImportRatingOverlay::ratingWidget(), Digikam::AbstractWidgetDelegateOverlay::setActive(), Digikam::PersistentWidgetDelegateOverlay::setFocusOnWidget(), Digikam::ItemRatingOverlay::slotDataChanged(), Digikam::ImportRatingOverlay::slotDataChanged(), Digikam::AbstractWidgetDelegateOverlay::slotEntered(), Digikam::ItemRatingOverlay::slotEntered(), Digikam::TagsLineEditOverlay::slotEntered(), Digikam::PersistentWidgetDelegateOverlay::slotEntered(), Digikam::ImportRatingOverlay::slotEntered(), Digikam::ItemRatingOverlay::slotRatingChanged(), Digikam::ImportRatingOverlay::slotRatingChanged(), Digikam::TagsLineEditOverlay::slotTagChanged(), 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(), Digikam::ItemRatingOverlay::updateRating(), Digikam::ImportRatingOverlay::updateRating(), viewportLeaveEvent(), visualChange(), Digikam::GroupIndicatorOverlay::visualChange(), Digikam::ItemCoordinatesOverlay::visualChange(), Digikam::ItemRatingOverlay::visualChange(), Digikam::TagsLineEditOverlay::visualChange(), Digikam::HoverButtonDelegateOverlay::visualChange(), ShowFoto::ShowfotoCoordinatesOverlay::visualChange(), Digikam::ImportCoordinatesOverlay::visualChange(), Digikam::ImportLockOverlay::visualChange(), Digikam::ImportDownloadOverlay::visualChange(), and Digikam::ImportRatingOverlay::visualChange().