2017-04-26 22:00:13 +02:00
|
|
|
#ifndef HOTKEYING_HPP
|
|
|
|
#define HOTKEYING_HPP
|
|
|
|
|
|
|
|
#include <QKeySequence>
|
|
|
|
#include <QString>
|
|
|
|
#include <functional>
|
|
|
|
|
2017-05-06 13:21:12 +02:00
|
|
|
namespace hotkeying {
|
2017-10-05 19:21:52 +02:00
|
|
|
void hotkey(QString seqName, QKeySequence seq, std::function<void()> func);
|
|
|
|
bool valid(QString seq);
|
|
|
|
void load(QString seqName, std::function<void()> func, QString def = QString());
|
|
|
|
QString sequence(QString seqName);
|
2017-04-26 22:00:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // HOTKEYING_HPP
|