Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
53cd7ef3
Commit
53cd7ef3
authored
Jun 08, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(src/components/other/units/Units): provide same font size on mac os
parent
865c595d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Units.cpp
linphone-desktop/src/components/other/units/Units.cpp
+4
-0
Units.hpp
linphone-desktop/src/components/other/units/Units.hpp
+1
-4
No files found.
linphone-desktop/src/components/other/units/Units.cpp
View file @
53cd7ef3
...
...
@@ -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
;
}
linphone-desktop/src/components/other/units/Units.hpp
View file @
53cd7ef3
...
...
@@ -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
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment