VirtualBox

Changeset 45205 in vbox for trunk/src


Ignore:
Timestamp:
Mar 27, 2013 11:27:47 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: QIDialog: Move polishing stuff into corresponding event.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.cpp

    r45192 r45205  
    101101}
    102102
    103 void QIDialog::showEvent(QShowEvent * /* pEvent */)
     103void QIDialog::showEvent(QShowEvent *pEvent)
    104104{
    105     /* Polishing: */
     105    /* Make sure we should polish dialog: */
    106106    if (m_fPolished)
    107107        return;
     108
     109    /* Call to polish-event: */
     110    polishEvent(pEvent);
     111
     112    /* Mark dialog as polished: */
    108113    m_fPolished = true;
     114}
    109115
     116void QIDialog::polishEvent(QShowEvent*)
     117{
    110118    /* Make sure layout is polished: */
    111119    adjustSize();
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.h

    r45162 r45205  
    5151    void showEvent(QShowEvent *pEvent);
    5252
     53    /* Handler: Polish-event stuff: */
     54    virtual void polishEvent(QShowEvent *pEvent);
     55
    5356private:
    5457
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