mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 10:03:26 -08:00
[Fonts] Restore DeckList Serif default and live-update all role readers
This commit is contained in:
parent
64150a32d4
commit
a3111995a4
18 changed files with 115 additions and 5 deletions
|
|
@ -28,6 +28,10 @@ DeckPreviewTagAdditionWidget::DeckPreviewTagAdditionWidget(QWidget *_parent, QSt
|
|||
|
||||
// Adjust widget size
|
||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||
|
||||
// The tag text reads the InterfaceDefault role at paint time, so a font
|
||||
// change only needs a repaint.
|
||||
connect(themeManager, &ThemeManager::fontsChanged, this, [this] { update(); });
|
||||
}
|
||||
|
||||
QSize DeckPreviewTagAdditionWidget::sizeHint() const
|
||||
|
|
|
|||
|
|
@ -43,6 +43,10 @@ DeckPreviewTagDisplayWidget::DeckPreviewTagDisplayWidget(QWidget *parent, const
|
|||
// Adjust widget size
|
||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||
|
||||
// The tag text reads the InterfaceDefault role at paint time, so a font
|
||||
// change only needs a repaint.
|
||||
connect(themeManager, &ThemeManager::fontsChanged, this, [this] { update(); });
|
||||
|
||||
// Connect close button to the remove signal
|
||||
// connect(closeButton, &QPushButton::clicked, this, &DeckPreviewTagDisplayWidget::tagClosed);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue