VirtualBox

Changeset 84878 in vbox


Ignore:
Timestamp:
Jun 19, 2020 8:18:48 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9515. We don't need a separate label as UIBaseMemoryEditor has one already

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.cpp

    r84874 r84878  
    3535UIWizardNewVMPage2::UIWizardNewVMPage2()
    3636    : m_pBaseMemoryEditor(0)
    37     , m_pRamLabel(0)
    3837{
    3938}
     
    5554        QGridLayout *pMemoryLayout = new QGridLayout;
    5655        {
    57             m_pRamLabel = new QLabel;
    58             m_pBaseMemoryEditor = new UIBaseMemoryEditor;
    59             pMemoryLayout->addWidget(m_pRamLabel, 0, 0, 1, 1, Qt::AlignRight|Qt::AlignTop);
     56            m_pBaseMemoryEditor = new UIBaseMemoryEditor(this, true);
    6057            pMemoryLayout->addWidget(m_pBaseMemoryEditor, 0, 1, 1, 4);
    6158        }
     
    7976    if (m_pLabel)
    8077        m_pLabel->setText(UIWizardNewVM::tr("<p>You can modify the virtual machine's hardware.</p>"));
    81 
    82     if (m_pRamLabel)
    83         m_pRamLabel->setText(UIWizardNewVM::tr("Base Memory:"));
    8478}
    8579
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.h

    r84874 r84878  
    4444    /* Widgets: */
    4545    UIBaseMemoryEditor *m_pBaseMemoryEditor;
    46     QLabel *m_pRamLabel;
    4746};
    4847
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