OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dc9cee
)
inline getFCWeight() function
author
Ivailo Monev
<xakepa10@laimg.moc>
Fri, 13 Dec 2019 11:47:29 +0000
(11:47 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Fri, 13 Dec 2019 11:47:29 +0000
(11:47 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/text/qfontdatabase_x11.h
patch
|
blob
|
history
diff --git
a/src/gui/text/qfontdatabase_x11.h
b/src/gui/text/qfontdatabase_x11.h
index
b970246
..
afebbdf
100644
(file)
--- a/
src/gui/text/qfontdatabase_x11.h
+++ b/
src/gui/text/qfontdatabase_x11.h
@@
-146,8
+146,7
@@
static const char * xlfd_for_id(int id)
#endif
#ifndef QT_NO_FONTCONFIG
-
-static int getFCWeight(int fc_weight)
+static inline int getFCWeight(int fc_weight)
{
int qtweight = QFont::Black;
if (fc_weight <= (FC_WEIGHT_LIGHT + FC_WEIGHT_MEDIUM) / 2)