Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adapt to qt6 #382

Merged
merged 1 commit into from
Nov 19, 2024
Merged

chore: adapt to qt6 #382

merged 1 commit into from
Nov 19, 2024

Conversation

yixinshark
Copy link
Contributor

1.adapt to qt6
2.change gsettings to dconfig
3.Resolve compilation warnings

Log: as title
Task: https://pms.uniontech.com/task-view-367947.html

@yixinshark yixinshark force-pushed the chore-qt6 branch 2 times, most recently from 6e511b2 to 6244149 Compare November 18, 2024 06:02
@@ -266,11 +266,15 @@ void Content::updateContent()
m_acceptCheck->setText(m_isCn ? m_allow : m_enallow);
m_acceptCheck->setVisible(m_isCn ? !m_allow.isEmpty() : !m_enallow.isEmpty());
if (m_hasCn && m_hasEn) {
trans.load(QString("/usr/share/dde-session-ui/translations/dde-session-ui_%1").arg(m_isCn ? "zh_CN" : "en_US"));
if (trans.load(QString("/usr/share/dde-session-ui/translations/dde-session-ui_%1").arg(m_isCn ? "zh_CN" : "en_US"))) {
qApp->installTranslator(&trans);
Copy link
Contributor

Choose a reason for hiding this comment

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

这个trans是个栈变量?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是,没有改变原有逻辑,只是修复编译警告。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已重新实现此部分功能。

if (setting.keys().contains("pindialogTimeSec"))
pinsectime = setting.get("pindialog-time-sec").toUInt();
// TODO from deepin-desktop-schemas: /usr/share/glib-2.0/schemas/com.deepin.dde.osd.gschema.xml.
auto dConfig = Dtk::Core::DConfig::create("org.deepin.dde.osd", "org.deepin.dde.osd", QString(), this);
Copy link
Contributor

Choose a reason for hiding this comment

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

org.deepin.dde.osd 这个配置原来就有的么?有的话,dde-osd没有编译了,是不是有问题了,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

有的,但不是dde-osd项目提供,是deepin-desktop-schemas提供。

CMakeLists.txt Outdated
set(QT_VERSION_MAJOR 6)
set(DTK_VERSION_MAJOR 6)
else()
set(QT_VERSION_MAJOR 5)
Copy link
Contributor

Choose a reason for hiding this comment

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

如果不打算兼容qt5,可以不加这个,看下面的代码有些也没兼容,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok,去掉Qt5信息

@@ -80,7 +86,7 @@ add_subdirectory("dde-bluetooth-dialog")
add_subdirectory("dde-hints-dialog")
add_subdirectory("dde-license-dialog")
add_subdirectory("dde-lowpower")
add_subdirectory("dde-osd")
#add_subdirectory("dde-osd")
Copy link
Contributor

Choose a reason for hiding this comment

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

这个还是要适配,在社区版的x11下面还是需要的,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

v23走release分支,此修改不会合并到release分支。

@yixinshark yixinshark force-pushed the chore-qt6 branch 2 times, most recently from 6f957db to 0a4613b Compare November 18, 2024 07:39
18202781743
18202781743 previously approved these changes Nov 18, 2024
1.adapt to qt6
2.change gsettings to dconfig
3.Resolve compilation warnings

Log: as title
Task: https://pms.uniontech.com/task-view-367947.html
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, yixinshark

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

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

@yixinshark yixinshark merged commit 7c86f92 into linuxdeepin:master Nov 19, 2024
17 of 18 checks passed
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.

3 participants