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 @@ ...@@ -27,5 +27,9 @@
Units::Units (QObject *parent) : QObject(parent) {} Units::Units (QObject *parent) : QObject(parent) {}
float Units::getDp () const { float Units::getDp () const {
#ifdef Q_OS_MACOS
return 96.0 / 72.0;
#endif // ifdef Q_OS_MACOS
return 1.0; return 1.0;
} }
...@@ -30,15 +30,12 @@ ...@@ -30,15 +30,12 @@
class Units : public QObject { class Units : public QObject {
Q_OBJECT; Q_OBJECT;
Q_PROPERTY(float dp READ getDp NOTIFY dpChanged); Q_PROPERTY(float dp READ getDp CONSTANT);
public: public:
Units (QObject *parent = Q_NULLPTR); Units (QObject *parent = Q_NULLPTR);
~Units () = default; ~Units () = default;
signals:
void dpChanged ();
private: private:
float getDp () const; 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