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
+2 -2
View File
@@ -30,10 +30,10 @@ protected:
float dpiMultiplier = 1.f; float dpiMultiplier = 1.f;
virtual void refreshTheme();
private: private:
void init(); void init();
virtual void refreshTheme();
}; };
} // namespace widgets } // namespace widgets
+7
View File
@@ -114,6 +114,13 @@ ChannelView::~ChannelView()
this->messageReplacedConnection.disconnect(); this->messageReplacedConnection.disconnect();
} }
void ChannelView::refreshTheme()
{
BaseWidget::refreshTheme();
this->layoutMessages();
}
void ChannelView::queueUpdate() void ChannelView::queueUpdate()
{ {
if (this->updateTimer.isActive()) { if (this->updateTimer.isActive()) {
+2
View File
@@ -52,6 +52,8 @@ public:
pajlada::Signals::NoArgSignal highlightedMessageReceived; pajlada::Signals::NoArgSignal highlightedMessageReceived;
protected: protected:
virtual void refreshTheme() override;
virtual void resizeEvent(QResizeEvent *) override; virtual void resizeEvent(QResizeEvent *) override;
virtual void paintEvent(QPaintEvent *) override; virtual void paintEvent(QPaintEvent *) override;