IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QWinJumpListCategory Class

The QWinJumpListCategory class represents a jump list category.

This class was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWinJumpListCategory Class

  • Header: QWinJumpListCategory

  • Since: Qt 5.2

  • qmake: QT += winextras

Detailed Description

 

Member Type Documentation

 

enum QWinJumpListCategory::Type

This enum describes the available QWinJumpListCategory types.

Constant

Value

Description

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.

Member Function Documentation

 

[explicit] QWinJumpListCategory::QWinJumpListCategory(const QString &title = QString())

Constructs a custom QWinJumpListCategory with the specified title.

QWinJumpListCategory::~QWinJumpListCategory()

Destroys the QWinJumpListCategory.

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

Adds a destination to the category pointing to filePath.

void QWinJumpListCategory::addItem(QWinJumpListItem *item)

Adds an item to the category.

QWinJumpListItem *QWinJumpListCategory::addLink(const QString &title, const QString &executablePath, const QStringList &arguments = QStringList())

QWinJumpListItem *QWinJumpListCategory::addLink(const QIcon &icon, const QString &title, const QString &executablePath, const QStringList &arguments = QStringList())

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::items() const

Returns the list of items in the category.

void QWinJumpListCategory::setTitle(const QString &title)

Sets the category title.

See Also

See also title()

void QWinJumpListCategory::setVisible(bool visible)

Sets the category visible.

See Also

See also isVisible()

QString QWinJumpListCategory::title() const

Returns the category title.

See Also

See also setTitle()

QWinJumpListCategory::Type QWinJumpListCategory::type() const

Returns the category type.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+