Skip to content

Commit

Permalink
Fixed build with Qt versions before 5.2.
Browse files Browse the repository at this point in the history
Breakage from bb9e1e6 due to
Qt::AA_UseHighDpiPixmaps not being available for older versions of Qt.
  • Loading branch information
jaakristioja committed Aug 6, 2015
1 parent 09bd981 commit eb2a1c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bibletimeapp.cpp
Expand Up @@ -11,6 +11,7 @@

#include <QDebug>
#include <QPainter>
#include <QtGlobal>
#include "frontend/messagedialog.h"
#include "backend/config/btconfig.h"
#include "backend/managers/cswordbackend.h"
Expand All @@ -25,8 +26,11 @@ BibleTimeApp::BibleTimeApp(int &argc, char **argv)
{
setApplicationName("bibletime");
setApplicationVersion(BT_VERSION);

// Support for retina displays
#if QT_VERSION >= 0x050200
this->setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
}

BibleTimeApp::~BibleTimeApp() {
Expand Down

0 comments on commit eb2a1c9

Please sign in to comment.