digiKam
|
Public Member Functions | |
QModelIndex | index () const |
void | initIcon () |
ItemViewHoverButton (QAbstractItemView *const parentView) | |
void | reset () |
void | setIndex (const QModelIndex &index) |
void | setVisible (bool visible) override |
QSize | sizeHint () const override=0 |
Protected Slots | |
void | refreshIcon () |
void | setFadingValue (int value) |
void | startFading () |
void | stopFading () |
Protected Member Functions | |
void | enterEvent (QEvent *event) |
virtual QIcon | icon ()=0 |
void | leaveEvent (QEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | setup () |
virtual void | updateToolTip () |
Protected Attributes | |
QTimeLine * | m_fadingTimeLine |
int | m_fadingValue |
QIcon | m_icon |
QPersistentModelIndex | m_index |
bool | m_isHovered |
|
explicit |
References m_fadingTimeLine.
|
protected |
|
protectedpure virtual |
Return your icon here. Will be queried again on toggle.
Implemented in Digikam::ImportRotateOverlayButton, Digikam::ItemSelectionOverlayButton, Digikam::ItemRotateOverlayButton, Digikam::ItemFullScreenOverlayButton, and Digikam::FaceRejectionOverlayButton.
Referenced by paintEvent(), and refreshIcon().
QModelIndex Digikam::ItemViewHoverButton::index | ( | ) | const |
void Digikam::ItemViewHoverButton::initIcon | ( | ) |
References refreshIcon(), and sizeHint().
Referenced by Digikam::HoverButtonDelegateOverlay::setActive().
|
protected |
References m_isHovered.
|
protected |
References icon(), m_fadingValue, m_icon, and m_isHovered.
|
protectedslot |
References icon(), and m_icon.
Referenced by initIcon(), and setup().
void Digikam::ItemViewHoverButton::reset | ( | ) |
References m_index.
Referenced by Digikam::HoverButtonDelegateOverlay::slotReset().
|
protectedslot |
References m_fadingTimeLine, m_fadingValue, and value.
Referenced by setup().
void Digikam::ItemViewHoverButton::setIndex | ( | const QModelIndex & | index | ) |
References index(), m_index, and startFading().
Referenced by Digikam::HoverButtonDelegateOverlay::slotEntered().
|
protected |
to call in children class constructors to init signal/slot connections.
References m_fadingTimeLine, refreshIcon(), and setFadingValue().
Referenced by Digikam::FaceRejectionOverlayButton::FaceRejectionOverlayButton(), Digikam::ImportRotateOverlayButton::ImportRotateOverlayButton(), Digikam::ItemFullScreenOverlayButton::ItemFullScreenOverlayButton(), Digikam::ItemRotateOverlayButton::ItemRotateOverlayButton(), and Digikam::ItemSelectionOverlayButton::ItemSelectionOverlayButton().
|
override |
References startFading(), and stopFading().
|
overridepure virtual |
Reimplement to match the size of your icon
Implemented in Digikam::ImportRotateOverlayButton, Digikam::ItemSelectionOverlayButton, Digikam::ItemRotateOverlayButton, Digikam::ItemFullScreenOverlayButton, and Digikam::FaceRejectionOverlayButton.
Referenced by initIcon().
|
protectedslot |
References m_fadingTimeLine, and m_fadingValue.
Referenced by setIndex(), and setVisible().
|
protectedslot |
References m_fadingTimeLine, and m_fadingValue.
Referenced by setVisible().
|
protectedvirtual |
Optionally update tooltip here. Will be called again on state change.
Reimplemented in Digikam::ImportRotateOverlayButton, Digikam::ItemSelectionOverlayButton, Digikam::ItemRotateOverlayButton, Digikam::ItemFullScreenOverlayButton, and Digikam::FaceRejectionOverlayButton.
|
protected |
Referenced by ItemViewHoverButton(), setFadingValue(), setup(), startFading(), and stopFading().
|
protected |
Referenced by paintEvent(), setFadingValue(), startFading(), and stopFading().
|
protected |
Referenced by paintEvent(), and refreshIcon().
|
protected |
Referenced by index(), reset(), and setIndex().
|
protected |
Referenced by leaveEvent(), and paintEvent().