mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +01:00
Added CTRL+l shortcut to clear download list
This commit is contained in:
parent
240cecb230
commit
af541a787e
|
@ -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