Changeset 75080 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 25, 2018 3:28:42 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r74878 r75080 960 960 { 961 961 /* Configure editor: */ 962 vboxGlobal().setMinimumWidthAccordingSymbolCount(m_pEditorVideoMemorySize, 4);962 vboxGlobal().setMinimumWidthAccordingSymbolCount(m_pEditorVideoMemorySize, 7); 963 963 m_pEditorVideoMemorySize->setMinimum(m_iMinVRAM); 964 964 m_pEditorVideoMemorySize->setMaximum(m_iMaxVRAMVisible); … … 987 987 /* Configure editor: */ 988 988 const uint cMaxGuestScreens = sys.GetMaxGuestMonitors(); 989 vboxGlobal().setMinimumWidthAccordingSymbolCount(m_pEditorVideoScreenCount, 3);990 989 m_pEditorVideoScreenCount->setMinimum(1); 991 990 m_pEditorVideoScreenCount->setMaximum(cMaxGuestScreens); 991 } 992 993 /* Scale-factor editor created in the .ui file. */ 994 AssertPtrReturnVoid(m_pScaleFactorEditor); 995 { 996 /* Configure editor: */ 997 m_pScaleFactorEditor->setSpinBoxWidthHint(m_pEditorVideoMemorySize->minimumWidth()); 992 998 } 993 999 } -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.cpp
r75078 r75080 152 152 } 153 153 154 void UIScaleFactorEditor::setSpinBoxWidthHint(int iHint) 155 { 156 m_pScaleSpinBox->setMinimumWidth(iHint); 157 } 158 154 159 void UIScaleFactorEditor::retranslateUi() 155 160 { -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.h
r74837 r75080 53 53 void setDefaultScaleFactor(double dDefaultScaleFactor); 54 54 55 /** Defines minimum width @a iHint for internal spin-box. */ 56 void setSpinBoxWidthHint(int iHint); 57 55 58 protected: 56 59
Note:
See TracChangeset
for help on using the changeset viewer.