![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Inheritance diagram for Digikam::ItemViewHoverButton: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 |
| Return your icon here. | |
| 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 |
Will be queried again on toggle.
Implemented in Digikam::FaceRejectionOverlayButton, Digikam::ItemFullScreenOverlayButton, Digikam::ItemRotateOverlayButton, Digikam::ItemSelectionOverlayButton, and Digikam::ImportRotateOverlayButton.
|
overridepure virtual |
|
protectedvirtual |
Will be called again on state change.
Reimplemented in Digikam::FaceRejectionOverlayButton, Digikam::ItemFullScreenOverlayButton, Digikam::ItemRotateOverlayButton, Digikam::ItemSelectionOverlayButton, and Digikam::ImportRotateOverlayButton.