Fixed QT mingw cross compile with QT4.8

This commit is contained in:
xawotihs
2013-12-15 00:26:04 +01:00
parent 4765890d0a
commit 95805ea387

View File

@@ -136,8 +136,20 @@ signals:
private slots:
private:
int lastPosx(){ return m_lastPos.x()*devicePixelRatio();}
int lastPosy(){ return m_lastPos.y()*devicePixelRatio();}
int lastPosx(){
#if QT_VERSION >= 0x050000
return m_lastPos.x()*devicePixelRatio();
#else
return m_lastPos.x();
#endif
}
int lastPosy(){
#if QT_VERSION >= 0x050000
return m_lastPos.y()*devicePixelRatio();
#else
return m_lastPos.y();
#endif
}
void timerEvent( QTimerEvent* );
void doAndEnqueue(JButton action) {
m_engine->HoldKey_NoRepeat(action);