QWinJumpList Class
The QWinJumpList class represents a transparent wrapper around Windows Jump Lists. 更多...
头文件: | #include <QWinJumpList> |
qmake: | QT += winextras |
开始支持版本: | Qt 5.2 |
基类: | QObject |
属性
- identifier : QString
- 1 个属性继承自 QObject
公有函数
QWinJumpList(QObject *parent = Q_NULLPTR) | |
~QWinJumpList() | |
void | addCategory(QWinJumpListCategory *category) |
QWinJumpListCategory * | addCategory(const QString &title, const QList<QWinJumpListItem *> items = QList<QWinJumpListItem *> ()) |
QList<QWinJumpListCategory *> | categories() const |
QWinJumpListCategory * | frequent() const |
QString | identifier() const |
QWinJumpListCategory * | recent() const |
void | setIdentifier(const QString &identifier) |
QWinJumpListCategory * | tasks() const |
- 32 个公有函数继承自 QObject
公有槽函数
void | clear() |
- 1 个公有槽函数继承自 QObject
其他继承的成员
详细描述
The QWinJumpList class represents a transparent wrapper around Windows Jump Lists.
An application can use Jump Lists to provide users with faster access to files or to display shortcuts to tasks or commands.
属性
identifier : QString
This property holds the jump list identifier
Specifies an optional explicit unique identifier for the application jump list.
The default value is empty; a system-defined internal identifier is used instead. See Application User Model IDs on MSDN for further details.
Note: The identifier cannot have more than 128
characters and cannot contain spaces. A too long identifier is automatically truncated to 128
characters, and spaces are replaced by underscores.
访问函数:
QString | identifier() const |
void | setIdentifier(const QString &identifier) |
成员函数
QWinJumpList::QWinJumpList(QObject *parent = Q_NULLPTR)
Constructs a QWinJumpList with the parent object parent.
QWinJumpList::~QWinJumpList()
Destroys the QWinJumpList.
void QWinJumpList::addCategory(QWinJumpListCategory *category)
Adds a custom category to the jump list.
QWinJumpListCategory *QWinJumpList::addCategory(const QString &title, const QList<QWinJumpListItem *> items = QList<QWinJumpListItem *> ())
This function overloads addCategory().
Creates a custom category with provided title and optional items, and adds it to the jump list.
QList<QWinJumpListCategory *> QWinJumpList::categories() const
Returns the custom categories in the jump list.
[slot]
void QWinJumpList::clear()
Clears the jump list.
参见 QWinJumpListCategory::clear().
QWinJumpListCategory *QWinJumpList::frequent() const
Returns the frequent items category in the jump list.
QWinJumpListCategory *QWinJumpList::recent() const
Returns the recent items category in the jump list.
QWinJumpListCategory *QWinJumpList::tasks() const
Returns the tasks category in the jump list.