Fix compilation with qt5 and c++11 combined.

This commit is contained in:
Guillaume Munch 2015-08-24 21:05:48 +02:00 committed by Georg Baum
parent f921c2e8ec
commit d88e401589
2 changed files with 3 additions and 2 deletions

View File

@ -3085,7 +3085,7 @@ bool GuiApplication::x11EventFilter(XEvent * xev)
}
#elif defined(QPA_XCB)
bool GuiApplication::nativeEventFilter(const QByteArray & eventType,
void * message, long *) Q_DECL_OVERRIDE
void * message, long *)
{
if (!current_view_ || eventType != "xcb_generic_event_t")
return false;

View File

@ -108,7 +108,8 @@ public:
#ifdef Q_WS_X11
bool x11EventFilter(XEvent * ev);
#elif defined(QPA_XCB)
virtual bool nativeEventFilter(const QByteArray & eventType, void * message, long * result);
virtual bool nativeEventFilter(const QByteArray & eventType, void * message,
long * result) Q_DECL_OVERRIDE;
#endif
//@}