Changeset 106094 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 19, 2024 11:23:01 AM (5 months ago)
- svn:sync-xref-src-repo-rev:
- 164869
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainNameEditor.cpp
r106084 r106094 164 164 return; 165 165 setLayout(m_pMainLayout); 166 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 166 167 int iRow = 0; 167 168 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.cpp
r106084 r106094 62 62 { 63 63 QVBoxLayout *pUserNameContainerLayout = new QVBoxLayout(this); 64 pUserNameContainerLayout->setContentsMargins(0, 0, 0, 0); 64 65 m_pUserNamePasswordEditor = new UIUserNamePasswordEditor; 65 66 AssertReturnVoid(m_pUserNamePasswordEditor); 66 67 m_pUserNamePasswordEditor->setLabelsVisible(true); 67 pUserNameContainerLayout->addWidget(m_pUserNamePasswordEditor );68 68 pUserNameContainerLayout->addWidget(m_pUserNamePasswordEditor, Qt::AlignTop); 69 pUserNameContainerLayout->setStretch(0, 0); 69 70 connect(m_pUserNamePasswordEditor, &UIUserNamePasswordEditor::sigPasswordChanged, 70 71 this, &UIUserNamePasswordGroupBox::sigPasswordChanged); … … 74 75 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 75 76 this, &UIUserNamePasswordGroupBox::sltRetranslateUI); 77 pUserNameContainerLayout->addStretch(1); 76 78 } 77 79 … … 231 233 void UIAdditionalUnattendedOptions::prepare() 232 234 { 233 m_pMainLayout = new QHBoxLayout(this);235 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 234 236 m_pHostnameDomainNameEditor = new UIHostnameDomainNameEditor; 235 237 if (m_pHostnameDomainNameEditor) 236 m_pMainLayout->addWidget(m_pHostnameDomainNameEditor);237 238 pMainLayout->addWidget(m_pHostnameDomainNameEditor, Qt::AlignTop); 239 pMainLayout->setStretch(0, 0); 238 240 if (m_pHostnameDomainNameEditor) 239 241 { … … 249 251 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 250 252 this, &UIAdditionalUnattendedOptions::sltRetranslateUI); 253 pMainLayout->addStretch(1); 251 254 } 252 255 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.h
r106084 r106094 153 153 154 154 UIHostnameDomainNameEditor *m_pHostnameDomainNameEditor; 155 QHBoxLayout *m_pMainLayout;156 155 }; 157 156
Note:
See TracChangeset
for help on using the changeset viewer.