X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=eac76a201264be7adf0d446c48393ede359aa281;hp=27874928b6ecf87e787a990d8e529e5b14f5708f;hb=68cd9a2621c71005cda0ed4fb796bbf5fcbe007e;hpb=b243fc8b07e6cffff80af8844bbc4d5df7be7b0b diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 27874928..eac76a20 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -28,6 +28,8 @@ #include "chatview.h" #include "client.h" #include "messagefilter.h" +#include "qtui.h" +#include "qtuistyle.h" ChatView::ChatView(BufferId bufferId, QWidget *parent) : QGraphicsView(parent), @@ -71,6 +73,7 @@ void ChatView::init(MessageFilter *filter) { setScene(_scene); connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(verticalScrollbarChanged(int))); + connect(QtUi::style(), SIGNAL(changed()), this, SLOT(styleChanged())); } bool ChatView::event(QEvent *event) { @@ -169,6 +172,10 @@ void ChatView::verticalScrollbarChanged(int newPos) { vbar->setValue(vbar->maximum()); } +void ChatView::styleChanged() { + invalidateScene(); +} + MsgId ChatView::lastMsgId() const { if(!scene()) return MsgId();