◆ IncludeFadingOutMode
Enumerator |
---|
IncludeFadingOut | In addition to items visible or fading in, return those fading out.
|
ExcludeFadingOut | Do not return those items currently fading out (soon to be hidden)
|
◆ State
This class handles complex visibility situations for items. There is a 3-tiered approach: 1) shallBeShown determines if the items shall at any time be shown. If it is false, items will never be shown. Default is true, so you can ignore this setting. 2) visible determines if the items shall be shown now. Only takes effect if shallBeShown is true. Default is false: Initially, controlled items are hidden. 3) Opacity and individual item visibility: When showing, items are first set to individually visible, then their opacity is increased from 0 to 1. When hiding, opacity is first decreased from 1 to 0, then they are set individually to hidden. Different types of items can be handled:
- a group of items with an "opacity" and "visible" property
- a single item with an "opacity" and "visible" property
- a proxy object with these properties (see above)
Enumerator |
---|
Hidden | |
FadingIn | |
Visible | |
FadingOut | |
◆ ItemVisibilityController()
Digikam::ItemVisibilityController::ItemVisibilityController |
( |
QObject *const |
parent = nullptr | ) |
|
|
explicit |
◆ ~ItemVisibilityController()
Digikam::ItemVisibilityController::~ItemVisibilityController |
( |
| ) |
|
|
override |
◆ addItem()
void Digikam::ItemVisibilityController::addItem |
( |
QObject * |
object | ) |
|
◆ animationFinished
void Digikam::ItemVisibilityController::animationFinished |
( |
| ) |
|
|
protectedslot |
◆ clear()
void Digikam::ItemVisibilityController::clear |
( |
| ) |
|
◆ createAnimation()
QPropertyAnimation * Digikam::ItemVisibilityController::createAnimation |
( |
QObject * |
item | ) |
|
|
protectedvirtual |
Creates the animation for showing and hiding the given item. The item is given for information only, you do not need to use it. The default implementation creates and animation for "opacity" from 0.0 to 1.0, using default easing curve and duration, which can and will be changed by setEasingCurve and setAnimationDuration.
Referenced by addItem().
◆ hasVisibleItems()
◆ hiddenAndRemoved
void Digikam::ItemVisibilityController::hiddenAndRemoved |
( |
QObject * |
item | ) |
|
|
signal |
Emitted when hideAndRemoveItem has finished
◆ hide
void Digikam::ItemVisibilityController::hide |
( |
| ) |
|
|
slot |
◆ hideAndRemoveItem
void Digikam::ItemVisibilityController::hideAndRemoveItem |
( |
QObject * |
item | ) |
|
|
slot |
◆ hideItem
void Digikam::ItemVisibilityController::hideItem |
( |
QObject * |
item | ) |
|
|
slot |
◆ isVisible()
bool Digikam::ItemVisibilityController::isVisible |
( |
| ) |
const |
◆ items()
QList< QObject * > Digikam::ItemVisibilityController::items |
( |
| ) |
const |
◆ objectDestroyed
void Digikam::ItemVisibilityController::objectDestroyed |
( |
QObject * |
item | ) |
|
|
protectedslot |
◆ propertiesAssigned [1/2]
void Digikam::ItemVisibilityController::propertiesAssigned |
( |
bool |
visible | ) |
|
|
signal |
◆ propertiesAssigned [2/2]
void Digikam::ItemVisibilityController::propertiesAssigned |
( |
QObject * |
item, |
|
|
bool |
visible |
|
) |
| |
|
signal |
◆ removeItem()
void Digikam::ItemVisibilityController::removeItem |
( |
QObject * |
object | ) |
|
◆ setAnimationDuration()
void Digikam::ItemVisibilityController::setAnimationDuration |
( |
int |
msecs | ) |
|
◆ setDirectlyVisible
void Digikam::ItemVisibilityController::setDirectlyVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ setEasingCurve()
void Digikam::ItemVisibilityController::setEasingCurve |
( |
const QEasingCurve & |
easing | ) |
|
Allows to change the default parameters of all animations.
◆ setItemDirectlyVisible
void Digikam::ItemVisibilityController::setItemDirectlyVisible |
( |
QObject * |
item, |
|
|
bool |
visible |
|
) |
| |
|
slot |
◆ setItemThatShallBeShown
void Digikam::ItemVisibilityController::setItemThatShallBeShown |
( |
QObject * |
item | ) |
|
|
slot |
◆ setItemVisible
void Digikam::ItemVisibilityController::setItemVisible |
( |
QObject * |
item, |
|
|
bool |
visible |
|
) |
| |
|
slot |
◆ setShallBeShown
void Digikam::ItemVisibilityController::setShallBeShown |
( |
bool |
shallBeShown | ) |
|
|
slot |
◆ setShallBeShownDirectly
void Digikam::ItemVisibilityController::setShallBeShownDirectly |
( |
bool |
shallBeShown | ) |
|
|
slot |
◆ setVisible
void Digikam::ItemVisibilityController::setVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ shallBeShown()
bool Digikam::ItemVisibilityController::shallBeShown |
( |
| ) |
const |
◆ show
void Digikam::ItemVisibilityController::show |
( |
| ) |
|
|
slot |
◆ showItem
void Digikam::ItemVisibilityController::showItem |
( |
QObject * |
item | ) |
|
|
slot |
◆ state()
◆ visibleItems()
◆ shallBeShown
bool Digikam::ItemVisibilityController::shallBeShown |
|
readwrite |
◆ visible
bool Digikam::ItemVisibilityController::visible |
|
readwrite |
The documentation for this class was generated from the following files: