$END_LICENSE */
#include "segmentedcontrol.h"
-#include "fontutils.h"
#include "mainwindow.h"
#include "painterutils.h"
}
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());
painter->drawRect(0, 0, width, height - 1);
#endif
- painter->setFont(FontUtils::smallBold());
-
const QString text = action->text();
// text shadow