KShare/src/hotkeying.hpp

16 lines
377 B
C++
Raw Normal View History

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-04-26 22:00:13 +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());
2017-04-26 22:00:13 +02:00
QString sequence(QString seqName);
}
#endif // HOTKEYING_HPP