本页内容

Core::IOptionsPage Class

class Core::IOptionsPage

IOptionsPage 类是一个接口,用于为“Options ”对话框(在 macOS 上称为“Preferences ”)提供页面。更多内容...

Header: #include <coreplugin/dialogs/ioptionspage.h>

公共函数

IOptionsPage(bool registerGlobally = true)
Utils::Id category() const
Utils::FilePath categoryIconPath() const
QString displayCategory() const
QString displayName() const
Utils::Id id() const

静态公共成员

const QList<Core::IOptionsPage *> allOptionsPages()
void registerCategory(Utils::Id id, const QString &displayName, const Utils::FilePath &iconPath)

受保护的函数

void setDisplayName(const QString &displayName)
void setId(Utils::Id id)

详细说明

成员函数文档

[explicit] IOptionsPage::IOptionsPage(bool registerGlobally = true)

如果registerGlobally 的值为true ,则构建一个选项页面,并将其注册到全局选项页面池中。

[static] const QList<Core::IOptionsPage *> IOptionsPage::allOptionsPages()

返回所有选项页面的列表。

Utils::Id IOptionsPage::category() const

返回应显示“选项”页面的分类的唯一 ID。该 ID 用于对“Options ”对话框左侧的列表进行排序。

Utils::FilePath IOptionsPage::categoryIconPath() const

返回“选项”页面中类别图标的路径。该图标将从该路径读取,并显示在“Options ”对话框左侧的列表中。

QString IOptionsPage::displayCategory() const

返回“选项”页面的已翻译分类名称。该名称将显示在“Options ”对话框左侧的列表中。

QString IOptionsPage::displayName() const

返回选项页面的已翻译显示名称。

另请参阅 setDisplayName()。

Utils::Id IOptionsPage::id() const

返回一个用于引用“选项”页面的唯一标识符。

另请参阅 setId()。

[static] void IOptionsPage::registerCategory(Utils::Id id, const QString &displayName, const Utils::FilePath &iconPath)

注册一个ID为id 、用户可见名称为displayName 、图标由iconPath 指定的类别。

[protected] void IOptionsPage::setDisplayName(const QString &displayName)

将“displayName ”设置为“选项”页面的显示名称。

另请参阅 displayName()。

[protected] void IOptionsPage::setId(Utils::Id id)

设置选项页面的“id ”。

另请参阅 id()。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.