diff options
author | Gerald Combs <gerald@zing.org> | 2015-07-10 18:42:21 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-07-11 01:43:13 +0000 |
commit | c7dbc5a01b0bbcfb7df13a7fe7039fddedae0d4f (patch) | |
tree | fcf709b95d18c7c02fecbe8b42425fda0c35b4df /ui | |
parent | d564ea9bea6ba07ac601ca555609677b498845dd (diff) |
Set the font.
Change-Id: I97abd504727ef71bb29969f0a7555e17eaa70561
Reviewed-on: https://code.wireshark.org/review/9596
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/stock_icon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/stock_icon.cpp b/ui/qt/stock_icon.cpp index 8c6929fa1a..b13d908634 100644 --- a/ui/qt/stock_icon.cpp +++ b/ui/qt/stock_icon.cpp @@ -110,7 +110,8 @@ QIcon StockIcon::colorIcon(const QRgb bg_color, const QRgb fg_color, const QStri if (!glyph.isEmpty()) { QFont font(wsApp->font()); - font.setPointSizeF(size * 2.0 / 3.0); + font.setPointSizeF(size / 2.0); + painter.setFont(font); QRectF bounding = painter.boundingRect(pm.rect(), glyph, Qt::AlignHCenter | Qt::AlignVCenter); painter.drawText(bounding, glyph); } |