Changeset 84018 in vbox
- Timestamp:
- Apr 27, 2020 4:28:23 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137587
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/cloud/machinesettings
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/machinesettings/UICloudMachineSettingsDialogPage.cpp
r84010 r84018 27 27 28 28 29 UICloudMachineSettingsDialogPage::UICloudMachineSettingsDialogPage(QWidget *pParent )29 UICloudMachineSettingsDialogPage::UICloudMachineSettingsDialogPage(QWidget *pParent, bool fFullScale /* = true */) 30 30 : QWidget(pParent) 31 , m_fFullScale(fFullScale) 31 32 { 32 33 prepare(); … … 69 70 if (iDefaultSectionHeight > 0) 70 71 { 71 const int iProposedHeight = iDefaultSectionHeight * 12;72 const int iProposedHeight = iDefaultSectionHeight * (m_fFullScale ? 12 : 6); 72 73 const int iProposedWidth = iProposedHeight * 1.66; 73 74 m_pFormEditor->setMinimumSize(iProposedWidth, iProposedHeight); -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/machinesettings/UICloudMachineSettingsDialogPage.h
r84010 r84018 45 45 public: 46 46 47 /** Constructs cloud machine settings dialog page passing @a pParent to the base-class. */ 48 UICloudMachineSettingsDialogPage(QWidget *pParent); 47 /** Constructs cloud machine settings dialog page passing @a pParent to the base-class. 48 * @param fFullScale Brings whether this page is full-scale and should reflect at least 12 fields. */ 49 UICloudMachineSettingsDialogPage(QWidget *pParent, bool fFullScale = true); 49 50 50 51 /** Returns page form. */ … … 71 72 void updateEditor(); 72 73 74 /** Holds whether this page is full-scale and should reflect at least 12 fields. */ 75 bool m_fFullScale; 76 73 77 /** Holds the form editor widget instance. */ 74 78 UIFormEditorWidgetPointer m_pFormEditor;
Note:
See TracChangeset
for help on using the changeset viewer.