mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Merge pull request #1563 from oshi-shinobu/master
Added CTRL+L shortcut to clear download list
This commit is contained in:
commit
d864a14fa6
@ -33,6 +33,7 @@
|
|||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
#include <QShortcut>
|
||||||
|
|
||||||
DownloadManager::DownloadManager(QWidget* parent)
|
DownloadManager::DownloadManager(QWidget* parent)
|
||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
@ -54,6 +55,9 @@ DownloadManager::DownloadManager(QWidget* parent)
|
|||||||
|
|
||||||
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clearList()));
|
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clearList()));
|
||||||
|
|
||||||
|
QShortcut* clearShortcut = new QShortcut(QKeySequence("CTRL+L"), this);
|
||||||
|
connect(clearShortcut, SIGNAL(activated()), this, SLOT(clearList()));
|
||||||
|
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
|
||||||
QzTools::setWmClass("Download Manager", this);
|
QzTools::setWmClass("Download Manager", this);
|
||||||
|
Loading…
Reference in New Issue
Block a user