Changeset 94056 in vbox for trunk/src/VBox
- Timestamp:
- Mar 2, 2022 2:10:40 PM (3 years ago)
- 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 17 17 18 18 /* Qt includes: */ 19 #include <QComboBox> 19 20 #include <QGridLayout> 20 21 #include <QHBoxLayout> … … 22 23 23 24 /* GUI includes: */ 24 #include "QIComboBox.h"25 25 #include "UICommon.h" 26 26 #include "UIConverter.h" … … 76 76 m_pCombo->setItemText(i, gpConverter->toString(enmType)); 77 77 } 78 m_pCombo->setToolTip(tr("Selects the graphics adapter type the virtual machine will use.")); 78 79 } 79 80 } … … 105 106 { 106 107 /* Create combo: */ 107 m_pCombo = new Q IComboBox(this);108 m_pCombo = new QComboBox(this); 108 109 if (m_pCombo) 109 110 { 110 setFocusProxy(m_pCombo->focusProxy());111 111 /* This is necessary since contents is dynamical now: */ 112 112 m_pCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents); 113 113 if (m_pLabel) 114 m_pLabel->setBuddy(m_pCombo ->focusProxy());115 connect(m_pCombo, static_cast<void(Q IComboBox::*)(int)>(&QIComboBox::currentIndexChanged),114 m_pLabel->setBuddy(m_pCombo); 115 connect(m_pCombo, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), 116 116 this, &UIGraphicsControllerEditor::sltHandleCurrentIndexChanged); 117 117 pComboLayout->addWidget(m_pCombo); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.h
r93990 r94056 33 33 34 34 /* Forward declarations: */ 35 class QComboBox; 35 36 class QLabel; 36 class QIComboBox;37 37 38 38 /** QWidget subclass used as a graphics controller editor. */ … … 87 87 88 88 /** Holds the label instance. */ 89 QLabel 89 QLabel *m_pLabel; 90 90 /** Holds the combo instance. */ 91 Q IComboBox *m_pCombo;91 QComboBox *m_pCombo; 92 92 }; 93 93 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r93996 r94056 786 786 m_pEditorScaleFactor->setToolTip(tr("Controls the guest screen scale factor.")); 787 787 m_pLabelGraphicsController->setText(tr("&Graphics Controller:")); 788 m_pEditorGraphicsController->setToolTip(tr("Selects the graphics adapter type the virtual machine will use."));789 788 m_pLabelAcceleration->setText(tr("Acceleration:")); 790 789 m_pCheckbox3D->setToolTip(tr("When checked, the virtual machine will be given access " … … 1213 1212 { 1214 1213 if (m_pLabelGraphicsController) 1215 m_pLabelGraphicsController->setBuddy(m_pEditorGraphicsController ->focusProxy());1214 m_pLabelGraphicsController->setBuddy(m_pEditorGraphicsController); 1216 1215 pLayoutScreen->addWidget(m_pEditorGraphicsController, 6, 1, 1, 2); 1217 1216 }
Note:
See TracChangeset
for help on using the changeset viewer.