Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/partcontroller.cpp
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | 161 | KPluginFactory * editorFactory = findPartFactory( | |||
---|---|---|---|---|---|
163 | partType, | 163 | partType, | ||
164 | preferredName ); | 164 | preferredName ); | ||
165 | 165 | | |||
166 | if ( !className.isEmpty() && editorFactory ) | 166 | if ( !className.isEmpty() && editorFactory ) | ||
167 | { | 167 | { | ||
168 | return editorFactory->create<KParts::Part>( | 168 | return editorFactory->create<KParts::Part>( | ||
169 | nullptr, | 169 | nullptr, | ||
170 | this, | 170 | this, | ||
171 | className.toLatin1() ); | 171 | className); | ||
172 | } | 172 | } | ||
173 | 173 | | |||
174 | return nullptr; | 174 | return nullptr; | ||
175 | } | 175 | } | ||
176 | 176 | | |||
177 | bool PartController::canCreatePart(const QUrl& url) | 177 | bool PartController::canCreatePart(const QUrl& url) | ||
178 | { | 178 | { | ||
179 | if (!url.isValid()) return false; | 179 | if (!url.isValid()) return false; | ||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |