VirtualBox

Changeset 74626 in vbox for trunk


Ignore:
Timestamp:
Oct 5, 2018 11:57:03 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9260. Adding a label to import wizard(s) for additional option checkboxes

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  
    6767    , m_pMACComboBox(0)
    6868    , m_pOptionsLayout(0)
     69    , m_pAdditionalOptionsLabel(0)
    6970{
    7071    prepareWidgets();
     
    109110    if (m_pMACComboBoxLabel)
    110111        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    }
    111119
    112120    m_pImportHDsAsVDI = new QCheckBox;
     
    313321                                tr("Generate new MAC addresses for all network adapters "
    314322                                                    "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);
    315334}
    316335
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.h

    r74610 r74626  
    7474    QComboBox          *m_pMACComboBox;
    7575    QGridLayout        *m_pOptionsLayout;
     76    QLabel             *m_pAdditionalOptionsLabel;
    7677};
    7778
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