fix: include QStringBuilder and improve api doc

log:
This commit is contained in:
black-desk 2023-10-17 11:25:48 +08:00 committed by Comix
parent 1f73eea404
commit fc5184bab4
3 changed files with 6 additions and 2 deletions

View File

@ -35,8 +35,8 @@
<arg type="s" name="name" direction="in"/> <arg type="s" name="name" direction="in"/>
<arg type="s" name="app_id" direction="out" /> <arg type="s" name="app_id" direction="out" />
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap" /> <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap" />
<annotation <annotation
name="org.freedesktop.DBus.Description" name="org.freedesktop.DBus.Description"
value="Desktop-entry-spec: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html, value="Desktop-entry-spec: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html,
type of `v` is depends on the property which you want to set. type of `v` is depends on the property which you want to set.
examples: examples:

View File

@ -1,6 +1,8 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
// //
// SPDX-License-Identifier: LGPL-3.0-or-later // SPDX-License-Identifier: LGPL-3.0-or-later
#include <QStringBuilder>
#include "desktopfilegenerator.h" #include "desktopfilegenerator.h"
#include "desktopfileparser.h" #include "desktopfileparser.h"

View File

@ -3,6 +3,8 @@
// SPDX-License-Identifier: LGPL-3.0-or-later // SPDX-License-Identifier: LGPL-3.0-or-later
#include <QRegularExpression> #include <QRegularExpression>
#include <QStringBuilder>
#include "desktopfileparser.h" #include "desktopfileparser.h"
#include "constant.h" #include "constant.h"
#include "global.h" #include "global.h"