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 & 描述 )
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 & 描述 )

設置 描述 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 ().