#include "chatview.h"
#include "client.h"
#include "messagefilter.h"
+#include "qtui.h"
+#include "qtuistyle.h"
+#include "clientignorelistmanager.h"
ChatView::ChatView(BufferId bufferId, QWidget *parent)
: QGraphicsView(parent),
setScene(_scene);
connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(verticalScrollbarChanged(int)));
+
+ // only connect if client is synched with a core
+ if(Client::isSynced())
+ connect(Client::ignoreListManager(), SIGNAL(ignoreListChanged()), filter, SLOT(invalidateFilter()));
}
bool ChatView::event(QEvent *event) {
}
}
_lastScrollbarPos = newPos;
+
+ // FIXME: Fugly workaround for the ChatView scrolling up 1px on buffer switch
+ if(vbar->maximum() - newPos <= 2)
+ vbar->setValue(vbar->maximum());
}
MsgId ChatView::lastMsgId() const {