72 lines
2.4 KiB
Diff
72 lines
2.4 KiB
Diff
From 174735784266ba42ee5bcb1733ac3d8e4b307b04 Mon Sep 17 00:00:00 2001
|
|
From: peijiankang <peijiankang@kylinos.cn>
|
|
Date: Mon, 21 Aug 2023 09:59:49 +0800
|
|
Subject: [PATCH] fix build error about windowClass
|
|
|
|
---
|
|
decorations/decoratedclient.cpp | 5 +++++
|
|
decorations/decoratedclient.h | 1 +
|
|
kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp | 5 +++++
|
|
kcmkwin/kwindecoration/declarative-plugin/previewclient.h | 1 +
|
|
4 files changed, 12 insertions(+)
|
|
|
|
diff --git a/decorations/decoratedclient.cpp b/decorations/decoratedclient.cpp
|
|
index c4c0c88..1ac88f4 100644
|
|
--- a/decorations/decoratedclient.cpp
|
|
+++ b/decorations/decoratedclient.cpp
|
|
@@ -263,6 +263,11 @@ int DecoratedClientImpl::width() const
|
|
return m_clientSize.width();
|
|
}
|
|
|
|
+QString DecoratedClientImpl::windowClass() const
|
|
+{
|
|
+ return QString();
|
|
+}
|
|
+
|
|
int DecoratedClientImpl::height() const
|
|
{
|
|
return m_clientSize.height();
|
|
diff --git a/decorations/decoratedclient.h b/decorations/decoratedclient.h
|
|
index 49f8be5..7ba92d0 100644
|
|
--- a/decorations/decoratedclient.h
|
|
+++ b/decorations/decoratedclient.h
|
|
@@ -58,6 +58,7 @@ public:
|
|
QSize size() const override;
|
|
int width() const override;
|
|
WId windowId() const override;
|
|
+ QString windowClass() const override;
|
|
|
|
Qt::Edges adjacentScreenEdges() const override;
|
|
|
|
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp
|
|
index ace02c8..08be8e3 100644
|
|
--- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp
|
|
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp
|
|
@@ -133,6 +133,11 @@ int PreviewClient::width() const
|
|
return m_width;
|
|
}
|
|
|
|
+QString PreviewClient::windowClass() const
|
|
+{
|
|
+ return QString();
|
|
+}
|
|
+
|
|
int PreviewClient::height() const
|
|
{
|
|
return m_height;
|
|
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
|
|
index fe043db..1e35f00 100644
|
|
--- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
|
|
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
|
|
@@ -87,6 +87,7 @@ public:
|
|
bool isShadeable() const override;
|
|
bool isShaded() const override;
|
|
bool providesContextHelp() const override;
|
|
+ QString windowClass() const override;
|
|
|
|
int width() const override;
|
|
int height() const override;
|
|
--
|
|
2.33.0
|
|
|