repo.or.cz
/
GPXSee.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge remote-tracking branch 'weblate/master'
[GPXSee.git]
/
src
/
GUI
/
infolabel.cpp
blob
a280bad3767f05d249d9e1ebe6897d3b981181de
1
#include <QtGlobal>
2
#include
"infolabel.h"
3
4
InfoLabel
::
InfoLabel
(
const
QString
&
text
,
QWidget
*
parent
)
5
:
QLabel
(
text
,
parent
)
6
{
7
QFont
f
(
font
());
8
#ifdef Q_OS_MAC
9
f
.
setPointSize
(
qMax
(
10
,
f
.
pointSize
() -
2
));
10
#else
// Q_OS_MAC
11
f
.
setPointSize
(
f
.
pointSize
() -
1
);
12
#endif
// Q_OS_MAC
13
setWordWrap
(
true
);
14
setFont
(
f
);
15
}