aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization/qmpkeyboardwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simple-visualization/qmpkeyboardwindow.cpp')
-rw-r--r--simple-visualization/qmpkeyboardwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/simple-visualization/qmpkeyboardwindow.cpp b/simple-visualization/qmpkeyboardwindow.cpp
index a42a2e0..f2cc8b7 100644
--- a/simple-visualization/qmpkeyboardwindow.cpp
+++ b/simple-visualization/qmpkeyboardwindow.cpp
@@ -25,10 +25,10 @@ void qmpKeyboardWindow::onkeystatesupdate(int ch,int key,bool state)
void qmpKeyboardWindow::resetAll()
{for(int ch=0;ch<16;++ch)pw[ch]->reset();}
-void EventCallback::callBack(void* callerdata,void* userdata)
+void EventCallback::callBack(const void *callerdata,void* userdata)
{
- qmpKeyboardWindow *w=(qmpKeyboardWindow*)userdata;
- SEventCallBackData *cbd=(SEventCallBackData*)callerdata;
+ const qmpKeyboardWindow *w=(const qmpKeyboardWindow*)userdata;
+ const SEvent *cbd=(const SEvent*)callerdata;
if((cbd->type&0xF0)==0x80)
emit keystateupdated(cbd->type&0xF,cbd->p1,false);
if((cbd->type&0xF0)==0x90)