From 6bc99a9ba6bf43ee53cc831cf60c6a914f0aafc4 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 17 Aug 2017 17:02:10 +0200 Subject: [PATCH] hopefully fixed black screen issue on mac --- src/widgets/chatwidgetview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/chatwidgetview.cpp b/src/widgets/chatwidgetview.cpp index 0aa537741..37735f9ef 100644 --- a/src/widgets/chatwidgetview.cpp +++ b/src/widgets/chatwidgetview.cpp @@ -26,7 +26,9 @@ ChatWidgetView::ChatWidgetView(ChatWidget *_chatWidget) , scrollBar(this) , userPopupWidget(_chatWidget->getChannelRef()) { +#ifndef Q_OS_MAC this->setAttribute(Qt::WA_OpaquePaintEvent); +#endif this->setMouseTracking(true); QObject::connect(&SettingsManager::getInstance(), &SettingsManager::wordTypeMaskChanged, this, @@ -152,6 +154,7 @@ void ChatWidgetView::paintEvent(QPaintEvent * /*event*/) _painter.setRenderHint(QPainter::SmoothPixmapTransform); // only update gif emotes +#ifndef Q_OS_MAC if (this->onlyUpdateEmotes) { this->onlyUpdateEmotes = false; @@ -163,6 +166,7 @@ void ChatWidgetView::paintEvent(QPaintEvent * /*event*/) return; } +#endif // update all messages this->gifEmotes.clear();