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:
51a9e83
)
remove unused weightFromInteger() function
author
Ivailo Monev
<xakepa10@laimg.moc>
Sat, 27 Jun 2020 15:25:00 +0000
(15:25 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Sat, 27 Jun 2020 15:25:00 +0000
(15:25 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/text/qfontdatabase.cpp
patch
|
blob
|
history
diff --git
a/src/gui/text/qfontdatabase.cpp
b/src/gui/text/qfontdatabase.cpp
index
2b284f1
..
ec61944
100644
(file)
--- a/
src/gui/text/qfontdatabase.cpp
+++ b/
src/gui/text/qfontdatabase.cpp
@@
-107,21
+107,6
@@
static int getFontWeight(const QString &weightString)
return (int) QFont::Normal;
}
-// convert 0 ~ 1000 integer to QFont::Weight
-QFont::Weight weightFromInteger(int weight)
-{
- if (weight < 400)
- return QFont::Light;
- else if (weight < 600)
- return QFont::Normal;
- else if (weight < 700)
- return QFont::DemiBold;
- else if (weight < 800)
- return QFont::Bold;
- else
- return QFont::Black;
-}
-
struct QtFontEncoding
{
signed int encoding : 16;