|
| AssignNameWidgetStates (FaceItem *const item) |
|
| HidingStateChanger (QObject *const parent=nullptr) |
| This class provides a state change while fading in and out: When changeValue is called, first the items are hidden, when this is finished, the property is assigned to the object.
|
|
| HidingStateChanger (QObject *const target, const QByteArray &property, QObject *const parent=nullptr) |
| Convenience constructor: Sets target and property name.
|
|
void | setPropertyName (const QByteArray &propertyName) |
|
void | setTargetObject (QObject *const object) |
|
| ItemVisibilityController (QObject *const parent=nullptr) |
|
void | addItem (QObject *const object) |
| Add and remove objects.
|
|
void | clear () |
| Remove all animations.
|
|
bool | hasVisibleItems (IncludeFadingOutMode mode=IncludeFadingOut) const |
| This returns the "result" of isVisible and shallBeShown: Something is indeed visible on the scene.
|
|
bool | isVisible () const |
|
QList< QObject * > | items () const |
| Returns all items under control.
|
|
void | removeItem (QObject *const object) |
|
void | setAnimationDuration (int msecs) |
|
void | setEasingCurve (const QEasingCurve &easing) |
| Allows to change the default parameters of all animations.
|
|
bool | shallBeShown () const |
|
State | state () const |
|
QList< QObject * > | visibleItems (IncludeFadingOutMode mode=IncludeFadingOut) const |
| Returns all currently visible items.
|
|
|
enum | IncludeFadingOutMode { IncludeFadingOut
, ExcludeFadingOut
} |
|
enum | State { Hidden
, FadingIn
, Visible
, FadingOut
} |
| This class handles complex visibility situations for items. More...
|
|
void | changeValue (const QVariant &value) |
|
void | hide () |
|
void | hideAndRemoveItem (QObject *item) |
| Hide the item, and then remove it.
|
|
void | hideItem (QObject *item) |
|
void | setDirectlyVisible (bool visible) |
|
void | setItemDirectlyVisible (QObject *item, bool visible) |
|
void | setItemThatShallBeShown (QObject *item) |
| Sets a single item to be shown.
|
|
void | setItemVisible (QObject *item, bool visible) |
|
void | setShallBeShown (bool shallBeShown) |
| Adjusts the first condition - the items are shown if shallBeShown is true and isVisible is true.
|
|
void | setShallBeShownDirectly (bool shallBeShown) |
|
void | setVisible (bool visible) |
|
void | show () |
| Adjusts the main condition.
|
|
void | showItem (QObject *item) |
| Shows or hides a single item.
|
|
void | finished () |
| Emitted when the items were hidden, the target object's property changed, and the items shown again.
|
|
void | stateChanged () |
| Emitted when the items were hidden and the target object's property changed.
|
|
void | hiddenAndRemoved (QObject *item) |
| Emitted when hideAndRemoveItem has finished.
|
|
void | propertiesAssigned (bool visible) |
| Emitted when the (main) transition has finished.
|
|
void | propertiesAssignedToItem (QObject *item, bool visible) |
| Emitted when a transition for a single item finished (see setItemVisible())
|
|
virtual QPropertyAnimation * | createAnimation (QObject *item) |
| Creates the animation for showing and hiding the given item.
|
|
QObject * | m_object = nullptr |
|
QByteArray | m_property |
|
QVariant | m_value |
|
bool | shallBeShown |
|
bool | visible |
|