From: Flavio Tordini Date: Tue, 4 Aug 2015 14:25:30 +0000 (+0200) Subject: Tweaked font size X-Git-Tag: 2.5~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f8e3b7caa12a5946e13504d7bfefd3fa4572e739;p=minitube Tweaked font size --- diff --git a/src/fontutils.cpp b/src/fontutils.cpp index 7ca9918..1187dee 100644 --- a/src/fontutils.cpp +++ b/src/fontutils.cpp @@ -38,32 +38,32 @@ QFont createFontWithMinSize(bool isBold, double sizeScale) { } } -const QFont FontUtils::small() { - static QFont font = createFontWithMinSize(false, .85); +const QFont &FontUtils::small() { + static QFont font = createFontWithMinSize(false, .9); return font; } -const QFont FontUtils::smallBold() { - static QFont font = createFontWithMinSize(true, .85); +const QFont &FontUtils::smallBold() { + static QFont font = createFontWithMinSize(true, .9); return font; } -const QFont FontUtils::medium() { +const QFont &FontUtils::medium() { static QFont font = createFont(false, 1.1); return font; } -const QFont FontUtils::mediumBold() { +const QFont &FontUtils::mediumBold() { static QFont font = createFont(true, 0.9); return font; } -const QFont FontUtils::big() { +const QFont &FontUtils::big() { static QFont font = createFont(false, 1.5); return font; } -const QFont FontUtils::bigBold() { +const QFont &FontUtils::bigBold() { static QFont font = createFont(true, 1.5); return font; } diff --git a/src/fontutils.h b/src/fontutils.h index 7048ea8..0c4d9ed 100644 --- a/src/fontutils.h +++ b/src/fontutils.h @@ -26,12 +26,12 @@ $END_LICENSE */ class FontUtils { public: - static const QFont small(); - static const QFont smallBold(); - static const QFont medium(); - static const QFont mediumBold(); - static const QFont big(); - static const QFont bigBold(); + static const QFont &small(); + static const QFont &smallBold(); + static const QFont &medium(); + static const QFont &mediumBold(); + static const QFont &big(); + static const QFont &bigBold(); };