1 #ifndef MUSICHOTKEYMANAGER_H
2 #define MUSICHOTKEYMANAGER_H
37 void addHotKey(QObject *
object);
41 void addHotKey(QObject *
object,
const char *slot);
45 void addHotKey(QObject *
object,
const QString &
key,
const char *slot);
50 void setHotKey(
int index,
const QString &key);
54 QObject* hotKey(
int index);
64 void setEnabled(
bool enabled);
68 void setEnabled(
int index,
bool enabled);
72 bool isEnabled(
int index);
77 QString
toString(
int key,
int modifiers);
86 QStringList defaultKeys()
const;
90 QStringList keys()
const;
99 #define G_HOTKEY_PTR makeMusicHotKeyManager()
102 #endif // MUSICHOTKEYMANAGER_H
#define TTK_MODULE_EXPORT
static constexpr wchar_t key[]
QList< QGlobalShortcut * > m_hotkeys
TTK_MODULE_EXPORT MusicHotKeyManager * makeMusicHotKeyManager()
#define TTK_DECLARE_SINGLETON_CLASS(Class)
// Singleton Macro // //
#define TTK_DECLARE_MODULE(Class)
The class of the global hotkey setting manager.
TTK_MODULE_EXPORT QString toString(Record type)
The class of the qglobal shortcut.