This commit is contained in:
fourtf 2017-08-17 19:15:55 +02:00
commit ab6474150d
2 changed files with 8 additions and 0 deletions

View file

@ -13,3 +13,7 @@ SettingsDialogTab:hover {
QLabel, QCheckBox, QGroupBox, SettingsDialogTab {
color: white;
}
QGroupBox {
background-color: #444;
}

View file

@ -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();