forked from linuxdeepin/dtkcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
给gsettingsbackend添加文档注释 Log: add docs Task: deepin-community/coding-quarter#26
- Loading branch information
1 parent
1785a16
commit f822612
Showing
2 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/*! | ||
@~chinese | ||
@file include/settings/backend/gsettingsbackend.h | ||
@ingroup dsettings | ||
|
||
@class Dtk::Core::GSettingsBackend gsettingsbackend.h | ||
@brief DSettings的存储后端使用gsettings | ||
@details 你应该使用/usr/lib/x86_64-linux-gnu/libdtk-$$VERSION/DCore/bin/dtk-settings 生成gsetting模式 <br>你可以从libdtkcore-bin中找到此工具, 使用/usr/lib/x86_64-linux-gnu/libdtk-$$VERSION/DCore/bin/dtk-settings -h 获取帮助 | ||
|
||
@fn Dtk::Core::GSettingsBackend::GSettingsBackend(DSettings *settings, QObject *parent = nullptr) | ||
@brief GSettingsBackend构造函数 | ||
|
||
@fn virtual QStringList Dtk::Core::GSettingsBackend::keys() const | ||
@brief gsettings的全部键值 | ||
@return 返回gsettings的全部键值 | ||
|
||
@fn virtual QVariant Dtk::Core::GSettingsBackend::getOption(const QString &key) const | ||
@brief 根据`key`获取值 | ||
@return 返回键对应的值 | ||
|
||
@fn virtual void Dtk::Core::GSettingsBackend::doSetOption(const QString &key, const QVariant &value) | ||
@brief 设置`key`对应的值 | ||
|
||
@fn virtual Dtk::Core::GSettingsBackend::void doSync() | ||
@brief 触发DSettings将选项同步到存储 | ||
|
||
*/ |
This file contains 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