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:
parent
2204d21be6
commit
2de3f489d3
@ -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;
|
||||
|
@ -175,8 +175,6 @@ private:
|
||||
*/
|
||||
int devicePixelIconSize(const int size) const;
|
||||
|
||||
Plasma::Theme m_theme;
|
||||
|
||||
int m_gridUnit;
|
||||
qreal m_devicePixelRatio;
|
||||
qreal m_dpi;
|
||||
|
Loading…
Reference in New Issue
Block a user