diff options
Diffstat (limited to 'qt-ui/profile/divetextitem.cpp')
-rw-r--r-- | qt-ui/profile/divetextitem.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/profile/divetextitem.cpp b/qt-ui/profile/divetextitem.cpp index 582cc4070..4d8687626 100644 --- a/qt-ui/profile/divetextitem.cpp +++ b/qt-ui/profile/divetextitem.cpp @@ -1,5 +1,6 @@ #include "divetextitem.h" #include "animationfunctions.h" +#include "mainwindow.h" #include <QPropertyAnimation> #include <QApplication> @@ -61,11 +62,11 @@ void DiveTextItem::updateText() QFont fnt(qApp->font()); if ((size = fnt.pixelSize()) > 0) { // set in pixels - so the scale factor may not make a difference if it's too close to 1 - size *= scale; + size *= scale * MainWindow::instance()->graphics()->getFontPrintScale(); fnt.setPixelSize(size); } else { size = fnt.pointSizeF(); - size *= scale; + size *= scale * MainWindow::instance()->graphics()->getFontPrintScale();; fnt.setPointSizeF(size); } QFontMetrics fm(fnt); |