Changeset 57025 in vbox for trunk/src/VBox
- Timestamp:
- Jul 20, 2015 3:37:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r57024 r57025 518 518 m_pAnimation->update(); 519 519 520 /* Update toolbar geometry if necessary: */ 521 const QString strAnimationState = property("AnimationState").toString(); 522 if (strAnimationState == "Start") 520 /* Update embedded-toolbar geometry if known: */ 521 if (property("AnimationState").toString() == "Final") 522 m_pEmbeddedToolbar->move(m_shownToolbarPosition); 523 else 523 524 m_pEmbeddedToolbar->move(m_hiddenToolbarPosition); 524 else if (strAnimationState == "Final")525 m_pEmbeddedToolbar->move(m_shownToolbarPosition);526 525 527 526 /* Simulate toolbar auto-hiding: */ … … 579 578 580 579 /* Update embedded-toolbar geometry if known: */ 581 const QString strAnimationState = property("AnimationState").toString(); 582 if (strAnimationState == "Start") 580 if (property("AnimationState").toString() == "Final") 581 m_pEmbeddedToolbar->move(m_shownToolbarPosition); 582 else 583 583 m_pEmbeddedToolbar->move(m_hiddenToolbarPosition); 584 else if (strAnimationState == "Final")585 m_pEmbeddedToolbar->move(m_shownToolbarPosition);586 584 587 585 /* Adjust window mask: */ … … 810 808 AssertPtrReturnVoid(m_pEmbeddedToolbar); 811 809 m_pEmbeddedToolbar->move(point); 810 811 #ifdef Q_WS_X11 812 /* Update window mask: */ 813 setMask(m_pEmbeddedToolbar->geometry()); 814 #endif /* Q_WS_X11 */ 812 815 } 813 816
Note:
See TracChangeset
for help on using the changeset viewer.