diff options
author | Mateusz Łukasik <mati75@linuxmint.pl> | 2014-04-21 11:53:35 +0200 |
---|---|---|
committer | Mateusz Łukasik <mati75@linuxmint.pl> | 2014-04-21 11:53:35 +0200 |
commit | 2a117cc570574099839da41a5ae9fbb2a5ca9e55 (patch) | |
tree | 6107da409f9c7f07c0ffa0869a26a161b097aea7 /src/myaction.cpp | |
parent | aa68b7bd585a157e8952881e87e2c09de6ec742f (diff) |
Imported Upstream version 14.3.0
Diffstat (limited to 'src/myaction.cpp')
-rw-r--r-- | src/myaction.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/myaction.cpp b/src/myaction.cpp index 5a2dbe4..93311a2 100644 --- a/src/myaction.cpp +++ b/src/myaction.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net> + Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -57,6 +57,10 @@ MyAction::MyAction(QKeySequence accel, QObject * parent, const char * name, MyAction::~MyAction() { } +void MyAction::addShortcut(QKeySequence key) { + setShortcuts( shortcuts() << key); +} + void MyAction::addActionToParent() { if (parent()) { if (parent()->inherits("QWidget")) { |