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 & description ) |
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 ().
设置 description 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 ().