Don't create a Plasma::Theme in units which is unused

Unit now takes all fonts from the default system font, which we monitor
for with an eventFilter on the application object.

Change-Id: Ib17c01e2811c0c672be18a930d625d84ecd154a4
This commit is contained in:
David Edmundson 2014-12-11 18:33:16 +01:00
parent 2204d21be6
commit 2de3f489d3
2 changed files with 0 additions and 3 deletions

View File

@ -50,7 +50,6 @@ Units::Units(QObject *parent)
updateSpacing(); // updates gridUnit and *Spacing properties
connect(KIconLoader::global(), &KIconLoader::iconLoaderSettingsChanged, this, &Units::iconLoaderSettingsChanged);
connect(&m_theme, &Plasma::Theme::themeChanged, this, &Units::updateSpacing);
QCoreApplication::instance()->installEventFilter(this);
const QString configFile = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + plasmarc;

View File

@ -175,8 +175,6 @@ private:
*/
int devicePixelIconSize(const int size) const;
Plasma::Theme m_theme;
int m_gridUnit;
qreal m_devicePixelRatio;
qreal m_dpi;