aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-05-09 13:10:25 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-05-09 13:10:25 +0000
commitb36fdd1aec78f756bc45b206fbcd06d6d7ea82d4 (patch)
treeb551bf76f78550c48ea129bea1bfa46c969cf51e /src
parent444f8f6abd0644c4ef03bbaddae11706e238a81f (diff)
downloadqmmp-b36fdd1aec78f756bc45b206fbcd06d6d7ea82d4.tar.gz
qmmp-b36fdd1aec78f756bc45b206fbcd06d6d7ea82d4.tar.bz2
qmmp-b36fdd1aec78f756bc45b206fbcd06d6d7ea82d4.zip
added shortcuts for library and history
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9991 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/plugins/General/history/history.cpp1
-rw-r--r--src/plugins/General/library/library.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/General/history/history.cpp b/src/plugins/General/history/history.cpp
index 89f732f05..21ed05d36 100644
--- a/src/plugins/General/history/history.cpp
+++ b/src/plugins/General/history/history.cpp
@@ -55,6 +55,7 @@ History::History(QObject *parent) : QObject(parent)
}
QAction *action = new QAction(tr("History"), this);
+ action->setShortcut(tr("Alt+H"));
action->setIcon(QIcon::fromTheme("text-x-generic"));
UiHelper::instance()->addAction(action, UiHelper::TOOLS_MENU);
connect(action, SIGNAL(triggered()), SLOT(showHistoryWindow()));
diff --git a/src/plugins/General/library/library.cpp b/src/plugins/General/library/library.cpp
index 788c82811..f9ac5d9ed 100644
--- a/src/plugins/General/library/library.cpp
+++ b/src/plugins/General/library/library.cpp
@@ -63,6 +63,7 @@ Library::Library(QPointer<LibraryWidget> *libraryWidget, QObject *parent) :
m_dirs = settings.value("Library/dirs").toStringList();
m_showAction = new QAction(QIcon::fromTheme("text-x-generic"), tr("Library"), this);
+ m_showAction->setShortcut(tr("Alt+L"));
UiHelper::instance()->addAction(m_showAction, UiHelper::TOOLS_MENU);
connect(m_showAction, SIGNAL(triggered()), SLOT(showLibraryWindow()));
if(!m_libraryWidget->isNull() && !m_libraryWidget->data()->isWindow())