profile: don't render mobile profile in printmode

There is no more reason to render the profile in printMode.
DPR is also supported in normal mode.

Moreover, don't scale the DPR down by fontScale. If we
have to scale down the fonts, we'll have to do this
differently without squeezing the rest of the profile
features.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-08-31 22:00:19 +02:00 committed by Dirk Hohndel
parent 9c7974928b
commit ae1758d4cd
2 changed files with 1 additions and 8 deletions

View file

@ -9,8 +9,6 @@
#include <QScreen>
#include <QElapsedTimer>
const double fontScale = 0.6; // profile looks less cluttered with smaller font
QMLProfile::QMLProfile(QQuickItem *parent) :
QQuickPaintedItem(parent),
m_devicePixelRatio(1.0),
@ -33,7 +31,7 @@ QMLProfile::~QMLProfile()
void QMLProfile::createProfileView()
{
m_profileWidget.reset(new ProfileScene(fontScale * m_devicePixelRatio, true, false));
m_profileWidget.reset(new ProfileScene(m_devicePixelRatio, false, false));
}
// we need this so we can connect update() to the scaleChanged() signal - which the connect above cannot do