From f07387267af9f2e08a38405ed91dd9d731c9ca4a Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 11 Mar 2013 16:08:37 +0100 Subject: [PATCH] remove fontMetrics() --- src/plasma/theme.cpp | 6 ------ src/plasma/theme.h | 5 ----- 2 files changed, 11 deletions(-) diff --git a/src/plasma/theme.cpp b/src/plasma/theme.cpp index 6149707f7..8699afdf4 100644 --- a/src/plasma/theme.cpp +++ b/src/plasma/theme.cpp @@ -859,12 +859,6 @@ QFont Theme::font(FontRole role) const return d->generalFont; } -QFontMetrics Theme::fontMetrics() const -{ - //TODO: allow this to be overridden with a plasma specific font? - return QFontMetrics(d->generalFont); -} - bool Theme::windowTranslucencyEnabled() const { return d->compositingActive; diff --git a/src/plasma/theme.h b/src/plasma/theme.h index 324ef4fa7..7f511e5fe 100644 --- a/src/plasma/theme.h +++ b/src/plasma/theme.h @@ -170,11 +170,6 @@ class PLASMA_EXPORT Theme : public QObject */ QFont font(FontRole role) const; - /** - * @return the font metrics for the font to be used by themed items - */ - QFontMetrics fontMetrics() const; - /** * @return true if the window manager effects (e.g. translucency, compositing) is active or not */