From: Flavio Tordini Date: Thu, 7 May 2015 10:15:49 +0000 (+0200) Subject: Use normal font X-Git-Tag: 2.5~81 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7df9640de207a1b3af70832ca4d100df4eab778f;p=minitube Use normal font --- diff --git a/src/segmentedcontrol.cpp b/src/segmentedcontrol.cpp index 27e6390..7ed895c 100644 --- a/src/segmentedcontrol.cpp +++ b/src/segmentedcontrol.cpp @@ -19,7 +19,6 @@ along with Minitube. If not, see . $END_LICENSE */ #include "segmentedcontrol.h" -#include "fontutils.h" #include "mainwindow.h" #include "painterutils.h" @@ -175,8 +174,7 @@ QAction *SegmentedControl::hoveredAction(const QPoint& pos) const { } int SegmentedControl::calculateButtonWidth (void) const { - QFont smallerBoldFont = FontUtils::smallBold(); - QFontMetrics fontMetrics(smallerBoldFont); + QFontMetrics fontMetrics(font()); int tmpItemWidth, itemWidth = 0; foreach (QAction *action, d->actionList) { tmpItemWidth = fontMetrics.width(action->text()); @@ -252,8 +250,6 @@ void SegmentedControl::paintButton(QPainter *painter, const QRect& rect, const Q painter->drawRect(0, 0, width, height - 1); #endif - painter->setFont(FontUtils::smallBold()); - const QString text = action->text(); // text shadow