Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/core/colorscope.cpp
Show All 37 Lines | |||||
38 | { | 38 | { | ||
39 | m_theme = s_theme.toStrongRef(); | 39 | m_theme = s_theme.toStrongRef(); | ||
40 | if (!m_theme) { | 40 | if (!m_theme) { | ||
41 | QSharedPointer<Plasma::Theme> themePtr(new Plasma::Theme); | 41 | QSharedPointer<Plasma::Theme> themePtr(new Plasma::Theme); | ||
42 | s_theme = themePtr; | 42 | s_theme = themePtr; | ||
43 | m_theme = s_theme.toStrongRef(); | 43 | m_theme = s_theme.toStrongRef(); | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | connect(s_theme.data(), &Plasma::Theme::themeChanged, this, &ColorScope::colorsChanged); | 46 | connect(m_theme.data(), &Plasma::Theme::themeChanged, this, &ColorScope::colorsChanged); | ||
47 | 47 | | |||
48 | connect(this, &ColorScope::colorGroupChanged, this, &ColorScope::colorsChanged); | 48 | connect(this, &ColorScope::colorGroupChanged, this, &ColorScope::colorsChanged); | ||
49 | 49 | | |||
50 | QQuickItem *parentItem = qobject_cast<QQuickItem *>(parentObject); | 50 | QQuickItem *parentItem = qobject_cast<QQuickItem *>(parentObject); | ||
51 | if (parentItem) { | 51 | if (parentItem) { | ||
52 | connect(parentItem, &QQuickItem::parentChanged, this, &ColorScope::checkColorGroupChanged); | 52 | connect(parentItem, &QQuickItem::parentChanged, this, &ColorScope::checkColorGroupChanged); | ||
53 | } else if (m_parent) { | 53 | } else if (m_parent) { | ||
54 | m_parent->installEventFilter(this); | 54 | m_parent->installEventFilter(this); | ||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |