From 2194af2f6b7727054eafa1054b0441cf40037bd5 Mon Sep 17 00:00:00 2001 From: lvpeilong Date: Mon, 1 Aug 2022 17:20:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=B6=E5=B0=9A=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=97=A5=E6=9C=9Ftips=E6=9C=89wayland?= =?UTF-8?q?=E9=BB=98=E8=AE=A4tittle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 时尚模式时间日期tips窗口wayland下未设置无边框属性 Log: 任务栏时尚模式时间日期tips窗口wayland下添加置无边框属性 Bug: https://pms.uniontech.com/bug-view-149173.html Influence: 任务栏时尚模式下时间日期tips是否显示正常 Change-Id: Id35ee366e0ad9f75d0b2f2e48fa12ea5e78a0845 --- frame/window/components/datetimedisplayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frame/window/components/datetimedisplayer.cpp b/frame/window/components/datetimedisplayer.cpp index f86f95275..e751d1ac6 100644 --- a/frame/window/components/datetimedisplayer.cpp +++ b/frame/window/components/datetimedisplayer.cpp @@ -21,6 +21,7 @@ #include "datetimedisplayer.h" #include "tipswidget.h" #include "dockpopupwindow.h" +#include "utils.h" #include #include @@ -64,6 +65,9 @@ DateTimeDisplayer::DateTimeDisplayer(QWidget *parent) m_tipsTimer->start(); updatePolicy(); m_tipPopupWindow->hide(); + if (Utils::IS_WAYLAND_DISPLAY) { + m_tipPopupWindow->setWindowFlags(m_tipPopupWindow->windowFlags() | Qt::FramelessWindowHint); + } } DateTimeDisplayer::~DateTimeDisplayer()