The QWinJumpListItem class represents a jump list item. 更多...
| 頭: | #include <QWinJumpListItem> |
| qmake: | QT += winextras |
| Since: | Qt 5.2 |
| enum | Type { Destination, Link, Separator } |
| QWinJumpListItem (Type type ) | |
| ~QWinJumpListItem () | |
| QStringList | arguments () const |
| QString | description () const |
| QString | filePath () const |
| QIcon | icon () const |
| void | setArguments (const QStringList & arguments ) |
| void | setDescription (const QString & 描述 ) |
| void | setFilePath (const QString & filePath ) |
| void | setIcon (const QIcon & icon ) |
| void | setTitle (const QString & title ) |
| void | setType (Type type ) |
| void | setWorkingDirectory (const QString & workingDirectory ) |
| QString | title () const |
| 類型 | type () const |
| QString | workingDirectory () const |
The QWinJumpListItem class represents a jump list item.
This enum describes the available QWinJumpListItem 類型。
| 常量 | 值 | 描述 |
|---|---|---|
QWinJumpListItem::Destination
|
0
|
Item acts as a link to a file that the application can open. |
QWinJumpListItem::Link
|
1
|
Item represents a link to an application. |
QWinJumpListItem::Separator
|
2
|
Item is a separator. Only tasks category supports separators. |
構造 QWinJumpListItem 采用指定 type .
銷毀 QWinJumpListItem .
Returns the command-line arguments of this item.
另請參閱 setArguments ().
返迴此項的描述。
另請參閱 setDescription ().
Returns the file path set by setFilePath ().
另請參閱 setFilePath ().
Returns the icon set for this item.
另請參閱 setIcon ().
Sets command-line arguments for this item.
This value is used only if the type of this item is QWinJumpListItem::Link .
另請參閱 arguments () 和 setFilePath ().
設置 描述 for this item.
This value is used only if the type of this item is QWinJumpListItem::Link .
另請參閱 description ().
設置項 filePath , the meaning of which depends on the type of this item:
另請參閱 filePath (), setWorkingDirectory (),和 setArguments ().
設置 icon 為此項。
This value is used only if the type of this item is QWinJumpListItem::Link .
另請參閱 icon ().
設置 title 為此項。
This value is used only if the type of this item is QWinJumpListItem::Link .
另請參閱 title ().
設置項 type .
另請參閱 type ().
Sets the path to the working directory of this item to workingDirectory .
This value is used only if the type of this item is QWinJumpListItem::Link .
另請參閱 workingDirectory () 和 setFilePath ().
Returns the title of this item.
另請參閱 setTitle ().
Returns the item type.
另請參閱 setType ().
Returns the working directory path.
另請參閱 setWorkingDirectory ().