Changeset 96815 in vbox
- Timestamp:
- Sep 21, 2022 3:15:42 PM (2 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp
r96407 r96815 66 66 , m_pMainLayout(0) 67 67 , m_pLabel(0) 68 , m_fFixedSizeSet(false) 68 69 { 69 70 /* Prepare: */ … … 74 75 { 75 76 /* Set fixed-size for dialog: */ 76 if (pEvent->type() == QEvent::Polish) 77 if (!m_fFixedSizeSet && pEvent->type() == QEvent::Show) 78 { 79 m_fFixedSizeSet = true; 77 80 setFixedSize(m_size); 81 } 78 82 79 83 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.h
r96407 r96815 96 96 /** Holds About-VirtualBox text-label instance. */ 97 97 QLabel *m_pLabel; 98 /** Holds size set flag to make sure dialog size if set only once. */ 99 bool m_fFixedSizeSet; 98 100 }; 99 101
Note:
See TracChangeset
for help on using the changeset viewer.