Do not add this for other then windows (nw)

This commit is contained in:
Miodrag Milanovic 2015-12-27 13:51:16 +01:00
parent 4810f2e98e
commit fd21d7accb

View File

@ -34,7 +34,10 @@
#include "qt/deviceswindow.h" #include "qt/deviceswindow.h"
#include "qt/deviceinformationwindow.h" #include "qt/deviceinformationwindow.h"
class debug_qt : public osd_module, public debug_module, public QAbstractNativeEventFilter class debug_qt : public osd_module, public debug_module
#if defined(WIN32) && !defined(SDLMAME_WIN32)
, public QAbstractNativeEventFilter
#endif
{ {
public: public:
debug_qt() debug_qt()
@ -51,7 +54,9 @@ public:
virtual void init_debugger(running_machine &machine); virtual void init_debugger(running_machine &machine);
virtual void wait_for_debugger(device_t &device, bool firststop); virtual void wait_for_debugger(device_t &device, bool firststop);
virtual void debugger_update(); virtual void debugger_update();
#if defined(WIN32) && !defined(SDLMAME_WIN32)
virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *) Q_DECL_OVERRIDE; virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *) Q_DECL_OVERRIDE;
#endif
private: private:
running_machine *m_machine; running_machine *m_machine;
}; };
@ -233,7 +238,7 @@ static void bring_main_window_to_front()
#if defined(WIN32) && !defined(SDLMAME_WIN32) #if defined(WIN32) && !defined(SDLMAME_WIN32)
bool winwindow_qt_filter(void *message); bool winwindow_qt_filter(void *message);
bool debug_qt::nativeEventFilter(const QByteArray &eventType, void *message, long *) bool debug_qt::nativeEventFilter(const QByteArray &eventType, void *message, long *)
{ {
winwindow_qt_filter(message); winwindow_qt_filter(message);