mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
* Move logger and key signals from libcockatrice_utility to Cockatrice. Took 9 minutes * Only link Qt::Core instead of COCKATRICE_QT_MODULES to libraries, if possible. Took 2 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
36 lines
611 B
C++
36 lines
611 B
C++
/**
|
|
* @file key_signals.h
|
|
* @ingroup Core
|
|
* @ingroup UI
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef KEYSIGNALS_H
|
|
#define KEYSIGNALS_H
|
|
|
|
#include <QEvent>
|
|
#include <QObject>
|
|
|
|
class KeySignals : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
void onEnter();
|
|
void onCtrlEnter();
|
|
void onCtrlAltEnter();
|
|
void onShiftLeft();
|
|
void onShiftRight();
|
|
void onDelete();
|
|
void onCtrlAltMinus();
|
|
void onCtrlAltEqual();
|
|
void onCtrlAltLBracket();
|
|
void onCtrlAltRBracket();
|
|
void onShiftS();
|
|
void onCtrlC();
|
|
|
|
protected:
|
|
bool eventFilter(QObject *, QEvent *event) override;
|
|
};
|
|
|
|
#endif
|