fixed tooltips having their own window in the taskbar
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user