devicePixelRatio() was introduced in Qt-5.1.0

master
Marius Kintel 2014-05-31 15:52:08 -04:00
parent ca3ff7cf66
commit 1999898508
1 changed files with 1 additions and 1 deletions

View File

@ -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);