QWinJumpListCategory 类

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 *> () const
void setTitle (const QString & title )
void setVisible (bool visible )
QString title () const
QWinJumpListCategory::Type type () const

详细描述

成员类型文档编制

enum QWinJumpListCategory:: Type

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.

成员函数文档编制

QWinJumpListCategory:: QWinJumpListCategory (const QString & title = QString())

Constructs a custom QWinJumpListCategory with the specified title .

QWinJumpListCategory:: ~QWinJumpListCategory ()

销毁 QWinJumpListCategory .

QWinJumpListItem *QWinJumpListCategory:: addDestination (const QString & filePath )

Adds a destination to the category pointing to filePath .

void QWinJumpListCategory:: addItem ( QWinJumpListItem * item )

添加 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 .

QWinJumpListItem *QWinJumpListCategory:: addSeparator ()

Adds a separator to the category.

注意: Only tasks category supports separators.

void QWinJumpListCategory:: clear ()

Clears the category.

int QWinJumpListCategory:: count () const

Returns the amount of items in the category.

bool QWinJumpListCategory:: isEmpty () const

Returns whether the category is empty.

bool QWinJumpListCategory:: isVisible () const

Returns whether the category is visible.

QList < QWinJumpListItem *> QWinJumpListCategory:: () const

Returns the list of items in the category.

void QWinJumpListCategory:: setTitle (const QString & title )

Sets the category title .

另请参阅 title ().

void QWinJumpListCategory:: setVisible ( bool visible )

Sets the category visible .

另请参阅 isVisible ().

QString QWinJumpListCategory:: title () const

Returns the category title.

另请参阅 setTitle ().

QWinJumpListCategory::Type QWinJumpListCategory:: type () const

Returns the category type.