+
+ // 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) {
+ if(event->type() == QEvent::KeyPress) {
+ QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
+ switch(keyEvent->key()) {
+ case Qt::Key_Up:
+ case Qt::Key_Down:
+ case Qt::Key_PageUp:
+ case Qt::Key_PageDown:
+ if(!verticalScrollBar()->isVisible()) {
+ scene()->requestBacklog();
+ return true;
+ }
+ default:
+ break;
+ }
+ }
+
+ if(event->type() == QEvent::Wheel) {
+ if(!verticalScrollBar()->isVisible()) {
+ scene()->requestBacklog();
+ return true;
+ }
+ }
+
+ return QGraphicsView::event(event);