25 #ifndef DIGIKAM_ITEM_VISIBILITY_CONTROLLER_H
26 #define DIGIKAM_ITEM_VISIBILITY_CONTROLLER_H
30 #include <QAbstractAnimation>
38 class QPropertyAnimation;
46 Q_PROPERTY(
bool shallBeShown READ shallBeShown WRITE setShallBeShown)
47 Q_PROPERTY(
bool visible READ isVisible WRITE setVisible)
94 bool shallBeShown()
const;
95 bool isVisible()
const;
103 bool hasVisibleItems(IncludeFadingOutMode mode = IncludeFadingOut)
const;
118 void addItem(QObject*
object);
119 void removeItem(QObject*
object);
129 QList<QObject*> visibleItems(IncludeFadingOutMode mode = IncludeFadingOut)
const;
134 void setEasingCurve(
const QEasingCurve& easing);
135 void setAnimationDuration(
int msecs);
160 void setShallBeShown(
bool shallBeShown);
161 void setShallBeShownDirectly(
bool shallBeShown);
168 void setItemThatShallBeShown(QObject* item);
178 void setVisible(
bool visible);
179 void setDirectlyVisible(
bool visible);
187 void showItem(QObject* item);
188 void hideItem(QObject* item);
189 void setItemVisible(QObject* item,
bool visible);
190 void setItemDirectlyVisible(QObject* item,
bool visible);
196 void hideAndRemoveItem(QObject* item);
207 virtual QPropertyAnimation* createAnimation(QObject* item);
211 void animationFinished();
212 void objectDestroyed(QObject*);
225 Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged)
226 Q_PROPERTY(
bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged)
238 qreal opacity()
const;
239 void setOpacity(qreal opacity);
241 bool isVisible()
const;
242 void setVisible(
bool visible);
300 HidingStateChanger(QObject*
const target,
const QByteArray& property, QObject*
const parent =
nullptr);
302 void setTargetObject(QObject*
const object);
303 void setPropertyName(
const QByteArray& propertyName);
307 void changeValue(
const QVariant&
value);
323 void slotPropertiesAssigned(
bool);
Definition: itemvisibilitycontroller.h:258
ItemVisibilityController * m_controller
Definition: itemvisibilitycontroller.h:276
Definition: itemvisibilitycontroller.h:282
QVariant m_value
Definition: itemvisibilitycontroller.h:329
QObject * m_object
Definition: itemvisibilitycontroller.h:327
QByteArray m_property
Definition: itemvisibilitycontroller.h:328
Definition: itemvisibilitycontroller.h:223
bool m_visible
Definition: itemvisibilitycontroller.h:252
qreal m_opacity
Definition: itemvisibilitycontroller.h:251
Definition: itemvisibilitycontroller.h:44
State
Definition: itemvisibilitycontroller.h:72
@ Hidden
Definition: itemvisibilitycontroller.h:73
@ FadingIn
Definition: itemvisibilitycontroller.h:74
@ Visible
Definition: itemvisibilitycontroller.h:75
void propertiesAssigned(bool visible)
void propertiesAssigned(QObject *item, bool visible)
IncludeFadingOutMode
Definition: itemvisibilitycontroller.h:81
@ IncludeFadingOut
In addition to items visible or fading in, return those fading out.
Definition: itemvisibilitycontroller.h:83
void hiddenAndRemoved(QObject *item)
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43
Definition: abstractalbumtreeview_p.h:85