--- Vago/trunk/Vago/main.cpp 2014/04/25 21:05:54 998 +++ Vago/trunk/Vago/main.cpp 2014/04/26 12:40:47 999 @@ -2,7 +2,7 @@ #ifdef USING_VM_TABLET_WARNING_FIX #include -void myMessageOutput(QtMsgType type, const char *msg); +void myMessageOutput(QtMsgType type, const QMessageLogContext &, const QString & str); #endif #include @@ -12,7 +12,7 @@ int main(int argc, char *argv[]) { #ifdef USING_VM_TABLET_WARNING_FIX - qInstallMsgHandler(myMessageOutput); + qInstallMessageHandler(myMessageOutput); #endif QApplication a(argc, argv); @@ -24,11 +24,14 @@ int main(int argc, char *argv[]) } #ifdef USING_VM_TABLET_WARNING_FIX -void myMessageOutput(QtMsgType type, const char *msg) +void myMessageOutput(QtMsgType type, const QMessageLogContext &, const QString & str) { + + const char * msg = str.toStdString().c_str(); + switch (type) { case QtWarningMsg: - if(QString(msg)=="QCocoaView handleTabletEvent: This tablet device is unknown (received no proximity event for it). Discarding event."){ // ignore this message + if(QString(msg)=="QNSView handleTabletEvent: This tablet device is unknown (received no proximity event for it). Discarding event."){ // ignore this message return; } else{