Changeset 51956 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 9, 2014 2:32:38 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIAnimationFramework.cpp
r48534 r51956 26 26 /* GUI includes: */ 27 27 #include "UIAnimationFramework.h" 28 29 /* Other VBox includes: */ 30 #include "iprt/assert.h" 28 31 29 32 /* static */ … … 69 72 void UIAnimation::prepare() 70 73 { 74 /* Make sure parent asigned: */ 75 AssertPtrReturnVoid(parent()); 76 71 77 /* Prepare animation-machine: */ 72 78 m_pAnimationMachine = new QStateMachine(this); 73 79 /* Create 'start' state: */ 74 80 m_pStateStart = new QState(m_pAnimationMachine); 81 m_pStateStart->assignProperty(parent(), "AnimationState", QString("Start")); 75 82 connect(m_pStateStart, SIGNAL(propertiesAssigned()), this, SIGNAL(sigStateEnteredStart())); 76 83 /* Create 'final' state: */ 77 84 m_pStateFinal = new QState(m_pAnimationMachine); 85 m_pStateFinal->assignProperty(parent(), "AnimationState", QString("Final")); 78 86 connect(m_pStateFinal, SIGNAL(propertiesAssigned()), this, SIGNAL(sigStateEnteredFinal())); 79 87 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r51654 r51956 191 191 updateAutoHideAnimationBounds(); 192 192 193 /* Update toolbar geometry if necessary: */ 194 const QString strAnimationState = property("AnimationState").toString(); 195 if (strAnimationState == "Start") 196 m_pEmbeddedToolbar->move(m_hiddenToolbarPosition); 197 else if (strAnimationState == "Final") 198 m_pEmbeddedToolbar->move(m_shownToolbarPosition); 199 193 200 /* Simulate toolbar auto-hiding: */ 194 201 simulateToolbarAutoHiding();
Note:
See TracChangeset
for help on using the changeset viewer.