mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-26 00:08:13 +00:00
fix(src/components/other/units/Units): provide same font size on mac os
This commit is contained in:
parent
865c595d3d
commit
53cd7ef3ff
2 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue