Changeset 72502 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 11, 2018 11:24:57 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGuestRAMSlider.cpp
r71943 r72502 158 158 setTickInterval(pageStep()); 159 159 /* Setup the scale so that ticks are at page step boundaries */ 160 setMinimum((m_uMinRAM / pageStep()) * pageStep()); 160 if (m_uMinRAM >= static_cast<uint>(pageStep())) 161 setMinimum((m_uMinRAM / pageStep()) * pageStep()); 162 else 163 setMinimum(m_uMinRAM); 164 161 165 setMaximum(m_uMaxRAM); 162 166 setSnappingEnabled(true); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.cpp
r71943 r72502 73 73 m_pRamEditor = new QSpinBox(this); 74 74 { 75 m_pRamEditor->setMinimum(m_pRamSlider->min RAM());76 m_pRamEditor->setMaximum(m_pRamSlider->max RAM());75 m_pRamEditor->setMinimum(m_pRamSlider->minimum()); 76 m_pRamEditor->setMaximum(m_pRamSlider->maximum()); 77 77 vboxGlobal().setMinimumWidthAccordingSymbolCount(m_pRamEditor, 5); 78 78 } … … 166 166 m_pRamSlider->value() <= (int)m_pRamSlider->maxRAM(); 167 167 } 168 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r72321 r72502 71 71 m_pRamEditor = new QSpinBox(m_pMemoryCnt); 72 72 { 73 m_pRamEditor->setMinimum(m_pRamSlider->min RAM());74 m_pRamEditor->setMaximum(m_pRamSlider->max RAM());73 m_pRamEditor->setMinimum(m_pRamSlider->minimum()); 74 m_pRamEditor->setMaximum(m_pRamSlider->maximum()); 75 75 vboxGlobal().setMinimumWidthAccordingSymbolCount(m_pRamEditor, 5); 76 76 }
Note:
See TracChangeset
for help on using the changeset viewer.