Changeset 51079 in vbox
- Timestamp:
- Apr 15, 2014 3:04:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r50816 r51079 315 315 if (m_pHoverLeaveTimer->isActive()) 316 316 m_pHoverLeaveTimer->stop(); 317 318 /* Destroy animation before mdi-toolbar: */ 319 delete m_pAnimation; 320 m_pAnimation = 0; 321 322 /* Destroy mdi-toolbar after animation: */ 323 delete m_pEmbeddedToolbar; 324 m_pEmbeddedToolbar = 0; 317 325 } 318 326 … … 384 392 void UIRuntimeMiniToolBar::setToolbarPosition(QPoint point) 385 393 { 386 /* Make sure toolbar exists: */387 if (!m_pEmbeddedToolbar)388 return;389 390 394 /* Update position: */ 395 AssertPtrReturnVoid(m_pEmbeddedToolbar); 391 396 m_pEmbeddedToolbar->move(point); 392 397 … … 402 407 QPoint UIRuntimeMiniToolBar::toolbarPosition() const 403 408 { 404 /* Make sure toolbar exists: */405 if (!m_pEmbeddedToolbar)406 return QPoint();407 408 409 /* Return position: */ 410 AssertPtrReturn(m_pEmbeddedToolbar, QPoint()); 409 411 return m_pEmbeddedToolbar->pos(); 410 412 }
Note:
See TracChangeset
for help on using the changeset viewer.