Skip to content

chore: add some interfaces about personalization - #258

Closed
FeiWang1119 wants to merge 1 commit into
linuxdeepin:masterfrom
FeiWang1119:master
Closed

chore: add some interfaces about personalization#258
FeiWang1119 wants to merge 1 commit into
linuxdeepin:masterfrom
FeiWang1119:master

Conversation

@FeiWang1119

Copy link
Copy Markdown
Contributor

add some interfaces about personalization

Log:

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: FeiWang1119

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 10, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 10, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 11, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 11, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
@kegechen
kegechen requested review from 18202781743 and justforlxz and removed request for justforlxz October 12, 2024 06:33
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 12, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
Comment thread src/CMakeLists.txt Outdated
Comment thread src/kernel/dplatformtheme.cpp Outdated
@FeiWang1119
FeiWang1119 requested a review from zccrs October 14, 2024 12:51
Comment thread src/CMakeLists.txt Outdated
Comment thread src/kernel/dguiapplicationhelper.cpp Outdated
Comment thread src/kernel/dplatformhandle.cpp Outdated
Comment thread src/kernel/dplatformhandle.cpp Outdated
Comment thread src/kernel/dplatformhandle.cpp Outdated
Comment thread src/kernel/dplatformhandle.cpp Outdated
Comment thread src/kernel/dplatformhandle.cpp Outdated
Comment thread src/kernel/dplatformtheme.cpp Outdated
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 15, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 15, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 15, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 15, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 15, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
@deepin-ci-robot

Copy link
Copy Markdown
Contributor

deepin pr auto review

Comment thread include/kernel/dplatforminterface.h Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先不要作为public接口,先作为private的,不对外可见

Comment thread include/kernel/dplatforminterface.h Outdated
Comment thread include/kernel/dplatforminterface.h Outdated
virtual int windowRadius() const;
virtual void setWindowRadius(int windowRadius);
virtual QByteArray fontName() const;
virtual void setFontName(const QByteArray &fontName);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种系统全局类的配置的修改不在 dtkgui 里提供,dtkgui里只读,不实现修改的功能。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

就算要做修改的功能,也应该是在 dtksystemsettings 模块里做。

Comment thread include/kernel/dplatforminterface.h Outdated
virtual ~DPlatformInterface();

virtual int windowRadius() const;
virtual void setWindowRadius(int windowRadius);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果是针对某个窗口的,那可以留着设置接口

Comment thread include/kernel/dxcbplatforminterface.h Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

作为一个单独的cmake模块放到一个子目录里,目录以 plugins/platform 开头,比如是 plugins/platform/xcb

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同样的也应该是 private 的,不对外

if (contextWindow->noTitlebar() == enable)
return true;
contextWindow->setNoTitlebar(enable);
#ifndef DTK_DISABLE_TREELAND

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分为什么没有拆到 DPlatformHandle 里去?

Comment thread src/kernel/dplatformhandle.cpp Outdated
void DPlatformHandle::setWindowRadius(int windowRadius)
{
#ifndef DTK_DISABLE_TREELAND
if (DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::IsTreelandPlatform)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

Comment thread src/kernel/dplatforminterface.cpp Outdated
{
}

int DPlatformInterface::windowRadius() const

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以直接是纯虚函数

DPlatformThemePrivate::DPlatformThemePrivate(Dtk::Gui::DPlatformTheme *qq)
: DNativeSettingsPrivate(qq, QByteArrayLiteral("/deepin/palette"))
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥删了

: QWaylandClientExtensionTemplate<PersonalizationManager>(1)
{
if (QGuiApplication::platformName() == QLatin1String("wayland")) {
QtWaylandClient::QWaylandIntegration *waylandIntegration = static_cast<QtWaylandClient::QWaylandIntegration *>(QGuiApplicationPrivate::platformIntegration());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qt6版本不是这样使用了吧,它不是有了 QNativeInterface 这种东西

deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 17, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Oct 17, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
@FeiWang1119
FeiWang1119 marked this pull request as draft October 23, 2024 05:22
@deepin-bot

deepin-bot Bot commented Oct 31, 2024

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 5.7.1
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #256

@deepin-bot

deepin-bot Bot commented Nov 15, 2024

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 5.7.2
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #271

@deepin-bot

deepin-bot Bot commented Nov 22, 2024

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 5.7.3
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #273

deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Nov 28, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
add window platform interface

Log: as title.
deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Nov 28, 2024
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants