mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-07 18:43:26 -08:00
[Fonts] Restore DeckList Serif default and live-update all role readers
This commit is contained in:
parent
755fa38d96
commit
3daefe074c
18 changed files with 118 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "card_completer_styler.h"
|
||||
|
||||
#include "../../interface/theme_manager.h"
|
||||
#include "../cards/card_info_picture_enlarged_widget.h"
|
||||
#include "card_completer_delegate.h"
|
||||
#include "libcockatrice/card/database/card_database_querier.h"
|
||||
|
|
@ -73,6 +74,10 @@ CardCompleterStyler::CardCompleterStyler(QCompleter *completer, QObject *parent)
|
|||
|
||||
popup->viewport()->setMouseTracking(true);
|
||||
|
||||
// The delegate reads the CardText role at paint time, so a font change
|
||||
// only needs a repaint of the popup.
|
||||
connect(themeManager, &ThemeManager::fontsChanged, popup, [popup] { popup->viewport()->update(); });
|
||||
|
||||
popup->installEventFilter(this);
|
||||
popup->viewport()->installEventFilter(this);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue