Changeset 52872 in vbox
- Timestamp:
- Sep 26, 2014 4:47:20 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 96296
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r52870 r52872 169 169 170 170 /* Recalculate auto-hide animation: */ 171 updateAutoHideAnimationBounds(); 171 m_shownToolbarPosition = m_pEmbeddedToolbar->pos(); 172 switch (m_alignment) 173 { 174 case Qt::AlignTop: 175 m_hiddenToolbarPosition = m_shownToolbarPosition - QPoint(0, m_pEmbeddedToolbar->height() - 3); 176 break; 177 case Qt::AlignBottom: 178 m_hiddenToolbarPosition = m_shownToolbarPosition + QPoint(0, m_pEmbeddedToolbar->height() - 3); 179 break; 180 } 181 m_pAnimation->update(); 172 182 173 183 /* Update toolbar geometry if necessary: */ … … 246 256 { 247 257 /* Allow any MDI area size: */ 248 m_pMdiArea->set SizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);258 m_pMdiArea->setMinimumSize(QSize(1, 1)); 249 259 /* Configure own background: */ 250 260 QPalette pal = m_pMdiArea->palette(); … … 374 384 } 375 385 376 void UIRuntimeMiniToolBar::updateAutoHideAnimationBounds()377 {378 /* Update animation: */379 m_shownToolbarPosition = m_pEmbeddedToolbar->pos();380 switch (m_alignment)381 {382 case Qt::AlignTop:383 m_hiddenToolbarPosition = m_shownToolbarPosition - QPoint(0, m_pEmbeddedToolbar->height() - 3);384 break;385 case Qt::AlignBottom:386 m_hiddenToolbarPosition = m_shownToolbarPosition + QPoint(0, m_pEmbeddedToolbar->height() - 3);387 break;388 }389 m_pAnimation->update();390 }391 392 386 void UIRuntimeMiniToolBar::simulateToolbarAutoHiding() 393 387 { … … 411 405 412 406 #ifdef Q_WS_X11 413 /* The setMask functionality is excessive under Win/Mac hosts 414 * because there is a Qt composition works properly, 415 * Mac host has native translucency support, 416 * Win host allows to enable it through Qt::WA_TranslucentBackground: */ 407 /* Update window mask: */ 417 408 setMask(m_pEmbeddedToolbar->geometry()); 418 409 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h
r52870 r52872 124 124 125 125 /* Helper: Hover stuff: */ 126 void updateAutoHideAnimationBounds();127 126 void simulateToolbarAutoHiding(); 128 127
Note:
See TracChangeset
for help on using the changeset viewer.