Changeset 94062 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 2, 2022 3:41:28 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/UIVisualStateEditor.cpp
r93115 r94062 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" … … 79 79 m_pCombo->setItemText(i, gpConverter->toString(enmType)); 80 80 } 81 m_pCombo->setToolTip(tr("Selects the visual state. If machine is running it will be applied " 82 "as soon as possible, otherwise desired one will be defined.")); 81 83 } 82 84 } … … 108 110 { 109 111 /* Create combo: */ 110 m_pCombo = new Q IComboBox(this);112 m_pCombo = new QComboBox(this); 111 113 if (m_pCombo) 112 114 { 113 setFocusProxy(m_pCombo->focusProxy());114 115 /* This is necessary since contents is dynamical now: */ 115 116 m_pCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents); 116 117 if (m_pLabel) 117 m_pLabel->setBuddy(m_pCombo ->focusProxy());118 connect(m_pCombo, static_cast<void(Q IComboBox::*)(int)>(&QIComboBox::currentIndexChanged),118 m_pLabel->setBuddy(m_pCombo); 119 connect(m_pCombo, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), 119 120 this, &UIVisualStateEditor::sltHandleCurrentIndexChanged); 120 121 pComboLayout->addWidget(m_pCombo); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVisualStateEditor.h
r93990 r94062 32 32 33 33 /* Forward declarations: */ 34 class QComboBox; 34 35 class QLabel; 35 class QIComboBox;36 36 37 37 /** QWidget subclass used as a visual state editor. */ … … 92 92 93 93 /** Holds the label instance. */ 94 QLabel 94 QLabel *m_pLabel; 95 95 /** Holds the combo instance. */ 96 Q IComboBox *m_pCombo;96 QComboBox *m_pCombo; 97 97 }; 98 98 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.cpp
r93829 r94062 300 300 { 301 301 m_pEditorMenuBar->setToolTip(tr("Allows to modify VM menu-bar contents.")); 302 m_pLabelVisualState->setText(tr("Visual State:")); 303 m_pEditorVisualState->setToolTip(tr("Selects the visual state. If machine is running it will be applied as soon as possible, " 304 "otherwise desired one will be defined.")); 302 m_pLabelVisualState->setText(tr("&Visual State:")); 305 303 m_pLabelMiniToolBar->setText(tr("Mini ToolBar:")); 306 304 m_pCheckBoxShowMiniToolBar->setToolTip(tr("When checked, show the Mini ToolBar in full-screen and seamless modes.")); … … 374 372 m_pEditorVisualState = new UIVisualStateEditor(this); 375 373 if (m_pEditorVisualState) 374 { 375 if (m_pLabelVisualState) 376 m_pLabelVisualState->setBuddy(m_pEditorVisualState); 376 377 pLayoutMain->addWidget(m_pEditorVisualState, 1, 1); 378 } 377 379 378 380 /* Prepare mini-toolbar label: */
Note:
See TracChangeset
for help on using the changeset viewer.