Changeset View
Changeset View
Standalone View
Standalone View
src/pluginwrapper.cpp
Show All 15 Lines | |||||
16 | * | 16 | * | ||
17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public | ||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | #include "pluginwrapper_p.h" | 20 | #include "pluginwrapper_p.h" | ||
21 | #include "kwindowinfo_dummy_p.h" | 21 | #include "kwindowinfo_dummy_p.h" | ||
22 | #include "kwindowsystemplugininterface_p.h" | 22 | #include "kwindowsystemplugininterface_p.h" | ||
23 | #include "kwindoweffects_dummy_p.h" | 23 | #include "kwindoweffects_dummy_p.h" | ||
24 | #include "kwindowshadow_dummy_p.h" | ||||
24 | #include "kwindowsystem_dummy_p.h" | 25 | #include "kwindowsystem_dummy_p.h" | ||
25 | #include "kwindowsystem_debug.h" | 26 | #include "kwindowsystem_debug.h" | ||
26 | 27 | | |||
27 | #include <QDebug> | 28 | #include <QDebug> | ||
28 | #include <QDir> | 29 | #include <QDir> | ||
29 | #include <QGlobalStatic> | 30 | #include <QGlobalStatic> | ||
30 | #include <QGuiApplication> | 31 | #include <QGuiApplication> | ||
31 | #include <QJsonArray> | 32 | #include <QJsonArray> | ||
▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 123 | if (!m_plugin.isNull()) { | |||
123 | p = m_plugin->createWindowInfo(window, properties, properties2); | 124 | p = m_plugin->createWindowInfo(window, properties, properties2); | ||
124 | } | 125 | } | ||
125 | if (!p) { | 126 | if (!p) { | ||
126 | p = new KWindowInfoPrivateDummy(window, properties, properties2); | 127 | p = new KWindowInfoPrivateDummy(window, properties, properties2); | ||
127 | } | 128 | } | ||
128 | return p; | 129 | return p; | ||
129 | } | 130 | } | ||
130 | 131 | | |||
132 | KWindowShadowPrivate *KWindowSystemPluginWrapper::createWindowShadow() const | ||||
133 | { | ||||
134 | KWindowShadowPrivate *p = nullptr; | ||||
135 | if (!m_plugin.isNull()) { | ||||
136 | p = m_plugin->createWindowShadow(); | ||||
137 | } | ||||
138 | if (!p) { | ||||
139 | p = new KWindowShadowPrivateDummy(); | ||||
140 | } | ||||
141 | return p; | ||||
142 | } | ||||
143 | | ||||
144 | KWindowShadowTilePrivate *KWindowSystemPluginWrapper::createWindowShadowTile() const | ||||
145 | { | ||||
146 | KWindowShadowTilePrivate *p = nullptr; | ||||
147 | if (!m_plugin.isNull()) { | ||||
148 | p = m_plugin->createWindowShadowTile(); | ||||
149 | } | ||||
150 | if (!p) { | ||||
151 | p = new KWindowShadowTilePrivateDummy(); | ||||
152 | } | ||||
153 | return p; | ||||
154 | } | ||||
155 | | ||||
131 | const KWindowSystemPluginWrapper &KWindowSystemPluginWrapper::self() | 156 | const KWindowSystemPluginWrapper &KWindowSystemPluginWrapper::self() | ||
132 | { | 157 | { | ||
133 | return *s_pluginWrapper; | 158 | return *s_pluginWrapper; | ||
134 | } | 159 | } |