QWinJumpListItem Class▲
-
Header: QWinJumpListItem
-
Since: Qt 5.2
-
qmake: QT += winextras
Detailed Description▲
Member Type Documentation▲
enum QWinJumpListItem::Type▲
This enum describes the available QWinJumpListItem types.
Constant |
Value |
Description |
---|---|---|
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. |
Member Function Documentation▲
[explicit] QWinJumpListItem::QWinJumpListItem(QWinJumpListItem::Type type)▲
Constructs a QWinJumpListItem with the specified type.
QWinJumpListItem::~QWinJumpListItem()▲
Destroys the QWinJumpListItem.
QStringList QWinJumpListItem::arguments() const▲
QString QWinJumpListItem::description() const▲
QString QWinJumpListItem::filePath() const▲
QIcon QWinJumpListItem::icon() const▲
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.
See Also▲
See also arguments(), setFilePath()
void QWinJumpListItem::setDescription(const QString &description)▲
Sets a description for this item.
This value is used only if the type of this item is QWinJumpListItem::Link.
See Also▲
See also description()
void QWinJumpListItem::setFilePath(const QString &filePath)▲
Sets the item filePath, the meaning of which depends on the type of this item:
-
If the item type is QWinJumpListItem::Destination, filePath is the path to a file that can be opened by an application.
-
If the item type is QWinJumpListItem::Link, filePath is the path to an executable that is executed when this item is clicked by the user.
See Also▲
See also filePath(), setWorkingDirectory(), setArguments()
void QWinJumpListItem::setIcon(const QIcon &icon)▲
Sets the icon of this item.
This value is used only if the type of this item is QWinJumpListItem::Link.
See Also▲
See also icon()
void QWinJumpListItem::setTitle(const QString &title)▲
Sets the title of this item.
This value is used only if the type of this item is QWinJumpListItem::Link.
See Also▲
See also title()
void QWinJumpListItem::setType(QWinJumpListItem::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.
See Also▲
See also workingDirectory(), setFilePath()