diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-05-26 15:55:28 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-05-26 15:55:28 +0800 |
commit | 7b03fd544837fbe0bc5a5373b60dfd5de50892e1 (patch) | |
tree | a343c4efea96295d60b6e4b7944b8fa23d118db0 /simple-visualization/qmpkeyboardwindow.hpp | |
parent | 3f72121ac41741d53e4916f1275cbd4f93259c4d (diff) | |
download | QMidiPlayer-7b03fd544837fbe0bc5a5373b60dfd5de50892e1.tar.xz |
Major code refactor continued and (mostly) concluded.
Removed all references to ICallback in official plugins.
New flag field in SEvent.
Further type usage corrections.
Diffstat (limited to 'simple-visualization/qmpkeyboardwindow.hpp')
-rw-r--r-- | simple-visualization/qmpkeyboardwindow.hpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/simple-visualization/qmpkeyboardwindow.hpp b/simple-visualization/qmpkeyboardwindow.hpp index 2b618fa..563b6b4 100644 --- a/simple-visualization/qmpkeyboardwindow.hpp +++ b/simple-visualization/qmpkeyboardwindow.hpp @@ -6,29 +6,21 @@ #include <QWidget> -class EventCallback:public QObject,public ICallBack -{ - Q_OBJECT - public: - void callBack(const void *callerdata,void *userdata); - signals: - void keystateupdated(int ch,int key,bool state); -}; - class qmpKeyboardWindow:public QWidget { Q_OBJECT - friend class EventCallback; private: qmpPianoWidget *pw[16]; qmpPluginAPI *api; - EventCallback *ec; + int eh; public: qmpKeyboardWindow(qmpPluginAPI *_api,QWidget *parent); ~qmpKeyboardWindow(); void resetAll(); protected: void closeEvent(QCloseEvent *event); + signals: + void keystateupdated(int ch,int key,bool state); public slots: void onkeystatesupdate(int ch,int key,bool state); }; |