Skip to content

Commit

Permalink
Refactor|libshell: Derived shell::Action from de::Action
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 13, 2013
1 parent 27f9a3f commit 2bc44f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/libshell/include/de/shell/action.h
Expand Up @@ -20,6 +20,7 @@
#define LIBSHELL_ACTION_H

#include "KeyEvent"
#include <de/Action>
#include <QObject>

namespace de {
Expand All @@ -28,7 +29,7 @@ namespace shell {
/**
* Maps a key event to a signal.
*/
class Action : public QObject
class Action : public QObject, public de::Action
{
Q_OBJECT

Expand Down
1 change: 1 addition & 0 deletions doomsday/libshell/src/action.cpp
Expand Up @@ -76,6 +76,7 @@ bool Action::tryTrigger(KeyEvent const &ev)

void Action::trigger()
{
de::Action::trigger();
emit triggered();
}

Expand Down

0 comments on commit 2bc44f9

Please sign in to comment.