added colon emote popup for ffz and bttv

This commit is contained in:
fourtf
2020-08-15 18:59:17 +02:00
parent 6781482485
commit f7237dccdd
26 changed files with 700 additions and 251 deletions
+1 -10
View File
@@ -21,7 +21,7 @@ TooltipWidget *TooltipWidget::instance()
}
TooltipWidget::TooltipWidget(BaseWidget *parent)
: BaseWindow(BaseWindow::TopMost, parent)
: BaseWindow({BaseWindow::TopMost, BaseWindow::DontFocus}, parent)
, displayImage_(new QLabel())
, displayText_(new QLabel())
{
@@ -31,15 +31,6 @@ TooltipWidget::TooltipWidget(BaseWidget *parent)
this->updateFont();
this->setStayInScreenRect(true);
this->setAttribute(Qt::WA_ShowWithoutActivating);
#ifdef Q_OS_LINUX
this->setWindowFlags(Qt::ToolTip);
#else
this->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint |
Qt::X11BypassWindowManagerHint |
Qt::BypassWindowManagerHint);
#endif
displayImage_->hide();
displayImage_->setAlignment(Qt::AlignHCenter);
displayImage_->setStyleSheet("background: transparent");