~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/shortcutmanager.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-04-14 18:57:30 UTC
  • mfrom: (2.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080414185730-528re3zp0m2hdlhi
Tags: 0.11-8
* added CONFIG -= link_prl to .pro files and removed dependencies
  which are made unnecessary by this change
* Fix segfault when closing last chat tab with qt4.4
  (This is from upstream svn, rev. 1101) (Closes: Bug#476122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SHORTCUTMANAGER_H
 
2
#define SHORTCUTMANAGER_H
 
3
 
 
4
#include <QObject>
 
5
#include <QList>
 
6
 
 
7
class QKeySequence;
 
8
class QString;
 
9
 
 
10
class ShortcutManager : public QObject
 
11
{
 
12
public:
 
13
        static ShortcutManager* instance();
 
14
        static void connect(const QString& path, QObject *parent, const char* slot);
 
15
        QKeySequence shortcut(const QString& name);
 
16
        QList<QKeySequence> shortcuts(const QString& name);
 
17
 
 
18
private:
 
19
        ShortcutManager();
 
20
        static ShortcutManager* instance_;
 
21
};
 
22
 
 
23
#endif