QWinJumpListCategory 類錶示跳轉列錶類彆。 更多...
| 頭: | #include <QWinJumpListCategory> |
| qmake: | QT += winextras |
| Since: | Qt 5.2 |
該類已過時。 提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
該類在 Qt 5.2 引入。
| enum | Type { Custom, Recent, Frequent, Tasks } |
| QWinJumpListCategory (const QString & title = QString()) | |
| ~QWinJumpListCategory () | |
| QWinJumpListItem * | addDestination (const QString & filePath ) |
| void | addItem (QWinJumpListItem * item ) |
| QWinJumpListItem * | addLink (const QString & title , const QString & executablePath , const QStringList & arguments = QStringList()) |
| QWinJumpListItem * | addLink (const QIcon & icon , const QString & title , const QString & executablePath , const QStringList & arguments = QStringList()) |
| QWinJumpListItem * | addSeparator () |
| void | clear () |
| int | count () const |
| bool | isEmpty () const |
| bool | isVisible () const |
| QList<QWinJumpListItem *> | items () const |
| void | setTitle (const QString & title ) |
| void | setVisible (bool visible ) |
| QString | title () const |
| QWinJumpListCategory::Type | type () const |
This enum describes the available QWinJumpListCategory 類型。
| 常量 | 值 | 描述 |
|---|---|---|
QWinJumpListCategory::Custom
|
0
|
A custom jump list category. |
QWinJumpListCategory::Recent
|
1
|
A jump list category of "recent" items. |
QWinJumpListCategory::Frequent
|
2
|
A jump list category of "frequent" items. |
QWinJumpListCategory::Tasks
|
3
|
A jump list category of tasks. |
Constructs a custom QWinJumpListCategory with the specified title .
銷毀 QWinJumpListCategory .
Adds a destination to the category pointing to filePath .
添加 item to the category.
Adds a link to the category using title , executablePath , and optionally arguments .
This function overloads addLink().
Adds a link to the category using icon , title , executablePath , and optionally arguments .
Adds a separator to the category.
注意: Only tasks category supports separators.
Clears the category.
Returns the amount of items in the category.
Returns whether the category is empty.
Returns whether the category is visible.
Returns the list of items in the category.
Sets the category title .
另請參閱 title ().
Sets the category visible .
另請參閱 isVisible ().
Returns the category title.
另請參閱 setTitle ().
Returns the category type.