diff --git a/src/libtomahawk/utils/DpiScaler.cpp b/src/libtomahawk/utils/DpiScaler.cpp index 4afbf822b..140095ce7 100644 --- a/src/libtomahawk/utils/DpiScaler.cpp +++ b/src/libtomahawk/utils/DpiScaler.cpp @@ -22,7 +22,11 @@ namespace TomahawkUtils { - +#ifdef Q_OS_MAC + const qreal DpiScaler::s_baseDpi = 72.; +#else + const qreal DpiScaler::s_baseDpi = 96.; +#endif DpiScaler::DpiScaler( const QPaintDevice* that ) : that( that ) diff --git a/src/libtomahawk/utils/DpiScaler.h b/src/libtomahawk/utils/DpiScaler.h index 640d38c99..0876e718a 100644 --- a/src/libtomahawk/utils/DpiScaler.h +++ b/src/libtomahawk/utils/DpiScaler.h @@ -64,11 +64,7 @@ private: const QPaintDevice* that; -#ifdef Q_OS_MAC - static const qreal s_baseDpi = 72.; -#else - static const qreal s_baseDpi = 96.; -#endif + static const qreal s_baseDpi; }; }