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