![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Signals | |
void | clicked () |
void | visibleChanged (bool v) |
Public Member Functions | |
AnimatedClearButton (QWidget *const parent=nullptr) | |
QPixmap | pixmap () const |
void | setPixmap (const QPixmap &p) |
void | setShallBeShown (bool show) |
Sets a primary condition for the button to be shown. | |
QSize | sizeHint () const override |
void | stayVisibleWhenAnimatedOut (bool stayVisible) |
This parameter determines the behavior when the animation to hide the widget has finished: If stayVisible is true, the widget remains visible, but paints nothing. | |
Protected Slots | |
void | slotUpdateAnimationSettings () |
void | slotVisibleChanged () |
Protected Member Functions | |
void | mouseReleaseEvent (QMouseEvent *event) override |
void | paintEvent (QPaintEvent *event) override |
void Digikam::AnimatedClearButton::setShallBeShown | ( | bool | show | ) |
If false, animateVisible() will have no effect.
void Digikam::AnimatedClearButton::stayVisibleWhenAnimatedOut | ( | bool | stayVisible | ) |
If stayVisible is false, setVisible(false) is called, which removes the widget for layouting etc. Default: false