VirtualBox

Changeset 74960 in vbox


Ignore:
Timestamp:
Oct 21, 2018 1:13:44 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125978
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Chooser pane item: A possibility to specify hover animation bounds.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp

    r74799 r74960  
    199199*********************************************************************************************************************************/
    200200
    201 UIChooserItem::UIChooserItem(UIChooserItem *pParent, bool fTemporary)
     201UIChooserItem::UIChooserItem(UIChooserItem *pParent, bool fTemporary,
     202                             int iDefaultValue /* = 100 */, int iHoveredValue /* = 90 */)
    202203    : m_pParent(pParent)
    203204    , m_fTemporary(fTemporary)
     
    208209    , m_pHoveringAnimationBackward(0)
    209210    , m_iAnimationDuration(400)
    210     , m_iDefaultValue(100)
    211     , m_iHoveredValue(90)
     211    , m_iDefaultValue(iDefaultValue)
     212    , m_iHoveredValue(iHoveredValue)
    212213    , m_iAnimatedValue(m_iDefaultValue)
    213214    , m_iPreviousMinimumWidthHint(0)
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.h

    r74942 r74960  
    102102
    103103    /** Constructs item passing @a pParent to the base-class.
    104       * @param  fTemporary  Brings whether this item created for temporary needs. */
    105     UIChooserItem(UIChooserItem *pParent, bool fTemporary);
     104      * @param  fTemporary     Brings whether this item created for temporary needs.
     105      * @param  iDefaultValue  Brings default value for hovering animation.
     106      * @param  iHoveredValue  Brings hovered value for hovering animation. */
     107    UIChooserItem(UIChooserItem *pParent, bool fTemporary,
     108                  int iDefaultValue = 100, int iHoveredValue = 90);
    106109
    107110    /** @name Item stuff.
Note: See TracChangeset for help on using the changeset viewer.

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