Changeset 93235 in vbox
- Timestamp:
- Jan 14, 2022 2:31:22 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp
r93115 r93235 152 152 153 153 /* Adjust page layout: */ 154 const int iL = m_enmMode == WizardMode_Expert 155 ? qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) 156 : 0; 157 const int iT = m_enmMode == WizardMode_Expert 158 ? qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) 159 : 0; 154 const int iL = 0; 155 const int iT = 0; 160 156 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin); 161 157 const int iB = qApp->style()->pixelMetric(QStyle::PM_LayoutBottomMargin); … … 568 564 void UINativeWizard::resizeToGoldenRatio() 569 565 { 570 /* Standard top margin for Basic mode case: */ 571 const int iT = m_enmMode == WizardMode_Basic 572 ? qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) 573 : 0; 566 /* Standard top margin: */ 567 const int iT = qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin); 574 568 m_pLayoutRight->setContentsMargins(0, iT, 0, 0); 575 569 /* Show title label for Basic mode case: */ … … 577 571 #ifndef VBOX_WS_MAC 578 572 /* Hide/show pixmap label on Windows/X11 only, on macOS it's in the background: */ 579 m_pLabelPixmap->setVisible(!m_strPixmapName.isEmpty() && m_enmMode == WizardMode_Basic);573 m_pLabelPixmap->setVisible(!m_strPixmapName.isEmpty()); 580 574 #endif /* !VBOX_WS_MAC */ 581 575 … … 636 630 #else 637 631 /* Assign watermark finally: */ 638 if ( !m_strPixmapName.isEmpty() 639 && m_enmMode == WizardMode_Basic) 632 if (!m_strPixmapName.isEmpty()) 640 633 assignWatermark(); 641 634 #endif /* !VBOX_WS_MAC */
Note:
See TracChangeset
for help on using the changeset viewer.