fixed tooltips having their own window in the taskbar

This commit is contained in:
fourtf 2018-06-05 19:08:49 +02:00
parent 51bde1098e
commit 19bef56f58
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ namespace widgets {
BaseWindow::BaseWindow(QWidget *parent, Flags _flags) BaseWindow::BaseWindow(QWidget *parent, Flags _flags)
: BaseWidget(parent, : BaseWidget(parent,
Qt::Window | ((_flags & TopMost) ? Qt::WindowStaysOnTopHint : (Qt::WindowFlags)0)) Qt::Window | ((_flags & TopMost) ? Qt::WindowStaysOnTopHint : Qt::WindowFlags(0)))
, enableCustomFrame(_flags & EnableCustomFrame) , enableCustomFrame(_flags & EnableCustomFrame)
, frameless(_flags & FrameLess) , frameless(_flags & FrameLess)
, flags(_flags) , flags(_flags)

View file

@ -37,7 +37,7 @@ TooltipWidget::TooltipWidget(BaseWidget *parent)
this->setStayInScreenRect(true); this->setStayInScreenRect(true);
this->setAttribute(Qt::WA_ShowWithoutActivating); this->setAttribute(Qt::WA_ShowWithoutActivating);
this->setWindowFlags(Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint | this->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint |
Qt::BypassWindowManagerHint); Qt::BypassWindowManagerHint);
displayText->setAlignment(Qt::AlignHCenter); displayText->setAlignment(Qt::AlignHCenter);