VirtualBox

Changeset 94056 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 2, 2022 2:10:40 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: VM settings: Get rid of QIComboBox objects for Display page.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.cpp

    r93115 r94056  
    1717
    1818/* Qt includes: */
     19#include <QComboBox>
    1920#include <QGridLayout>
    2021#include <QHBoxLayout>
     
    2223
    2324/* GUI includes: */
    24 #include "QIComboBox.h"
    2525#include "UICommon.h"
    2626#include "UIConverter.h"
     
    7676            m_pCombo->setItemText(i, gpConverter->toString(enmType));
    7777        }
     78        m_pCombo->setToolTip(tr("Selects the graphics adapter type the virtual machine will use."));
    7879    }
    7980}
     
    105106        {
    106107            /* Create combo: */
    107             m_pCombo = new QIComboBox(this);
     108            m_pCombo = new QComboBox(this);
    108109            if (m_pCombo)
    109110            {
    110                 setFocusProxy(m_pCombo->focusProxy());
    111111                /* This is necessary since contents is dynamical now: */
    112112                m_pCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents);
    113113                if (m_pLabel)
    114                     m_pLabel->setBuddy(m_pCombo->focusProxy());
    115                 connect(m_pCombo, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged),
     114                    m_pLabel->setBuddy(m_pCombo);
     115                connect(m_pCombo, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
    116116                        this, &UIGraphicsControllerEditor::sltHandleCurrentIndexChanged);
    117117                pComboLayout->addWidget(m_pCombo);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.h

    r93990 r94056  
    3333
    3434/* Forward declarations: */
     35class QComboBox;
    3536class QLabel;
    36 class QIComboBox;
    3737
    3838/** QWidget subclass used as a graphics controller editor. */
     
    8787
    8888    /** Holds the label instance. */
    89     QLabel     *m_pLabel;
     89    QLabel    *m_pLabel;
    9090    /** Holds the combo instance. */
    91     QIComboBox *m_pCombo;
     91    QComboBox *m_pCombo;
    9292};
    9393
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r93996 r94056  
    786786    m_pEditorScaleFactor->setToolTip(tr("Controls the guest screen scale factor."));
    787787    m_pLabelGraphicsController->setText(tr("&Graphics Controller:"));
    788     m_pEditorGraphicsController->setToolTip(tr("Selects the graphics adapter type the virtual machine will use."));
    789788    m_pLabelAcceleration->setText(tr("Acceleration:"));
    790789    m_pCheckbox3D->setToolTip(tr("When checked, the virtual machine will be given access "
     
    12131212            {
    12141213                if (m_pLabelGraphicsController)
    1215                     m_pLabelGraphicsController->setBuddy(m_pEditorGraphicsController->focusProxy());
     1214                    m_pLabelGraphicsController->setBuddy(m_pEditorGraphicsController);
    12161215                pLayoutScreen->addWidget(m_pEditorGraphicsController, 6, 1, 1, 2);
    12171216            }
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