mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-12-03 00:02:59 +08:00
25 lines
508 B
C
25 lines
508 B
C
|
#ifndef FLUHOTKEY_H
|
||
|
#define FLUHOTKEY_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QQuickItem>
|
||
|
#include "qhotkey/qhotkey.h"
|
||
|
#include "stdafx.h"
|
||
|
|
||
|
class FluHotkey : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
Q_PROPERTY_AUTO(QString,sequence)
|
||
|
Q_PROPERTY_AUTO(QString,name)
|
||
|
Q_PROPERTY_READONLY_AUTO(bool,isRegistered)
|
||
|
QML_NAMED_ELEMENT(FluHotkey)
|
||
|
public:
|
||
|
explicit FluHotkey(QObject *parent = nullptr);
|
||
|
~FluHotkey();
|
||
|
Q_SIGNAL void activated();
|
||
|
private:
|
||
|
QHotkey* _hotkey = nullptr;
|
||
|
};
|
||
|
|
||
|
#endif // FLUHOTKEY_H
|