diff --git a/src/plugin-systeminfo/operation/systeminfomodel.cpp b/src/plugin-systeminfo/operation/systeminfomodel.cpp index aaa95a7371..4ea1cc5a77 100644 --- a/src/plugin-systeminfo/operation/systeminfomodel.cpp +++ b/src/plugin-systeminfo/operation/systeminfomodel.cpp @@ -127,6 +127,11 @@ bool SystemInfoModel::showUserExperienceProgram() const return !IS_SERVER_SYSTEM && !IS_COMMUNITY_SYSTEM && DSysInfo::isDeepin(); } +bool SystemInfoModel::showGraphicsPlatform() const +{ + return IS_COMMUNITY_SYSTEM; +} + QString SystemInfoModel::systemInstallationDate() const { return m_systemInstallationDate; diff --git a/src/plugin-systeminfo/operation/systeminfomodel.h b/src/plugin-systeminfo/operation/systeminfomodel.h index 56ba507232..da5bb93d4b 100644 --- a/src/plugin-systeminfo/operation/systeminfomodel.h +++ b/src/plugin-systeminfo/operation/systeminfomodel.h @@ -114,6 +114,7 @@ class SystemInfoModel : public QObject Q_INVOKABLE bool showAuthorization() const; Q_INVOKABLE bool showUserExperienceProgram() const; + Q_INVOKABLE bool showGraphicsPlatform() const; QString graphicsPlatform() const; void setGraphicsPlatform(const QString &newGraphicsPlatform); diff --git a/src/plugin-systeminfo/qml/NativeInfoPage.qml b/src/plugin-systeminfo/qml/NativeInfoPage.qml index 29df99d81f..c07fe6bdbd 100644 --- a/src/plugin-systeminfo/qml/NativeInfoPage.qml +++ b/src/plugin-systeminfo/qml/NativeInfoPage.qml @@ -268,6 +268,7 @@ DccObject { weight: 90 parentName: "nativeInfoGrp" pageType: DccObject.Editor + visible: dccData.systemInfoMode().showGraphicsPlatform() displayName: qsTr("Graphics Platform") + ":" page: Label { font: DTK.fontManager.t6