Fixes #258 theme change doesn't apply

This commit is contained in:
fourtf 2018-01-24 20:35:26 +01:00
parent f4863cbccb
commit 74fd6c9663
3 changed files with 11 additions and 2 deletions

View file

@ -30,10 +30,10 @@ protected:
float dpiMultiplier = 1.f;
virtual void refreshTheme();
private:
void init();
virtual void refreshTheme();
};
} // namespace widgets

View file

@ -114,6 +114,13 @@ ChannelView::~ChannelView()
this->messageReplacedConnection.disconnect();
}
void ChannelView::refreshTheme()
{
BaseWidget::refreshTheme();
this->layoutMessages();
}
void ChannelView::queueUpdate()
{
if (this->updateTimer.isActive()) {

View file

@ -52,6 +52,8 @@ public:
pajlada::Signals::NoArgSignal highlightedMessageReceived;
protected:
virtual void refreshTheme() override;
virtual void resizeEvent(QResizeEvent *) override;
virtual void paintEvent(QPaintEvent *) override;