From 7df9640de207a1b3af70832ca4d100df4eab778f Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Thu, 7 May 2015 12:15:49 +0200 Subject: [PATCH] Use normal font --- src/segmentedcontrol.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- 2.39.5