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

fix: professional edition hide Graphics Platform #1912

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/plugin-systeminfo/operation/systeminfomodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@
return !IS_SERVER_SYSTEM && !IS_COMMUNITY_SYSTEM && DSysInfo::isDeepin();
}

bool SystemInfoModel::showGraphicsPlatform() const

Check warning on line 130 in src/plugin-systeminfo/operation/systeminfomodel.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'showGraphicsPlatform' is never used.
{
return IS_COMMUNITY_SYSTEM;
}

QString SystemInfoModel::systemInstallationDate() const

Check warning on line 135 in src/plugin-systeminfo/operation/systeminfomodel.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'systemInstallationDate' is never used.
{
return m_systemInstallationDate;
}
Expand Down
1 change: 1 addition & 0 deletions src/plugin-systeminfo/operation/systeminfomodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/plugin-systeminfo/qml/NativeInfoPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading