Commit 53cd7ef3 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/components/other/units/Units): provide same font size on mac os

parent 865c595d
......@@ -27,5 +27,9 @@
Units::Units (QObject *parent) : QObject(parent) {}
float Units::getDp () const {
#ifdef Q_OS_MACOS
return 96.0 / 72.0;
#endif // ifdef Q_OS_MACOS
return 1.0;
}
......@@ -30,15 +30,12 @@
class Units : public QObject {
Q_OBJECT;
Q_PROPERTY(float dp READ getDp NOTIFY dpChanged);
Q_PROPERTY(float dp READ getDp CONSTANT);
public:
Units (QObject *parent = Q_NULLPTR);
~Units () = default;
signals:
void dpChanged ();
private:
float getDp () const;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment