Copy contents of selected cell from card database when ctrl-c is pressed, mimicking the behavior of ctrl-c in the deck editor.
29 lines
515 B
C++
29 lines
515 B
C++
#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:
|
|
virtual bool eventFilter(QObject *, QEvent *event);
|
|
};
|
|
|
|
#endif
|