Make the second line of the device a bit smaller on Linux again

This commit is contained in:
David Sansome 2010-08-30 14:47:30 +00:00
parent e4efa8a93e
commit 30911ba1ad

View File

@ -56,7 +56,12 @@ void DeviceItemDelegate::paint(QPainter* p, const QStyleOptionViewItem& opt, con
// Font for the status line
QFont status_font(opt.font);
#ifdef Q_OS_WIN32
status_font.setPointSize(status_font.pointSize() - 1);
#else
status_font.setPointSize(status_font.pointSize() - 2);
#endif
const int text_height = QFontMetrics(opt.font).height() +
QFontMetrics(status_font).height();