fix: correct property name

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe 2023-11-06 17:12:39 +08:00 committed by Comix
parent d35ef8ae1f
commit b813d3d86b
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
<property name="Categories" type="as" access="read"/>
<property name="X_linglong" type="b" access="read"/>
<property name="X_Flatpak" type="b" access="read"/>
<property name="X_Vendor_Deepin" type="s" access="read">
<property name="X_Deepin_Vendor" type="s" access="read">
<annotation name="org.freedesktop.DBus.Description" value="Whem this property is 'deepin', display name of the application
should use GenericName."
/>

View File

@ -476,7 +476,7 @@ bool ApplicationService::x_linglong() const noexcept
return !val.isNull();
}
QString ApplicationService::x_Vendor_Deepin() const noexcept
QString ApplicationService::X_Deepin_Vendor() const noexcept
{
return findEntryValue(DesktopFileEntryKey, "X-Deepin-Vendor", EntryValueType::String).toString();
}

View File

@ -89,8 +89,8 @@ public:
Q_PROPERTY(bool X_linglong READ x_linglong NOTIFY x_linglongChanged)
[[nodiscard]] bool x_linglong() const noexcept;
Q_PROPERTY(QString X_Vendor_Deepin READ x_Vendor_Deepin)
[[nodiscard]] QString x_Vendor_Deepin() const noexcept;
Q_PROPERTY(QString X_Deepin_Vendor READ X_Deepin_Vendor)
[[nodiscard]] QString X_Deepin_Vendor() const noexcept;
Q_PROPERTY(qulonglong installedTime READ installedTime NOTIFY installedTimeChanged)
[[nodiscard]] qulonglong installedTime() const noexcept;