@@ -30,7 +30,12 @@ ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget, EmoteManager &emoteMan
|
||||
this->hbox.addLayout(&this->editContainer);
|
||||
this->hbox.addLayout(&this->vbox);
|
||||
|
||||
this->textInput.setFont(FontManager::getInstance().getFont(FontManager::Type::Medium));
|
||||
auto &fontManager = FontManager::getInstance();
|
||||
|
||||
this->textInput.setFont(fontManager.getFont(FontManager::Type::Medium));
|
||||
fontManager.fontChanged.connect([this, &fontManager]() {
|
||||
this->textInput.setFont(fontManager.getFont(FontManager::Type::Medium));
|
||||
});
|
||||
|
||||
this->editContainer.addWidget(&this->textInput);
|
||||
this->editContainer.setMargin(4);
|
||||
|
||||
Reference in New Issue
Block a user