1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-24 16:31:22 +01:00

Add keyboard shortcut to close queue manager.

This commit is contained in:
John Maguire 2010-12-14 17:43:03 +00:00
parent 6257b29629
commit 74b745366b

View File

@ -23,6 +23,9 @@
#include "ui_queuemanager.h"
#include "ui/iconloader.h"
#include <QKeySequence>
#include <QShortcut>
QueueManager::QueueManager(QWidget *parent)
: QDialog(parent),
ui_(new Ui_QueueManager),
@ -41,6 +44,9 @@ QueueManager::QueueManager(QWidget *parent)
connect(ui_->move_down, SIGNAL(clicked()), SLOT(MoveDown()));
connect(ui_->move_up, SIGNAL(clicked()), SLOT(MoveUp()));
connect(ui_->clear, SIGNAL(clicked()), SLOT(Clear()));
QShortcut* close = new QShortcut(QKeySequence("Ctrl+w"), this);
connect(close, SIGNAL(activated()), SLOT(close()));
}
QueueManager::~QueueManager() {