VirtualBox

Changeset 100988 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 28, 2023 3:02:43 PM (17 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: UIAdvancedSettingsDialog: Title label isn't necessary anymore.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp

    r100979 r100988  
    1 /* $Id$ */
     1/* $Id$ */
    22/** @file
    33 * VBox Qt GUI - UIAdvancedSettingsDialog class implementation.
     
    8080    , m_fSilent(true)
    8181    , m_pLayoutMain(0)
    82     , m_pLabelTitle(0)
    8382    , m_pStack(0)
    8483    , m_pButtonBox(0)
     
    153152#ifdef VBOX_GUI_WITH_TOOLBAR_SETTINGS
    154153    setWindowTitle(title());
    155 #else
    156     m_pLabelTitle->setText(m_pSelector->itemText(cId));
    157154#endif
    158155}
     
    188185void UIAdvancedSettingsDialog::retranslateUi()
    189186{
    190 #ifndef VBOX_GUI_WITH_TOOLBAR_SETTINGS
    191     /* Retranslate current page headline: */
    192     m_pLabelTitle->setText(m_pSelector->itemText(m_pSelector->currentId()));
    193 #endif
    194 
    195187    /* Translate warning-pane stuff: */
    196188    m_pWarningPane->setWarningLabelText(tr("Invalid settings detected"));
     
    588580        m_pSelector->widget()->setFocus();
    589581    }
    590 
    591     /* Prepare title label: */
    592     m_pLabelTitle = new QLabel(centralWidget());
    593     if (m_pLabelTitle)
    594     {
    595         m_pLabelTitle->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed));
    596         QPalette pal = QApplication::palette();
    597         pal.setColor(QPalette::Active, QPalette::Window, pal.color(QPalette::Active, QPalette::Base));
    598         m_pLabelTitle->setPalette(pal);
    599         QFont fnt;
    600         fnt.setFamily(QStringLiteral("Sans Serif"));
    601         fnt.setPointSize(fnt.pointSize() + 2);
    602         fnt.setBold(true);
    603         fnt.setWeight(QFont::ExtraBold);
    604         m_pLabelTitle->setFont(fnt);
    605         m_pLabelTitle->setAutoFillBackground(true);
    606         m_pLabelTitle->setFrameShadow(QFrame::Sunken);
    607         m_pLabelTitle->setMargin(9);
    608 
    609         /* Add title-label into main layout: */
    610         m_pLayoutMain->addWidget(m_pLabelTitle, 0, 1);
    611     }
    612582#endif /* !VBOX_GUI_WITH_TOOLBAR_SETTINGS */
    613583
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.h

    r100979 r100988  
    4141/* Forward declarations: */
    4242class QGridLayout;
    43 class QLabel;
    4443class QProgressBar;
    4544class QShowEvent;
     
    243242        /** Holds the main layout instance. */
    244243        QGridLayout       *m_pLayoutMain;
    245         /** Holds the title-label instance. */
    246         QLabel            *m_pLabelTitle;
    247244        /** Holds the page-stack instance. */
    248245        QStackedWidget    *m_pStack;
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