digiKam
Digikam::AnimatedClearButton Class Reference
+ Inheritance diagram for Digikam::AnimatedClearButton:

Public Slots

void animateVisible (bool visible)
 Set visible, possibly with animation. More...
 
void setDirectlyVisible (bool visible)
 Set visible without animation. More...
 

Signals

void clicked ()
 

Public Member Functions

 AnimatedClearButton (QWidget *const parent=nullptr)
 
QPixmap pixmap () const
 
void setPixmap (const QPixmap &p)
 
void setShallBeShown (bool show)
 
QSize sizeHint () const override
 
void stayVisibleWhenAnimatedOut (bool stayVisible)
 

Protected Slots

void updateAnimationSettings ()
 
void visibleChanged ()
 

Protected Member Functions

void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 

Constructor & Destructor Documentation

◆ AnimatedClearButton()

Digikam::AnimatedClearButton::AnimatedClearButton ( QWidget *const  parent = nullptr)
explicit

References visibleChanged().

Member Function Documentation

◆ animateVisible

void Digikam::AnimatedClearButton::animateVisible ( bool  visible)
slot

Set visible, possibly with animation.

Referenced by Digikam::SearchField::setValidValueState().

◆ clicked

void Digikam::AnimatedClearButton::clicked ( )
signal

Referenced by mouseReleaseEvent().

◆ mouseReleaseEvent()

void Digikam::AnimatedClearButton::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

References clicked().

◆ paintEvent()

void Digikam::AnimatedClearButton::paintEvent ( QPaintEvent *  event)
overrideprotected

◆ pixmap()

QPixmap Digikam::AnimatedClearButton::pixmap ( ) const

◆ setDirectlyVisible

void Digikam::AnimatedClearButton::setDirectlyVisible ( bool  visible)
slot

Set visible without animation.

◆ setPixmap()

void Digikam::AnimatedClearButton::setPixmap ( const QPixmap &  p)

◆ setShallBeShown()

void Digikam::AnimatedClearButton::setShallBeShown ( bool  show)

Sets a primary condition for the button to be shown. If false, animateVisible() will have no effect.

References visibleChanged().

Referenced by Digikam::SearchField::setVisible().

◆ sizeHint()

QSize Digikam::AnimatedClearButton::sizeHint ( void  ) const
override

◆ stayVisibleWhenAnimatedOut()

void Digikam::AnimatedClearButton::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. If stayVisible is false, setVisible(false) is called, which removes the widget for layouting etc. Default: false

References visibleChanged().

Referenced by Digikam::SearchField::setup().

◆ updateAnimationSettings

void Digikam::AnimatedClearButton::updateAnimationSettings ( )
protectedslot

◆ visibleChanged

void Digikam::AnimatedClearButton::visibleChanged ( )
protectedslot

The documentation for this class was generated from the following files: