- Timestamp:
- Mar 17, 2021 11:41:46 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143299
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp
r88149 r88150 277 277 } 278 278 279 int UINameAndSystemEditor::firstColumnWidth() const 280 { 281 int iWidth = 0; 282 if (m_pNameLabel) 283 iWidth = qMax(iWidth, m_pNameLabel->width()); 284 if (m_pPathLabel) 285 iWidth = qMax(iWidth, m_pPathLabel->width()); 286 if (m_pImageLabel) 287 iWidth = qMax(iWidth, m_pImageLabel->width()); 288 if (m_pLabelFamily) 289 iWidth = qMax(iWidth, m_pLabelFamily->width()); 290 if (m_pLabelType) 291 iWidth = qMax(iWidth, m_pLabelType->width()); 292 return iWidth; 293 } 294 279 295 void UINameAndSystemEditor::retranslateUi() 280 296 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.h
r88149 r88150 128 128 * effectively changing the background color and error-text. */ 129 129 void markImageEditor(bool fError, const QString &strErrorMessage); 130 131 /** Returns 1st column width. */ 132 int firstColumnWidth() const; 130 133 131 134 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r88149 r88150 180 180 UIWizardNewVMPage1::UIWizardNewVMPage1(const QString &strGroup) 181 181 : m_pNameAndSystemEditor(0) 182 , m_pISOPathSelectorLabel(0)183 182 , m_pSkipUnattendedCheckBox(0) 184 183 , m_strGroup(strGroup) … … 240 239 { 241 240 /* Prepare layout: */ 242 QVBoxLayout *pLayout = new QVBoxLayout(pContainerWidget);243 if ( pLayout)241 m_pNameAndSystemLayout = new QGridLayout(pContainerWidget); 242 if (m_pNameAndSystemLayout) 244 243 { 245 pLayout->setContentsMargins(0, 0, 0, 0);244 m_pNameAndSystemLayout->setContentsMargins(0, 0, 0, 0); 246 245 247 246 /* Prepare Name and OS Type editor: */ … … 252 251 true /* fChooseType? */); 253 252 if (m_pNameAndSystemEditor) 254 pLayout->addWidget(m_pNameAndSystemEditor);253 m_pNameAndSystemLayout->addWidget(m_pNameAndSystemEditor, 0, 0, 1, 2); 255 254 256 255 /* Prepare Skip Unattended checkbox: */ 257 256 m_pSkipUnattendedCheckBox = new QCheckBox; 258 257 if (m_pSkipUnattendedCheckBox) 259 pLayout->addWidget(m_pSkipUnattendedCheckBox);258 m_pNameAndSystemLayout->addWidget(m_pSkipUnattendedCheckBox, 1, 1); 260 259 } 261 260 } … … 373 372 { 374 373 m_pSkipUnattendedCheckBox->setText(UIWizardNewVM::tr("Skip unattended installation")); 375 m_pSkipUnattendedCheckBox->setToolTip(UIWizardNewVM::tr("<p>When checked selected ISO file will be mounted to the CD drive"376 " of the virtual machine but the unattended installation will"377 " not start.</p>"));374 m_pSkipUnattendedCheckBox->setToolTip(UIWizardNewVM::tr("<p>When checked selected ISO file will be mounted to the CD " 375 "drive of the virtual machine but the unattended installation " 376 "will not start.</p>")); 378 377 } 379 378 } … … 546 545 547 546 if (m_pNameOSTypeLabel) 548 m_pNameOSTypeLabel->setText(UIWizardNewVM::tr("Please choose a descriptive name and destination folder for the new virtual machine. " 549 "The name you choose will be used throughout VirtualBox " 550 "to identify this machine.")); 551 if (m_pISOPathSelectorLabel) 552 m_pISOPathSelectorLabel->setText(UIWizardNewVM::tr("&Installation ISO:")); 553 554 if (m_pNameAndSystemEditor && m_pISOPathSelectorLabel) 555 m_pNameAndSystemEditor->setMinimumLayoutIndent(m_pISOPathSelectorLabel->width()); 547 m_pNameOSTypeLabel->setText(UIWizardNewVM::tr("Please choose a descriptive name and destination folder for the new " 548 "virtual machine. The name you choose will be used throughout VirtualBox " 549 "to identify this machine.")); 550 551 if (m_pNameAndSystemLayout && m_pNameAndSystemEditor) 552 m_pNameAndSystemLayout->setColumnMinimumWidth(0, m_pNameAndSystemEditor->firstColumnWidth()); 556 553 } 557 554 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.h
r88116 r88150 89 89 /** @name Widgets 90 90 * @{ */ 91 QGridLayout *m_pNameAndSystemLayout; 91 92 UINameAndSystemEditor *m_pNameAndSystemEditor; 92 QLabel *m_pISOPathSelectorLabel;93 93 QCheckBox *m_pSkipUnattendedCheckBox; 94 94 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.