Skip to content

Commit f0e7e40

Browse files
18202781743deepin-bot[bot]
authored andcommitted
refactor: remove unused PersonalizationWallpaperContext class
Remove the PersonalizationWallpaperContext class and its associated metadata handling, as this wallpaper context functionality is no longer needed. The class was previously used for receiving wallpaper metadata from the compositor, but this feature has been deprecated in favor of direct wallpaper management through the existing WallpaperManager. Log: Removed unused wallpaper context functionality Influence: 1. Verify wallpaper functionality still works correctly 2. Test wallpaper switching and metadata handling 3. Ensure no regressions in personalization settings refactor: 移除未使用的 PersonalizationWallpaperContext 类 移除 PersonalizationWallpaperContext 类及其相关的元数据处理功能,因为该 壁纸上下文功能不再需要。该类之前用于从合成器接收壁纸元数据,但此功能已被 弃用,转而通过现有的 WallpaperManager 进行直接壁纸管理。 Log: 移除未使用的壁纸上下文功能 Influence: 1. 验证壁纸功能是否正常工作 2. 测试壁纸切换和元数据处理 3. 确保个性化设置没有回归问题
1 parent f9ea53f commit f0e7e40

3 files changed

Lines changed: 1 addition & 29 deletions

File tree

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Build-Depends:
2828
qt6-wayland-private-dev,
2929
qt6-wayland-dev-tools,
3030
wlr-protocols,
31-
treeland-protocols (>> 0.5.7),
31+
treeland-protocols (>>0.5.8),
3232
systemd,
3333
libdareader-dev,
3434
libdeepin-pw-check-dev,

src/plugin-personalization/operation/treelandworker.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -654,19 +654,6 @@ void PersonalizationAppearanceContext::treeland_personalization_appearance_conte
654654
m_model->setTitleBarHeight(height);
655655
}
656656

657-
PersonalizationWallpaperContext::PersonalizationWallpaperContext(struct ::treeland_personalization_wallpaper_context_v1 *context)
658-
: QWaylandClientExtensionTemplate<PersonalizationWallpaperContext>(1)
659-
, QtWayland::treeland_personalization_wallpaper_context_v1(context)
660-
{
661-
662-
}
663-
664-
void PersonalizationWallpaperContext::treeland_personalization_wallpaper_context_v1_metadata(
665-
const QString &metadata)
666-
{
667-
Q_EMIT metadataChanged(metadata);
668-
}
669-
670657
PersonalizationCursorContext::PersonalizationCursorContext(struct ::treeland_personalization_cursor_context_v1 *context, PersonalizationModel *model)
671658
: QWaylandClientExtensionTemplate<PersonalizationCursorContext>(1)
672659
, QtWayland::treeland_personalization_cursor_context_v1(context)

src/plugin-personalization/operation/treelandworker.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
class PersonalizationManager;
2626
class PersonalizationAppearanceContext;
27-
class PersonalizationWallpaperContext;
2827
class PersonalizationCursorContext;
2928
class PersonalizationFontContext;
3029
class WallpaperManager;
@@ -174,20 +173,6 @@ class PersonalizationAppearanceContext : public QWaylandClientExtensionTemplate<
174173
PersonalizationModel *m_model;
175174
};
176175

177-
class PersonalizationWallpaperContext : public QWaylandClientExtensionTemplate<PersonalizationWallpaperContext>,
178-
public QtWayland::treeland_personalization_wallpaper_context_v1
179-
{
180-
Q_OBJECT
181-
public:
182-
explicit PersonalizationWallpaperContext(struct ::treeland_personalization_wallpaper_context_v1 *context);
183-
184-
Q_SIGNALS:
185-
void metadataChanged(const QString &meta);
186-
187-
protected:
188-
void treeland_personalization_wallpaper_context_v1_metadata(const QString &metadata) override;
189-
};
190-
191176
class PersonalizationCursorContext : public QWaylandClientExtensionTemplate<PersonalizationCursorContext>,
192177
public QtWayland::treeland_personalization_cursor_context_v1
193178
{

0 commit comments

Comments
 (0)