Changeset 100988 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 28, 2023 3:02:43 PM (17 months ago)
- 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$ */ 2 2 /** @file 3 3 * VBox Qt GUI - UIAdvancedSettingsDialog class implementation. … … 80 80 , m_fSilent(true) 81 81 , m_pLayoutMain(0) 82 , m_pLabelTitle(0)83 82 , m_pStack(0) 84 83 , m_pButtonBox(0) … … 153 152 #ifdef VBOX_GUI_WITH_TOOLBAR_SETTINGS 154 153 setWindowTitle(title()); 155 #else156 m_pLabelTitle->setText(m_pSelector->itemText(cId));157 154 #endif 158 155 } … … 188 185 void UIAdvancedSettingsDialog::retranslateUi() 189 186 { 190 #ifndef VBOX_GUI_WITH_TOOLBAR_SETTINGS191 /* Retranslate current page headline: */192 m_pLabelTitle->setText(m_pSelector->itemText(m_pSelector->currentId()));193 #endif194 195 187 /* Translate warning-pane stuff: */ 196 188 m_pWarningPane->setWarningLabelText(tr("Invalid settings detected")); … … 588 580 m_pSelector->widget()->setFocus(); 589 581 } 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 }612 582 #endif /* !VBOX_GUI_WITH_TOOLBAR_SETTINGS */ 613 583 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.h
r100979 r100988 41 41 /* Forward declarations: */ 42 42 class QGridLayout; 43 class QLabel;44 43 class QProgressBar; 45 44 class QShowEvent; … … 243 242 /** Holds the main layout instance. */ 244 243 QGridLayout *m_pLayoutMain; 245 /** Holds the title-label instance. */246 QLabel *m_pLabelTitle;247 244 /** Holds the page-stack instance. */ 248 245 QStackedWidget *m_pStack;
Note:
See TracChangeset
for help on using the changeset viewer.