~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/core/qxtglobalshortcutbackend.cpp

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include "globalshortcuts.h"
19
19
#include "qxtglobalshortcutbackend.h"
20
20
#include "qxtglobalshortcut.h"
 
21
#include "core/logging.h"
21
22
 
22
23
#include <QAction>
23
24
#include <QtDebug>
28
29
}
29
30
 
30
31
bool QxtGlobalShortcutBackend::DoRegister() {
31
 
  qDebug() << __PRETTY_FUNCTION__;
 
32
  qLog(Debug) << "registering";
32
33
  foreach (const GlobalShortcuts::Shortcut& shortcut, manager_->shortcuts().values()) {
33
34
    AddShortcut(shortcut.action);
34
35
  }
46
47
}
47
48
 
48
49
void QxtGlobalShortcutBackend::DoUnregister() {
49
 
  qDebug() << __PRETTY_FUNCTION__;
 
50
  qLog(Debug) << "unregistering";
50
51
  qDeleteAll(shortcuts_);
51
52
  shortcuts_.clear();
52
53
}