diff options
author | Marius Kintel <marius@kintel.net> | 2014-02-05 06:01:51 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2014-02-05 06:01:51 (GMT) |
commit | 57e2ecd7b5fd64c7a325ea8816c6f0df4dd63e08 (patch) | |
tree | 3aae1e36bbc50f61799d00f3954ce1946f150b7f | |
parent | 2315524505900916011bd69667746803b702db6e (diff) |
ifdef Qt5 method
-rw-r--r-- | src/QGLView.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/QGLView.h b/src/QGLView.h index 7bd6415..402a5d4 100644 --- a/src/QGLView.h +++ b/src/QGLView.h @@ -40,7 +40,9 @@ public: else this->cam.projection = Camera::PERSPECTIVE; } std::string getRendererInfo() const; +#if QT_VERSION >= 0x050000 float getDPI() { return this->devicePixelRatio(); } +#endif bool save(const char *filename); void resetView(); |