pick develop/eagle to master#571
Merged
deepin-bot[bot] merged 5 commits intolinuxdeepin:masterfrom Dec 1, 2025
Merged
Conversation
-- Funtion parameter should be passed by const reference. -- Unused parameter. -- The scope of the varible 'index' can reduced. pick from: linuxdeepin@76729e9
This reverts commit 76729e9. pick from: linuxdeepin@e883cd1
-- Not show gpu on some platform. Log: fix issue Bug: https://pms.uniontech.com/task-view-378987.html
improve input device Bus interface detectionadd, add input device bus interface for USB Devices Log: add input device bus interface for USB Devices Bug: https://pms.uniontech.com/bug-view-331181.html Change-Id: Ie66f434275af797a31a083f9ea6eb8a63dd427ab
…with USB headphones Fixed an issue where Device Manager's audio enable/disable functionality briefly toggled audio device states during initialization, causing USB headphone playback to pause. This occurred due to temporary audio device state switching logic during the initial setup phase. Log: Fix USB audio playback interruption from Device Manager Bug: https://pms.uniontech.com/bug-view-332095.html Change-Id: Idd98f8cd92884d3f7b7297adf64901c49f9807a0
deepin pr auto review我来分析这些代码变更并提供改进建议:
- if (getGpuBaseInfo(mapInfo) && getGpuMemInfoForFTDTM(mapInfo)) {
+ if (getGpuBaseInfo(mapInfo)) {
+ getGpuMemInfoForFTDTM(mapInfo);改进建议:
if (getGpuBaseInfo(mapInfo)) {
if (!getGpuMemInfoForFTDTM(mapInfo)) {
qWarning() << "Failed to get GPU memory info";
}
// 继续执行其他代码
}
-QStringList DeviceInput::m_supportInterfaces= {"PS/2", "Bluetooth", "I2C"};
+QStringList DeviceInput::m_supportInterfaces= {"PS/2", "Bluetooth", "I2C", "USB"};改进建议:
const QStringList DeviceInput::m_supportInterfaces = {"PS/2", "Bluetooth", "I2C", "USB"};
+ qDebug() << enabledDevices.value(it)->name() << "is enable: " << enabledDevices.value(it)->enable();
+ if (enabledDevices.value(it)->enable()){
+ continue;
+ }改进建议:
#ifdef QT_DEBUG
qDebug() << enabledDevices.value(it)->name() << "is enable: " << enabledDevices.value(it)->enable();
#endif
auto device = enabledDevices.value(it);
if (device->enable()) {
continue;
}
- if (mapInfo["Hardware Class"] == "sound"
- || (mapInfo["Device"].contains("USB Audio") && mapInfo["Device"].contains("snd-usb-audio"))
- || mapInfo["Driver"].contains("snd-usb-audio")) {
+ if (mapInfo["Hardware Class"] == "sound" || (mapInfo["Device"].contains("USB Audio") && mapInfo["Device"].contains("snd-usb-audio"))) {改进建议:
if (mapInfo["Hardware Class"] == "sound"
|| (mapInfo["Device"].contains("USB Audio") && mapInfo["Device"].contains("snd-usb-audio"))
|| mapInfo["Driver"].contains("snd-usb-audio")) {
- PageDriverControl(QWidget *parent, QString operation, bool install, QString deviceName, QString driverName, QString printerVendor, QString printerModel)
+ PageDriverControl(QWidget *parent, const QString &operation, bool install, const QString &deviceName, const QString &driverName, const QString &printerVendor, const QString &printerModel)改进建议:
+ Q_UNUSED(itemIndex)
+ Q_UNUSED(progress)
+ Q_UNUSED(strDeatils)
+ Q_UNUSED(msg)改进建议:
- void setCurType(QString type);
+ void setCurType(const QString &type);改进建议:
总体建议:
|
lzwind
approved these changes
Dec 1, 2025
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Author
|
/forcemerge |
Contributor
|
This pr force merged! (status: unstable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pick develop/eagle to master