File tree Expand file tree Collapse file tree 3 files changed +0
-30
lines changed
Expand file tree Collapse file tree 3 files changed +0
-30
lines changed Original file line number Diff line number Diff line change 22#include " updatecontroller_p.h"
33#include < QProgressBar>
44#include < QCoreApplication>
5- #ifdef Q_OS_WIN
6- #include < QDir>
7- #include < QStandardPaths>
8- #include < QWinJumpList>
9- #include < QWinJumpListCategory>
10- #endif
115#include < updatescheduler.h>
126#include " messagemaster.h"
137#include " adminauthorization.h"
@@ -70,24 +64,6 @@ QWidget *UpdateController::createUpdatePanel(QWidget *parentWidget)
7064 return new UpdatePanel (this , parentWidget);
7165}
7266
73- #ifdef Q_OS_WIN
74- void UpdateController::createJumplistEntry ()
75- {
76- Q_D (UpdateController);
77- QWinJumpList jumplist;
78- jumplist.tasks ()->clear ();
79- if (d->runAdmin ) {
80- qWarning (" Jumplist creation for admin is not supported right now!\n "
81- " The created shortcut will run as user only" );
82- }
83- jumplist.tasks ()->addLink (tr (" Check for updates" ),
84- QDir (QCoreApplication::applicationDirPath ())
85- .absoluteFilePath (d->mainUpdater ->maintenanceToolPath ()),
86- d->runArgs );
87- jumplist.tasks ()->setVisible (true );
88- }
89- #endif
90-
9167QString UpdateController::maintenanceToolPath () const
9268{
9369 const Q_D (UpdateController);
Original file line number Diff line number Diff line change @@ -54,10 +54,6 @@ namespace QtAutoUpdater
5454 QAction *createUpdateAction (QObject *parent);
5555 // ! Creates a new "UpdatePanel" widget to place in your GUI
5656 QWidget *createUpdatePanel (QWidget *parentWidget);
57- #ifdef Q_OS_WIN
58- void createJumplistEntry ();
59- #endif
60- // TODO add jumplist entry creation for windows and dock item creation for mac
6157
6258 // ! READ-Accessor for UpdateController::maintenanceToolPath
6359 QString maintenanceToolPath () const ;
Original file line number Diff line number Diff line change @@ -84,8 +84,6 @@ void MainWindow::on_activeBox_toggled(bool checked)
8484 this ->statusBar ()->showMessage (running ? " running" : " not running" );
8585 });
8686 this ->ui ->buttonLayout ->addWidget (this ->controller ->createUpdatePanel (this ));
87-
88- this ->controller ->createJumplistEntry ();
8987 } else {
9088 this ->controller ->deleteLater ();
9189 this ->controller = NULL ;
You can’t perform that action at this time.
0 commit comments