VirtualBox

Changeset 57026 in vbox


Ignore:
Timestamp:
Jul 20, 2015 3:58:03 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101744
Message:

FE/Qt: 5978: Mini-toolbar: Just a few comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp

    r57025 r57026  
    425425    m_alignment = alignment;
    426426
    427     /* Re-initialize: */
     427    /* Adjust geometry: */
    428428    adjustGeometry();
    429429
     
    444444    m_fAutoHide = fAutoHide;
    445445
    446     /* Re-initialize: */
     446    /* Adjust geometry: */
    447447    adjustGeometry();
    448448
     
    593593void UIMiniToolBar::sltHandleToolbarResize()
    594594{
    595     /* Re-initialize: */
     595    /* Adjust geometry: */
    596596    adjustGeometry();
    597597}
     
    626626{
    627627#if defined (Q_WS_X11)
    628     /* Install own event filter: */
     628    /* Install own event-filter
     629     * to handle focus stealing: */
    629630    installEventFilter(this);
    630631#endif /* Q_WS_X11 */
    631632
    632633#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: */
    635635    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: */
    640637    setAttribute(Qt::WA_TranslucentBackground);
    641638#elif defined(Q_WS_X11)
    642     /* Use Qt API to enable translucency if allowed: */
     639    /* Enable translucency through Qt API if supported: */
    643640    if (QX11Info::isCompositingManagerRunning())
    644641        setAttribute(Qt::WA_TranslucentBackground);
     
    691688        m_pEmbeddedToolbar->setFocusPolicy(Qt::NoFocus);
    692689#ifdef Q_WS_WIN
    693         /* Install embedded-toolbar event filter: */
     690        /* Install embedded-toolbar event-filter: */
    694691        m_pEmbeddedToolbar->installEventFilter(this);
    695692#endif /* Q_WS_WIN */
     
    717714                                                         true);
    718715
    719     /* Adjust geometry finally: */
     716    /* Adjust geometry first time: */
    720717    adjustGeometry();
    721718}
     
    763760void UIMiniToolBar::resizeEvent(QResizeEvent*)
    764761{
    765     /* Adjust mini-toolbar on resize: */
     762    /* Adjust geometry: */
    766763    adjustGeometry();
    767764}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette