Changeset 57026 in vbox
- Timestamp:
- Jul 20, 2015 3:58:03 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101744
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r57025 r57026 425 425 m_alignment = alignment; 426 426 427 /* Re-initialize: */427 /* Adjust geometry: */ 428 428 adjustGeometry(); 429 429 … … 444 444 m_fAutoHide = fAutoHide; 445 445 446 /* Re-initialize: */446 /* Adjust geometry: */ 447 447 adjustGeometry(); 448 448 … … 593 593 void UIMiniToolBar::sltHandleToolbarResize() 594 594 { 595 /* Re-initialize: */595 /* Adjust geometry: */ 596 596 adjustGeometry(); 597 597 } … … 626 626 { 627 627 #if defined (Q_WS_X11) 628 /* Install own event filter: */ 628 /* Install own event-filter 629 * to handle focus stealing: */ 629 630 installEventFilter(this); 630 631 #endif /* Q_WS_X11 */ 631 632 632 633 #if defined(Q_WS_WIN) 633 /* Make sure we have no background 634 * until the first one paint-event: */ 634 /* No background until first paint-event: */ 635 635 setAttribute(Qt::WA_NoSystemBackground); 636 /* Using Qt API to enable translucent background: 637 * - Under Mac host Qt doesn't allows to disable window-shadows 638 * until version 4.8, but minimum supported version is 4.7.1. 639 * - Under x11 host Qt has broken XComposite support (black background): */ 636 /* Enable translucency through Qt API: */ 640 637 setAttribute(Qt::WA_TranslucentBackground); 641 638 #elif defined(Q_WS_X11) 642 /* Use Qt API to enable translucency if allowed: */639 /* Enable translucency through Qt API if supported: */ 643 640 if (QX11Info::isCompositingManagerRunning()) 644 641 setAttribute(Qt::WA_TranslucentBackground); … … 691 688 m_pEmbeddedToolbar->setFocusPolicy(Qt::NoFocus); 692 689 #ifdef Q_WS_WIN 693 /* Install embedded-toolbar event 690 /* Install embedded-toolbar event-filter: */ 694 691 m_pEmbeddedToolbar->installEventFilter(this); 695 692 #endif /* Q_WS_WIN */ … … 717 714 true); 718 715 719 /* Adjust geometry fi nally: */716 /* Adjust geometry first time: */ 720 717 adjustGeometry(); 721 718 } … … 763 760 void UIMiniToolBar::resizeEvent(QResizeEvent*) 764 761 { 765 /* Adjust mini-toolbar on resize: */762 /* Adjust geometry: */ 766 763 adjustGeometry(); 767 764 }
Note:
See TracChangeset
for help on using the changeset viewer.