加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004-dde-control-center-disable-windowmoveswitch.patch 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
Venland 提交于 2023-08-02 10:43 . upgrade to version 5.5.182
From 263559ccfd3615ed1f7f733456f73c54ef364101 Mon Sep 17 00:00:00 2001
From: leeffo <leeffo@yeah.net>
Date: Wed, 1 Feb 2023 13:40:57 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=B3=E9=97=AD=E7=AA=97=E5=8F=A3?=
=?UTF-8?q?=E7=A7=BB=E5=8A=A8=E6=97=B6=E5=90=AF=E7=94=A8=E9=80=8F=E6=98=8E?=
=?UTF-8?q?=E7=89=B9=E6=95=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../window/modules/personalization/personalizationgeneral.cpp | 2 ++
.../window/modules/personalization/personalizationgeneral.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/src/frame/window/modules/personalization/personalizationgeneral.cpp b/src/frame/window/modules/personalization/personalizationgeneral.cpp
index 13e7b65..137c165 100644
--- a/src/frame/window/modules/personalization/personalizationgeneral.cpp
+++ b/src/frame/window/modules/personalization/personalizationgeneral.cpp
@@ -493,11 +493,13 @@ void PersonalizationGeneral::paintEvent(QPaintEvent *event)
}
}
+#if 0
void PersonalizationGeneral::resizeEvent(QResizeEvent *event)
{
m_windowMovedLabel->setText(QFontMetrics(m_windowMovedLabel->font()).elidedText(m_displayData, Qt::ElideRight, event->size().width() >= 430 ? 500 : 280));
QWidget::resizeEvent(event);
}
+#endif
void PersonalizationGeneral::updateActiveColors(RoundColorWidget *selectedWidget)
{
diff --git a/src/frame/window/modules/personalization/personalizationgeneral.h b/src/frame/window/modules/personalization/personalizationgeneral.h
index b4856bb..00809fa 100644
--- a/src/frame/window/modules/personalization/personalizationgeneral.h
+++ b/src/frame/window/modules/personalization/personalizationgeneral.h
@@ -76,7 +76,9 @@ public:
protected:
void paintEvent(QPaintEvent *event);
+#if 0
void resizeEvent(QResizeEvent *event) override;
+#endif
private:
void updateActiveColors(RoundColorWidget *selectedWidget);
--
2.20.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化