VirtualBox

Changeset 96815 in vbox


Ignore:
Timestamp:
Sep 21, 2022 3:15:42 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: Setting about dialog's size during show event rather than polish event.

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

Legend:

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

    r96407 r96815  
    6666    , m_pMainLayout(0)
    6767    , m_pLabel(0)
     68    , m_fFixedSizeSet(false)
    6869{
    6970    /* Prepare: */
     
    7475{
    7576    /* Set fixed-size for dialog: */
    76     if (pEvent->type() == QEvent::Polish)
     77    if (!m_fFixedSizeSet && pEvent->type() == QEvent::Show)
     78    {
     79        m_fFixedSizeSet = true;
    7780        setFixedSize(m_size);
     81    }
    7882
    7983    /* Call to base-class: */
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.h

    r96407 r96815  
    9696    /** Holds About-VirtualBox text-label instance. */
    9797    QLabel      *m_pLabel;
     98    /** Holds size set flag to make sure dialog size if set only once. */
     99    bool m_fFixedSizeSet;
    98100};
    99101
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