-
Notifications
You must be signed in to change notification settings - Fork 57
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
chore: adapt to qt6 #382
Conversation
6e511b2
to
6244149
Compare
dde-license-dialog/src/content.cpp
Outdated
@@ -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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个trans是个栈变量?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是,没有改变原有逻辑,只是修复编译警告。
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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没有编译了,是不是有问题了,
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果不打算兼容qt5,可以不加这个,看下面的代码有些也没兼容,
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个还是要适配,在社区版的x11下面还是需要的,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v23走release分支,此修改不会合并到release分支。
6f957db
to
0a4613b
Compare
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
0a4613b
to
27e3eda
Compare
[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 |
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