QWinJumpListItem 类

The QWinJumpListItem class represents a jump list item. 更多...

头: #include <QWinJumpListItem>
qmake: QT += winextras
Since: Qt 5.2

公共类型

enum Type { Destination, Link, Separator }

公共函数

QWinJumpListItem (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 (QWinJumpListItem::Type type )
void setWorkingDirectory (const QString & workingDirectory )
QString title () const
QWinJumpListItem::Type type () const
QString workingDirectory () const

详细描述

The QWinJumpListItem class represents a jump list item.

成员类型文档编制

enum QWinJumpListItem:: Type

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:: QWinJumpListItem ( QWinJumpListItem::Type type )

构造 QWinJumpListItem 采用指定 type .

QWinJumpListItem:: ~QWinJumpListItem ()

销毁 QWinJumpListItem .

QStringList QWinJumpListItem:: arguments () const

Returns the command-line arguments of this item.

另请参阅 setArguments ().

QString QWinJumpListItem:: description () const

返回此项的描述。

另请参阅 setDescription ().

QString QWinJumpListItem:: filePath () const

Returns the file path set by setFilePath ().

另请参阅 setFilePath ().

QIcon QWinJumpListItem:: icon () const

Returns the icon set for this item.

另请参阅 setIcon ().

void QWinJumpListItem:: setArguments (const QStringList & arguments )

Sets command-line arguments for this item.

This value is used only if the type of this item is QWinJumpListItem::Link .

另请参阅 arguments () 和 setFilePath ().

void QWinJumpListItem:: setDescription (const QString & description )

设置 description for this item.

This value is used only if the type of this item is QWinJumpListItem::Link .

另请参阅 description ().

void QWinJumpListItem:: setFilePath (const QString & filePath )

设置项 filePath , the meaning of which depends on the type of this item:

另请参阅 filePath (), setWorkingDirectory (),和 setArguments ().

void QWinJumpListItem:: setIcon (const QIcon & icon )

设置 icon 为此项。

This value is used only if the type of this item is QWinJumpListItem::Link .

另请参阅 icon ().

void QWinJumpListItem:: setTitle (const QString & title )

设置 title 为此项。

This value is used only if the type of this item is QWinJumpListItem::Link .

另请参阅 title ().

void QWinJumpListItem:: setType ( QWinJumpListItem::Type type )

设置项 type .

另请参阅 type ().

void QWinJumpListItem:: setWorkingDirectory (const QString & workingDirectory )

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 ().

QString QWinJumpListItem:: title () const

Returns the title of this item.

另请参阅 setTitle ().

QWinJumpListItem::Type QWinJumpListItem:: type () const

Returns the item type.

另请参阅 setType ().

QString QWinJumpListItem:: workingDirectory () const

Returns the working directory path.

另请参阅 setWorkingDirectory ().