VirtualBox

Changeset 27435 in vbox


Ignore:
Timestamp:
Mar 17, 2010 11:26:12 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58914
Message:

FE/Qt4: adjust the position when the size of the parent is changed

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

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

    r27427 r27435  
    107107    /* Right margin of tool-bar */
    108108    mMargins << widgetForAction (addWidget (new QWidget (this)));
     109
     110    aParent->installEventFilter(this);
    109111}
    110112
     
    417419}
    418420
     421bool VBoxMiniToolBar::eventFilter(QObject *pObj, QEvent *pEvent)
     422{
     423    if (pEvent->type() == QEvent::Resize)
     424    {
     425        moveToBase();
     426        return true;
     427    }
     428    return VBoxToolBar::eventFilter(pObj, pEvent);
     429}
     430
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMiniToolBar.h

    r25178 r27435  
    7272    void showEvent (QShowEvent *aEvent);
    7373    void paintEvent (QPaintEvent *aEvent);
     74    bool eventFilter(QObject *pObj, QEvent *pEvent);
    7475
    7576private slots:
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