VirtualBox

Changeset 74627 in vbox for trunk/src


Ignore:
Timestamp:
Oct 5, 2018 12:21:32 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9260. Dont set column width explicitly in clone wizard(s)

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp

    r74576 r74627  
    324324    m_pKeepHWUUIDsCheckBox->setToolTip(UIWizardCloneVM::tr("Don't change hardware UUIDs during cloning."));
    325325    m_pKeepHWUUIDsCheckBox->setText(UIWizardCloneVM::tr("Keep &Hardware UUIDs"));
    326 
    327     /* Adjust label widths: */
    328     QList<QWidget*> labels;
    329     labels << m_pMACComboBoxLabel;
    330     labels <<m_pNameLabel;
    331     labels << m_pPathLabel;
    332     labels << m_pAdditionalOptionsLabel;
    333 
    334     int iMaxWidth = 0;
    335     foreach (QWidget *pLabel, labels)
    336         iMaxWidth = qMax(iMaxWidth, pLabel->minimumSizeHint().width());
    337     m_pContainerLayout->setColumnMinimumWidth(0, iMaxWidth);
    338326}
    339327
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp

    r74576 r74627  
    244244    m_pKeepHWUUIDsCheckBox->setToolTip(UIWizardCloneVM::tr("Don't change hardware UUIDs during cloning."));
    245245    m_pKeepHWUUIDsCheckBox->setText(UIWizardCloneVM::tr("Keep &Hardware UUIDs"));
    246 
    247     /* Adjust label widths: */
    248     QList<QWidget*> labels;
    249     labels << m_pMACComboBoxLabel;
    250     labels << m_pAdditionalOptionsLabel;
    251 
    252     int iMaxWidth = 0;
    253     foreach (QWidget *pLabel, labels)
    254         iMaxWidth = qMax(iMaxWidth, pLabel->minimumSizeHint().width());
    255     m_pCloneOptionsLayout->setColumnMinimumWidth(0, iMaxWidth);
    256246}
    257247
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette