VirtualBox

Changeset 93235 in vbox


Ignore:
Timestamp:
Jan 14, 2022 2:31:22 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: Enable watermark for expert wizard mode as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp

    r93115 r93235  
    152152
    153153    /* 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;
    160156    const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin);
    161157    const int iB = qApp->style()->pixelMetric(QStyle::PM_LayoutBottomMargin);
     
    568564void UINativeWizard::resizeToGoldenRatio()
    569565{
    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);
    574568    m_pLayoutRight->setContentsMargins(0, iT, 0, 0);
    575569    /* Show title label for Basic mode case: */
     
    577571#ifndef VBOX_WS_MAC
    578572    /* 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());
    580574#endif /* !VBOX_WS_MAC */
    581575
     
    636630#else
    637631    /* Assign watermark finally: */
    638     if (   !m_strPixmapName.isEmpty()
    639         && m_enmMode == WizardMode_Basic)
     632    if (!m_strPixmapName.isEmpty())
    640633        assignWatermark();
    641634#endif /* !VBOX_WS_MAC */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette