Fixing BR #308 - make column handle fade smoother
[quassel.git] / src / qtui / chatscene.cpp
index e865c45..0a53dfe 100644 (file)
@@ -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) {