- Timestamp:
- Oct 5, 2018 11:57:03 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.cpp
r74611 r74626 67 67 , m_pMACComboBox(0) 68 68 , m_pOptionsLayout(0) 69 , m_pAdditionalOptionsLabel(0) 69 70 { 70 71 prepareWidgets(); … … 109 110 if (m_pMACComboBoxLabel) 110 111 m_pMACComboBoxLabel->setBuddy(m_pMACComboBox); 112 113 m_pAdditionalOptionsLabel = new QLabel; 114 if (m_pAdditionalOptionsLabel) 115 { 116 m_pAdditionalOptionsLabel->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter); 117 m_pOptionsLayout->addWidget(m_pAdditionalOptionsLabel, 2, 0, 1, 1); 118 } 111 119 112 120 m_pImportHDsAsVDI = new QCheckBox; … … 313 321 tr("Generate new MAC addresses for all network adapters " 314 322 "during cloning."), Qt::ToolTipRole); 323 324 m_pAdditionalOptionsLabel->setText(tr("Additional Options:")); 325 326 QList<QWidget*> labels; 327 labels << m_pMACComboBoxLabel; 328 labels << m_pAdditionalOptionsLabel; 329 330 int iMaxWidth = 0; 331 foreach (QWidget *pLabel, labels) 332 iMaxWidth = qMax(iMaxWidth, pLabel->minimumSizeHint().width()); 333 m_pOptionsLayout->setColumnMinimumWidth(0, iMaxWidth); 315 334 } 316 335 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.h
r74610 r74626 74 74 QComboBox *m_pMACComboBox; 75 75 QGridLayout *m_pOptionsLayout; 76 QLabel *m_pAdditionalOptionsLabel; 76 77 }; 77 78
Note:
See TracChangeset
for help on using the changeset viewer.