X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=0a53dfee1071cf11d5dea1640f08ad91543ee3d5;hp=e865c455f37e710a55041e80bfbf53bec745dca9;hb=ef6faa994fca6bf7332c7a3761b2e68a133de6dc;hpb=b4f1d778d8ea3bf86ddf1764314132e5eb9ef296 diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index e865c455..0a53dfee 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -582,11 +582,12 @@ void ChatScene::updateSceneRect(const QRectF &rect) { update(); } -void ChatScene::customEvent(QEvent *event) { - switch(event->type()) { - default: - return; +bool ChatScene::event(QEvent *e) { + if(e->type() == QEvent::ApplicationPaletteChange) { + _firstColHandle->setColor(QApplication::palette().windowText().color()); + _secondColHandle->setColor(QApplication::palette().windowText().color()); } + return QGraphicsScene::event(e); } void ChatScene::loadWebPreview(ChatItem *parentItem, const QString &url, const QRectF &urlRect) {