Changeset 106015 in vbox for trunk/src/VBox
- Timestamp:
- Sep 12, 2024 12:20:05 AM (3 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp
r106012 r106015 779 779 , m_pSerializeProcess(0) 780 780 , m_fPolished(false) 781 , m_fFirstSerializationDone(false) 781 782 , m_fSerializationIsInProgress(false) 782 783 , m_fSerializationClean(false) … … 873 874 /* Mark serialization finished: */ 874 875 m_fSerializationIsInProgress = false; 876 877 /* Finally make sure layouts freshly activated after 878 * all the pages loaded (as overall size-hint changed): */ 879 foreach (QLayout *pLayout, findChildren<QLayout*>()) 880 pLayout->activate(); 881 /* Update scroll-area geometry finally: */ 882 m_pScrollArea->updateGeometry(); 883 884 /* For the 1st serialization we have some additional handling: */ 885 if (!m_fFirstSerializationDone) 886 { 887 /* Which should be called just once: */ 888 m_fFirstSerializationDone = true; 889 890 /* Make sure layout request processed before we resize widget to new size: */ 891 QCoreApplication::sendPostedEvents(0, QEvent::LayoutRequest); 892 /* Resize to minimum size: */ 893 resize(minimumSizeHint()); 894 /* Explicit centering according to our parent: */ 895 gpDesktop->centerWidget(this, parentWidget(), false); 896 } 875 897 } 876 898 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.h
r105780 r106015 238 238 /** Holds whether dialog is polished. */ 239 239 bool m_fPolished; 240 /** Holds whether the first serialization is done. */ 241 bool m_fFirstSerializationDone; 240 242 /** Holds whether the serialization is in progress. */ 241 243 bool m_fSerializationIsInProgress;
Note:
See TracChangeset
for help on using the changeset viewer.