QMLProfile: correctly track the device pixel ratio

And set the font size accordingly.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-08 19:33:19 -08:00
parent 7f99d9e9c3
commit f798132862
2 changed files with 12 additions and 1 deletions

View file

@ -24,11 +24,13 @@ public:
public slots:
void setMargin(int margin);
void screenChanged(QScreen *screen);
private:
QString m_diveId;
qreal m_devicePixelRatio;
int m_margin;
ProfileWidget2 *m_profileWidget;
signals:
void rightAlignedChanged();
void diveIdChanged();