mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
[Fonts] Drop unused lambda captures in font-refresh handlers
This commit is contained in:
parent
d26a7b213f
commit
60f7710d9f
2 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ DlgSharedDecksPreview::DlgSharedDecksPreview(QWidget *parent,
|
|||
QFont titleFont = QtUtils::boldFont(themeManager->appFont(AppFont::InterfaceDefault));
|
||||
titleFont.setPointSize(titleFont.pointSize() + 2);
|
||||
titleLabel->setFont(titleFont);
|
||||
connect(themeManager, &ThemeManager::fontsChanged, this, [this, titleLabel]() {
|
||||
connect(themeManager, &ThemeManager::fontsChanged, this, [titleLabel]() {
|
||||
QFont refreshedFont = themeManager->appFont(AppFont::InterfaceDefault);
|
||||
refreshedFont.setBold(true);
|
||||
refreshedFont.setPointSize(refreshedFont.pointSize() + 2);
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ QGroupBox *HomeWidget::createButtons()
|
|||
QFont boxFont = themeManager->appFont(AppFont::InterfaceDefault);
|
||||
boxFont.setPointSize(20);
|
||||
box->setFont(boxFont);
|
||||
connect(themeManager, &ThemeManager::fontsChanged, this, [this, box]() {
|
||||
connect(themeManager, &ThemeManager::fontsChanged, this, [box]() {
|
||||
QFont refreshedFont = themeManager->appFont(AppFont::InterfaceDefault);
|
||||
refreshedFont.setPointSize(20);
|
||||
box->setFont(refreshedFont);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue