Welcome: Fix font sizes

Fixes: QTCREATORBUG-30305
Change-Id: Ib00bd75c091c6caadd110aaf8e2c12abcbe16cea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2024-02-12 11:01:03 +01:00
parent 4aaf7f2689
commit 1726d8a0c8
4 changed files with 0 additions and 7 deletions

View File

@@ -175,7 +175,6 @@ void WelcomePageButton::setSize(Size size)
const int hMargin = size == SizeSmall ? 12 : 26;
const int vMargin = size == SizeSmall ? 2 : 4;
d->m_layout->setContentsMargins(hMargin, vMargin, hMargin, vMargin);
d->m_label->setFont(size == SizeSmall ? font() : StyleHelper::uiFont(StyleHelper::UiElementH2));
}
void WelcomePageButton::setWithAccentColor(bool withAccent)

View File

@@ -87,7 +87,6 @@ SearchBox::SearchBox(QWidget *parent)
m_lineEdit = new FancyLineEdit;
m_lineEdit->setFiltering(true);
m_lineEdit->setFrame(false);
m_lineEdit->setFont(StyleHelper::uiFont(StyleHelper::UiElementH2));
m_lineEdit->setMinimumHeight(33);
m_lineEdit->setAttribute(Qt::WA_MacShowFocusRect, false);
@@ -806,7 +805,6 @@ ListModel *SectionedGridView::addSection(const Section &section, const QList<Lis
}.emerge();
m_sectionLabels.append(sectionLabel);
sectionLabel->setContentsMargins(0, ItemGap, 0, 0);
sectionLabel->setFont(StyleHelper::uiFont(StyleHelper::UiElementH2));
auto scrollArea = qobject_cast<QScrollArea *>(widget(0));
auto vbox = qobject_cast<QVBoxLayout *>(scrollArea->widget()->layout());
@@ -877,7 +875,6 @@ void SectionedGridView::zoomInSection(const Section &section)
noMargin
}.emerge();
sectionLabel->setContentsMargins(0, ItemGap, 0, 0);
sectionLabel->setFont(StyleHelper::uiFont(StyleHelper::UiElementH2));
auto gridView = new GridView(zoomedInWidget);
gridView->setItemDelegate(m_itemDelegate);

View File

@@ -583,11 +583,9 @@ public:
manageSessionsButton->setOnClicked([] { SessionManager::showSessionManager(); });
auto sessionsLabel = new QLabel(this);
sessionsLabel->setFont(StyleHelper::uiFont(StyleHelper::UiElementH2));
sessionsLabel->setText(Tr::tr("Sessions"));
auto recentProjectsLabel = new QLabel(this);
recentProjectsLabel->setFont(StyleHelper::uiFont(StyleHelper::UiElementH2));
recentProjectsLabel->setText(Tr::tr("Projects"));
auto sessionsList = new TreeView(this, "Sessions");

View File

@@ -245,7 +245,6 @@ public:
vbox->addItem(newVBox);
auto newLabel = new QLabel(Tr::tr("New to Qt?"), mainWidget);
newLabel->setFont(StyleHelper::uiFont(StyleHelper::UiElementH2));
newLabel->setAlignment(Qt::AlignHCenter);
newVBox->addWidget(newLabel);