Skip to content

Commit aebd6a9

Browse files
committed
remove jumplist window -> to buggy...
1 parent 6481012 commit aebd6a9

File tree

3 files changed

+0
-30
lines changed

3 files changed

+0
-30
lines changed

AutoUpdaterGui/updatecontroller.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
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-
9167
QString UpdateController::maintenanceToolPath() const
9268
{
9369
const Q_D(UpdateController);

AutoUpdaterGui/updatecontroller.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

Tests/WidgetsTest/mainwindow.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)