aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-11-17 03:02:41 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-11-17 03:02:41 +0100
commit65f4b479e19223dc93c34b9eec9ad65e6161cf65 (patch)
treefe393fcfefac247eb528f855e7666f440d049a74
parent8fe32f7b8120366b1aa3244a3b43430a81dbe96a (diff)
parent17b09a4f69a0af078e6caf91ffc830096cf0ba1c (diff)
Merge remote-tracking branch 'origin/5.12' into dev
-rw-r--r--src/winextras/doc/snippets/code/jumplist.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/winextras/doc/snippets/code/jumplist.cpp b/src/winextras/doc/snippets/code/jumplist.cpp
index 2527528..6f8221e 100644
--- a/src/winextras/doc/snippets/code/jumplist.cpp
+++ b/src/winextras/doc/snippets/code/jumplist.cpp
@@ -54,19 +54,16 @@ void foo()
{
//! [jumplist]
QWinJumpList jumplist;
- jumplist.begin();
- jumplist.setKnownCategoryShown(QWinJumpList::RecentCategory);
-
- jumplist.beginTasks();
+ QWinJumpListCategory *tasks = jumplist.tasks();
QWinJumpListItem *newProject = new QWinJumpListItem(QWinJumpListItem::Link);
newProject->setTitle(tr("Create new project"));
newProject->setFilePath(QDir::toNativeSeparators(QCoreApplication::applicationFilePath()));
newProject->setArguments(QStringList("--new-project"));
- jumplist.addItem(newProject);
+ tasks->addItem(newProject);
- jumplist.addLink(tr("Launch SDK Manager"), QDir::toNativeSeparators(QCoreApplication::applicationDirPath()) + "\\sdk-manager.exe");
+ tasks->addLink(tr("Launch SDK Manager"), QDir::toNativeSeparators(QCoreApplication::applicationDirPath()) + "\\sdk-manager.exe");
- jumplist.commit();
+ tasks->setVisible(true);
//! [jumplist]
}