Fixed QT version needed for pixelRatio API
This commit is contained in:
@@ -137,14 +137,14 @@ private slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
int lastPosx(){
|
int lastPosx(){
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050100
|
||||||
return m_lastPos.x()*devicePixelRatio();
|
return m_lastPos.x()*devicePixelRatio();
|
||||||
#else
|
#else
|
||||||
return m_lastPos.x();
|
return m_lastPos.x();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
int lastPosy(){
|
int lastPosy(){
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050100
|
||||||
return m_lastPos.y()*devicePixelRatio();
|
return m_lastPos.y()*devicePixelRatio();
|
||||||
#else
|
#else
|
||||||
return m_lastPos.y();
|
return m_lastPos.y();
|
||||||
|
|||||||
Reference in New Issue
Block a user