6#if QT_CONFIG(animation)
7#include <QtCore/qpropertyanimation.h>
9#include <QtWidgets/qwidget.h>
10#include <QtWidgets/qstyle.h>
11#if QT_CONFIG(mainwindow)
12#include <private/qmainwindowlayout_p.h>
18#if QT_CONFIG(mainwindow)
19: m_mainWindowLayout(
layout)
27#if QT_CONFIG(animation)
29 if (
it == m_animation_map.
cend())
36#if QT_CONFIG(mainwindow)
37 m_mainWindowLayout->animationFinished(
w);
44#if QT_CONFIG(animation)
45void QWidgetAnimator::animationFinished()
55 if (
r.right() < 0 ||
r.bottom() < 0)
64#if QT_CONFIG(animation)
68 if (
it != m_animation_map.
constEnd() && (*it)->endValue().toRect() == final_geometry)
75 m_animation_map[
widget] = anim;
83#if QT_CONFIG(mainwindow)
84 m_mainWindowLayout->animationFinished(
widget);
91 return !m_animation_map.
isEmpty();
96#include "moc_qwidgetanimator_p.cpp"
void stop()
Stops the animation.
void start(QAbstractAnimation::DeletionPolicy policy=KeepWhenStopped)
Starts the animation.
const_iterator constFind(const Key &key) const noexcept
const_iterator constEnd() const noexcept
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the ...
iterator erase(const_iterator it)
friend class const_iterator
const_iterator cend() const noexcept
bool isEmpty() const noexcept
Returns true if the hash contains no items; otherwise returns false.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
\inmodule QtCore\reentrant
QObject * targetObject
the target QObject for this animation.
\inmodule QtCore\reentrant
constexpr bool isValid() const noexcept
Returns true if the rectangle is valid, otherwise returns false.
constexpr bool isNull() const noexcept
Returns true if the rectangle is a null rectangle, otherwise returns false.
@ SH_Widget_Animation_Duration
virtual int styleHint(StyleHint stylehint, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr, QStyleHintReturn *returnData=nullptr) const =0
Returns an integer representing the specified style hint for the given widget described by the provid...
void setEasingCurve(const QEasingCurve &easing)
void setDuration(int msecs)
void setEndValue(const QVariant &value)
QSet< QString >::iterator it
Combined button and popup list for selecting options.
GLfloat GLfloat GLfloat w
[0]