core: remove DPR from IconMetrics class

There is no user of this left, because the device-pixel-ratio
is now passed directly to the profile.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-08-31 09:27:29 +02:00 committed by Dirk Hohndel
parent 5f22de7ebe
commit 9e831c5001
3 changed files with 1 additions and 11 deletions

View file

@ -11,7 +11,6 @@
#include <QFont>
#include <QFontMetrics>
#include <QSize>
QFont defaultModelFont();
QFontMetrics defaultModelFontMetrics();
@ -27,11 +26,9 @@ struct IconMetrics {
// icon spacing
int spacing; // ex 2px
// devicePixelRatio
double dpr; // 1.0 for traditional screens, HiDPI screens up to 3.0
IconMetrics();
};
const IconMetrics &defaultIconMetrics();
void updateDevicePixelRatio(double dpr);
#endif // METRICS_H