VirtualBox

Changeset 73844 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 22, 2018 6:16:31 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: UISlidingAnimation: Possibility to reverse animation initially.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISlidingAnimation.cpp

    r73842 r73844  
    2727
    2828
    29 UISlidingAnimation::UISlidingAnimation(Qt::Orientation enmOrientation, QWidget *pParent /* = 0 */)
     29UISlidingAnimation::UISlidingAnimation(Qt::Orientation enmOrientation, bool fReverse, QWidget *pParent /* = 0 */)
    3030    : QWidget(pParent)
    3131    , m_enmOrientation(enmOrientation)
     32    , m_fReverse(fReverse)
    3233    , m_pAnimation(0)
    3334    , m_pWidget(0)
     
    108109                                                         "widgetGeometry",
    109110                                                         "startWidgetGeometry", "finalWidgetGeometry",
    110                                                          SIGNAL(sigForward()), SIGNAL(sigReverse()));
     111                                                         SIGNAL(sigForward()), SIGNAL(sigReverse()), m_fReverse);
    111112    connect(m_pAnimation, &UIAnimation::sigStateEnteredStart, this, &UISlidingAnimation::sltHandleStateEnteredStart);
    112113    connect(m_pAnimation, &UIAnimation::sigStateEnteredFinal, this, &UISlidingAnimation::sltHandleStateEnteredFinal);
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISlidingAnimation.h

    r73842 r73844  
    5959
    6060    /** Constructs sliding animation passing @a pParent to the base-class.
    61       * @param  enmOrientation  Brings the widget orientation. */
    62     UISlidingAnimation(Qt::Orientation enmOrientation, QWidget *pParent = 0);
     61      * @param  enmOrientation  Brings the widget orientation.
     62      * @param  fReverse        Brings whether the animation should be initially reversed. */
     63    UISlidingAnimation(Qt::Orientation enmOrientation, bool fReverse, QWidget *pParent = 0);
    6364
    6465    /** Defines @a pWidget1 and @a pWidget2. */
     
    9192    /** Holds the widget orientation. */
    9293    Qt::Orientation  m_enmOrientation;
     94    /** Holds whether the animation should be initially reversed. */
     95    bool             m_fReverse;
    9396    /** Holds the animation instance. */
    9497    UIAnimation     *m_pAnimation;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette