Changeset 105567 in vbox
- Timestamp:
- Aug 1, 2024 3:34:45 PM (4 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.cpp
r104915 r105567 424 424 } 425 425 426 void UINewVMHardwareContainer::updateMinimumLayoutHint() 427 { 428 /* These editors have own labels, but we want them to be properly layouted according to each other: */ 429 int iMinimumLayoutHint = 0; 430 if (m_pBaseMemoryEditor && !m_pBaseMemoryEditor->isHidden()) 431 iMinimumLayoutHint = qMax(iMinimumLayoutHint, m_pBaseMemoryEditor->minimumLabelHorizontalHint()); 432 if (m_pVirtualCPUEditor && !m_pVirtualCPUEditor->isHidden()) 433 iMinimumLayoutHint = qMax(iMinimumLayoutHint, m_pVirtualCPUEditor->minimumLabelHorizontalHint()); 434 if (m_pBaseMemoryEditor) 435 m_pBaseMemoryEditor->setMinimumLayoutIndent(iMinimumLayoutHint); 436 if (m_pVirtualCPUEditor) 437 m_pVirtualCPUEditor->setMinimumLayoutIndent(iMinimumLayoutHint); 438 } 439 426 440 void UINewVMHardwareContainer::sltRetranslateUI() 427 441 { … … 433 447 "be able to boot if this option is activated.")); 434 448 } 435 } 449 450 updateMinimumLayoutHint(); 451 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.h
r103950 r105567 190 190 void prepare(); 191 191 192 /** Updates minimum layout hint. */ 193 void updateMinimumLayoutHint(); 194 192 195 UIBaseMemoryEditor *m_pBaseMemoryEditor; 193 196 UIVirtualCPUEditor *m_pVirtualCPUEditor;
Note:
See TracChangeset
for help on using the changeset viewer.