From 199989850863842c5ee8020b39f97216b1c07241 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 31 May 2014 15:52:08 -0400 Subject: [PATCH] devicePixelRatio() was introduced in Qt-5.1.0 --- src/QGLView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QGLView.h b/src/QGLView.h index e9ef0576..e06f5a79 100644 --- a/src/QGLView.h +++ b/src/QGLView.h @@ -39,7 +39,7 @@ public: else this->cam.projection = Camera::PERSPECTIVE; } std::string getRendererInfo() const; -#if QT_VERSION >= 0x050001 +#if QT_VERSION >= 0x050100 float getDPI() { return this->devicePixelRatio(); } #endif bool save(const char *filename);