Changeset View
Changeset View
Standalone View
Standalone View
src/KPropertyFactory.cpp
Show All 13 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to | ||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | 20 | | |||
21 | #include "KPropertyFactory.h" | 21 | #include "KPropertyFactory.h" | ||
22 | | ||||
23 | #ifdef KPROPERTY_WIDGET | ||||
22 | #include "KDefaultPropertyFactory.h" | 24 | #include "KDefaultPropertyFactory.h" | ||
23 | #include "KPropertyEditorView.h" | 25 | #include "KPropertyEditorView.h" | ||
24 | #include "KPropertyEditorDataModel.h" | 26 | #include "KPropertyEditorDataModel.h" | ||
25 | 27 | | |||
26 | KPropertyLabel::KPropertyLabel(QWidget *parent, const KPropertyValueDisplayInterface *iface) | 28 | KPropertyLabel::KPropertyLabel(QWidget *parent, const KPropertyValueDisplayInterface *iface) | ||
27 | : QLabel(parent) | 29 | : QLabel(parent) | ||
28 | , m_iface(iface) | 30 | , m_iface(iface) | ||
29 | { | 31 | { | ||
Show All 14 Lines | |||||
44 | } | 46 | } | ||
45 | 47 | | |||
46 | void KPropertyLabel::paintEvent( QPaintEvent * event ) | 48 | void KPropertyLabel::paintEvent( QPaintEvent * event ) | ||
47 | { | 49 | { | ||
48 | QLabel::paintEvent(event); | 50 | QLabel::paintEvent(event); | ||
49 | KPropertyFactory::paintTopGridLine(this); | 51 | KPropertyFactory::paintTopGridLine(this); | ||
50 | } | 52 | } | ||
51 | 53 | | |||
54 | #endif | ||||
55 | | ||||
52 | //--------------- | 56 | //--------------- | ||
53 | 57 | | |||
54 | //! @internal | 58 | //! @internal | ||
55 | class KPropertyFactoryManager::Private | 59 | class KPropertyFactoryManager::Private | ||
56 | { | 60 | { | ||
57 | public: | 61 | public: | ||
58 | Private() | 62 | Private() | ||
59 | { | 63 | { | ||
60 | } | 64 | } | ||
61 | ~Private() | 65 | ~Private() | ||
62 | { | 66 | { | ||
63 | qDeleteAll(factories); | 67 | qDeleteAll(factories); | ||
64 | } | 68 | } | ||
65 | 69 | | |||
66 | QSet<KPropertyFactory*> factories; | 70 | QSet<KPropertyFactory*> factories; | ||
67 | QHash<int, KComposedPropertyCreatorInterface*> composedPropertyCreators; | 71 | QHash<int, KComposedPropertyCreatorInterface*> composedPropertyCreators; | ||
72 | #ifdef KPROPERTY_WIDGET | ||||
68 | QHash<int, KPropertyEditorCreatorInterface*> editorCreators; | 73 | QHash<int, KPropertyEditorCreatorInterface*> editorCreators; | ||
69 | QHash<int, KPropertyValuePainterInterface*> valuePainters; | 74 | QHash<int, KPropertyValuePainterInterface*> valuePainters; | ||
70 | QHash<int, KPropertyValueDisplayInterface*> valueDisplays; | 75 | QHash<int, KPropertyValueDisplayInterface*> valueDisplays; | ||
76 | #endif | ||||
71 | }; | 77 | }; | ||
72 | 78 | | |||
73 | Q_GLOBAL_STATIC(KPropertyFactoryManager, _self) | 79 | Q_GLOBAL_STATIC(KPropertyFactoryManager, _self) | ||
74 | 80 | | |||
75 | //! @internal | 81 | //! @internal | ||
76 | class KPropertyFactory::Private | 82 | class KPropertyFactory::Private | ||
77 | { | 83 | { | ||
78 | public: | 84 | public: | ||
79 | Private() | 85 | Private() | ||
80 | { | 86 | { | ||
81 | } | 87 | } | ||
82 | ~Private() | 88 | ~Private() | ||
83 | { | 89 | { | ||
90 | #ifdef KPROPERTY_WIDGET | ||||
84 | qDeleteAll(editorCreatorsSet); | 91 | qDeleteAll(editorCreatorsSet); | ||
85 | qDeleteAll(valuePaintersSet); | 92 | qDeleteAll(valuePaintersSet); | ||
86 | qDeleteAll(valueDisplaysSet); | 93 | qDeleteAll(valueDisplaysSet); | ||
94 | #endif | ||||
87 | } | 95 | } | ||
88 | 96 | | |||
89 | QHash<int, KComposedPropertyCreatorInterface*> composedPropertyCreators; | 97 | QHash<int, KComposedPropertyCreatorInterface*> composedPropertyCreators; | ||
98 | #ifdef KPROPERTY_WIDGET | ||||
90 | QHash<int, KPropertyEditorCreatorInterface*> editorCreators; | 99 | QHash<int, KPropertyEditorCreatorInterface*> editorCreators; | ||
91 | QHash<int, KPropertyValuePainterInterface*> valuePainters; | 100 | QHash<int, KPropertyValuePainterInterface*> valuePainters; | ||
92 | QHash<int, KPropertyValueDisplayInterface*> valueDisplays; | 101 | QHash<int, KPropertyValueDisplayInterface*> valueDisplays; | ||
102 | #endif | ||||
93 | QSet<KComposedPropertyCreatorInterface*> composedPropertyCreatorsSet; | 103 | QSet<KComposedPropertyCreatorInterface*> composedPropertyCreatorsSet; | ||
104 | #ifdef KPROPERTY_WIDGET | ||||
94 | QSet<KPropertyEditorCreatorInterface*> editorCreatorsSet; | 105 | QSet<KPropertyEditorCreatorInterface*> editorCreatorsSet; | ||
95 | QSet<KPropertyValuePainterInterface*> valuePaintersSet; | 106 | QSet<KPropertyValuePainterInterface*> valuePaintersSet; | ||
96 | QSet<KPropertyValueDisplayInterface*> valueDisplaysSet; | 107 | QSet<KPropertyValueDisplayInterface*> valueDisplaysSet; | ||
108 | #endif | ||||
97 | }; | 109 | }; | ||
98 | 110 | | |||
99 | KPropertyFactory::KPropertyFactory() | 111 | KPropertyFactory::KPropertyFactory() | ||
100 | : d( new Private ) | 112 | : d( new Private ) | ||
101 | { | 113 | { | ||
102 | } | 114 | } | ||
103 | 115 | | |||
104 | KPropertyFactory::~KPropertyFactory() | 116 | KPropertyFactory::~KPropertyFactory() | ||
105 | { | 117 | { | ||
106 | delete d; | 118 | delete d; | ||
107 | } | 119 | } | ||
108 | 120 | | |||
109 | QHash<int, KComposedPropertyCreatorInterface*> KPropertyFactory::composedPropertyCreators() const | 121 | QHash<int, KComposedPropertyCreatorInterface*> KPropertyFactory::composedPropertyCreators() const | ||
110 | { | 122 | { | ||
111 | return d->composedPropertyCreators; | 123 | return d->composedPropertyCreators; | ||
112 | } | 124 | } | ||
113 | 125 | | |||
126 | #ifdef KPROPERTY_WIDGET | ||||
114 | QHash<int, KPropertyEditorCreatorInterface*> KPropertyFactory::editorCreators() const | 127 | QHash<int, KPropertyEditorCreatorInterface*> KPropertyFactory::editorCreators() const | ||
115 | { | 128 | { | ||
116 | return d->editorCreators; | 129 | return d->editorCreators; | ||
117 | } | 130 | } | ||
118 | 131 | | |||
119 | QHash<int, KPropertyValuePainterInterface*> KPropertyFactory::valuePainters() const | 132 | QHash<int, KPropertyValuePainterInterface*> KPropertyFactory::valuePainters() const | ||
120 | { | 133 | { | ||
121 | return d->valuePainters; | 134 | return d->valuePainters; | ||
Show All 13 Lines | 143 | { | |||
135 | } | 148 | } | ||
136 | if (dynamic_cast<KPropertyValuePainterInterface*>(creator)) { | 149 | if (dynamic_cast<KPropertyValuePainterInterface*>(creator)) { | ||
137 | addPainterInternal( type, dynamic_cast<KPropertyValuePainterInterface*>(creator), false/* !own*/ ); | 150 | addPainterInternal( type, dynamic_cast<KPropertyValuePainterInterface*>(creator), false/* !own*/ ); | ||
138 | } | 151 | } | ||
139 | if (dynamic_cast<KPropertyValueDisplayInterface*>(creator)) { | 152 | if (dynamic_cast<KPropertyValueDisplayInterface*>(creator)) { | ||
140 | addDisplayInternal( type, dynamic_cast<KPropertyValueDisplayInterface*>(creator), false/* !own*/ ); | 153 | addDisplayInternal( type, dynamic_cast<KPropertyValueDisplayInterface*>(creator), false/* !own*/ ); | ||
141 | } | 154 | } | ||
142 | } | 155 | } | ||
156 | #endif | ||||
143 | 157 | | |||
144 | void KPropertyFactory::addComposedPropertyCreator( int type, KComposedPropertyCreatorInterface* creator ) | 158 | void KPropertyFactory::addComposedPropertyCreator( int type, KComposedPropertyCreatorInterface* creator ) | ||
145 | { | 159 | { | ||
146 | addComposedPropertyCreatorInternal( type, creator, true ); | 160 | addComposedPropertyCreatorInternal( type, creator, true ); | ||
161 | #ifdef KPROPERTY_WIDGET | ||||
147 | if (dynamic_cast<KPropertyEditorCreatorInterface*>(creator)) { | 162 | if (dynamic_cast<KPropertyEditorCreatorInterface*>(creator)) { | ||
148 | addEditorInternal( type, dynamic_cast<KPropertyEditorCreatorInterface*>(creator), false/* !own*/ ); | 163 | addEditorInternal( type, dynamic_cast<KPropertyEditorCreatorInterface*>(creator), false/* !own*/ ); | ||
149 | } | 164 | } | ||
150 | if (dynamic_cast<KPropertyValuePainterInterface*>(creator)) { | 165 | if (dynamic_cast<KPropertyValuePainterInterface*>(creator)) { | ||
151 | addPainterInternal( type, dynamic_cast<KPropertyValuePainterInterface*>(creator), false/* !own*/ ); | 166 | addPainterInternal( type, dynamic_cast<KPropertyValuePainterInterface*>(creator), false/* !own*/ ); | ||
152 | } | 167 | } | ||
153 | if (dynamic_cast<KPropertyValueDisplayInterface*>(creator)) { | 168 | if (dynamic_cast<KPropertyValueDisplayInterface*>(creator)) { | ||
154 | addDisplayInternal( type, dynamic_cast<KPropertyValueDisplayInterface*>(creator), false/* !own*/ ); | 169 | addDisplayInternal( type, dynamic_cast<KPropertyValueDisplayInterface*>(creator), false/* !own*/ ); | ||
155 | } | 170 | } | ||
171 | #endif | ||||
156 | } | 172 | } | ||
157 | 173 | | |||
174 | #ifdef KPROPERTY_WIDGET | ||||
158 | void KPropertyFactory::addPainter(int type, KPropertyValuePainterInterface *painter) | 175 | void KPropertyFactory::addPainter(int type, KPropertyValuePainterInterface *painter) | ||
159 | { | 176 | { | ||
160 | addPainterInternal(type, painter, true); | 177 | addPainterInternal(type, painter, true); | ||
161 | if (dynamic_cast<KComposedPropertyCreatorInterface*>(painter)) { | 178 | if (dynamic_cast<KComposedPropertyCreatorInterface*>(painter)) { | ||
162 | addComposedPropertyCreatorInternal( type, | 179 | addComposedPropertyCreatorInternal( type, | ||
163 | dynamic_cast<KComposedPropertyCreatorInterface*>(painter), false/* !own*/ ); | 180 | dynamic_cast<KComposedPropertyCreatorInterface*>(painter), false/* !own*/ ); | ||
164 | } | 181 | } | ||
165 | if (dynamic_cast<KPropertyEditorCreatorInterface*>(painter)) { | 182 | if (dynamic_cast<KPropertyEditorCreatorInterface*>(painter)) { | ||
Show All 21 Lines | |||||
187 | 204 | | |||
188 | void KPropertyFactory::addEditorInternal(int type, KPropertyEditorCreatorInterface *editor, bool own) | 205 | void KPropertyFactory::addEditorInternal(int type, KPropertyEditorCreatorInterface *editor, bool own) | ||
189 | { | 206 | { | ||
190 | if (own) | 207 | if (own) | ||
191 | d->editorCreatorsSet.insert(editor); | 208 | d->editorCreatorsSet.insert(editor); | ||
192 | d->editorCreators.insert(type, editor); | 209 | d->editorCreators.insert(type, editor); | ||
193 | } | 210 | } | ||
194 | 211 | | |||
212 | #endif | ||||
213 | | ||||
195 | void KPropertyFactory::addComposedPropertyCreatorInternal(int type, KComposedPropertyCreatorInterface* creator, bool own) | 214 | void KPropertyFactory::addComposedPropertyCreatorInternal(int type, KComposedPropertyCreatorInterface* creator, bool own) | ||
196 | { | 215 | { | ||
197 | if (own) | 216 | if (own) | ||
198 | d->composedPropertyCreatorsSet.insert(creator); | 217 | d->composedPropertyCreatorsSet.insert(creator); | ||
199 | d->composedPropertyCreators.insert(type, creator); | 218 | d->composedPropertyCreators.insert(type, creator); | ||
200 | } | 219 | } | ||
201 | 220 | | |||
221 | #ifdef KPROPERTY_WIDGET | ||||
202 | void KPropertyFactory::addPainterInternal(int type, KPropertyValuePainterInterface *painter, bool own) | 222 | void KPropertyFactory::addPainterInternal(int type, KPropertyValuePainterInterface *painter, bool own) | ||
203 | { | 223 | { | ||
204 | if (own) | 224 | if (own) | ||
205 | d->valuePaintersSet.insert(painter); | 225 | d->valuePaintersSet.insert(painter); | ||
206 | d->valuePainters.insert(type, painter); | 226 | d->valuePainters.insert(type, painter); | ||
207 | } | 227 | } | ||
208 | 228 | | |||
209 | void KPropertyFactory::addDisplayInternal(int type, KPropertyValueDisplayInterface *display, bool own) | 229 | void KPropertyFactory::addDisplayInternal(int type, KPropertyValueDisplayInterface *display, bool own) | ||
Show All 21 Lines | 250 | { | |||
231 | QColor gridLineColor( dynamic_cast<KPropertyEditorView*>(parent) ? | 251 | QColor gridLineColor( dynamic_cast<KPropertyEditorView*>(parent) ? | ||
232 | dynamic_cast<KPropertyEditorView*>(parent)->gridLineColor() | 252 | dynamic_cast<KPropertyEditorView*>(parent)->gridLineColor() | ||
233 | : KPropertyEditorView::defaultGridLineColor() ); | 253 | : KPropertyEditorView::defaultGridLineColor() ); | ||
234 | widget->setStyleSheet( | 254 | widget->setStyleSheet( | ||
235 | QString::fromLatin1("%1 { border-top: 1px solid %2;border-bottom: 1px solid %2; } %3") | 255 | QString::fromLatin1("%1 { border-top: 1px solid %2;border-bottom: 1px solid %2; } %3") | ||
236 | .arg(QLatin1String(widget->metaObject()->className())) | 256 | .arg(QLatin1String(widget->metaObject()->className())) | ||
237 | .arg(gridLineColor.name()).arg(extraStyleSheet)); | 257 | .arg(gridLineColor.name()).arg(extraStyleSheet)); | ||
238 | } | 258 | } | ||
259 | #endif | ||||
239 | 260 | | |||
240 | //------------ | 261 | //------------ | ||
241 | 262 | | |||
242 | KPropertyFactoryManager::KPropertyFactoryManager() | 263 | KPropertyFactoryManager::KPropertyFactoryManager() | ||
243 | : QObject(0) | 264 | : QObject(0) | ||
244 | , d(new Private) | 265 | , d(new Private) | ||
245 | { | 266 | { | ||
246 | setObjectName(QLatin1String("KPropertyFactoryManager")); | 267 | setObjectName(QLatin1String("KPropertyFactoryManager")); | ||
268 | #ifdef KPROPERTY_WIDGET | ||||
247 | registerFactory(new KDefaultPropertyFactory); | 269 | registerFactory(new KDefaultPropertyFactory); | ||
270 | #endif | ||||
248 | } | 271 | } | ||
249 | 272 | | |||
250 | KPropertyFactoryManager::~KPropertyFactoryManager() | 273 | KPropertyFactoryManager::~KPropertyFactoryManager() | ||
251 | { | 274 | { | ||
252 | delete d; | 275 | delete d; | ||
253 | } | 276 | } | ||
254 | 277 | | |||
255 | KPropertyFactoryManager* KPropertyFactoryManager::self() | 278 | KPropertyFactoryManager* KPropertyFactoryManager::self() | ||
256 | { | 279 | { | ||
257 | return _self; | 280 | return _self; | ||
258 | } | 281 | } | ||
259 | 282 | | |||
260 | void KPropertyFactoryManager::registerFactory(KPropertyFactory *factory) | 283 | void KPropertyFactoryManager::registerFactory(KPropertyFactory *factory) | ||
261 | { | 284 | { | ||
262 | d->factories.insert(factory); | 285 | d->factories.insert(factory); | ||
263 | QHash<int, KComposedPropertyCreatorInterface*>::ConstIterator composedPropertyCreatorsItEnd | 286 | QHash<int, KComposedPropertyCreatorInterface*>::ConstIterator composedPropertyCreatorsItEnd | ||
264 | = factory->composedPropertyCreators().constEnd(); | 287 | = factory->composedPropertyCreators().constEnd(); | ||
265 | for (QHash<int, KComposedPropertyCreatorInterface*>::ConstIterator it( factory->composedPropertyCreators().constBegin() ); | 288 | for (QHash<int, KComposedPropertyCreatorInterface*>::ConstIterator it( factory->composedPropertyCreators().constBegin() ); | ||
266 | it != composedPropertyCreatorsItEnd; ++it) | 289 | it != composedPropertyCreatorsItEnd; ++it) | ||
267 | { | 290 | { | ||
268 | d->composedPropertyCreators.insert(it.key(), it.value()); | 291 | d->composedPropertyCreators.insert(it.key(), it.value()); | ||
269 | } | 292 | } | ||
293 | #ifdef KPROPERTY_WIDGET | ||||
270 | QHash<int, KPropertyEditorCreatorInterface*>::ConstIterator editorCreatorsItEnd | 294 | QHash<int, KPropertyEditorCreatorInterface*>::ConstIterator editorCreatorsItEnd | ||
271 | = factory->editorCreators().constEnd(); | 295 | = factory->editorCreators().constEnd(); | ||
272 | for (QHash<int, KPropertyEditorCreatorInterface*>::ConstIterator it( factory->editorCreators().constBegin() ); | 296 | for (QHash<int, KPropertyEditorCreatorInterface*>::ConstIterator it( factory->editorCreators().constBegin() ); | ||
273 | it != editorCreatorsItEnd; ++it) | 297 | it != editorCreatorsItEnd; ++it) | ||
274 | { | 298 | { | ||
275 | d->editorCreators.insert(it.key(), it.value()); | 299 | d->editorCreators.insert(it.key(), it.value()); | ||
276 | } | 300 | } | ||
277 | QHash<int, KPropertyValuePainterInterface*>::ConstIterator valuePaintersItEnd | 301 | QHash<int, KPropertyValuePainterInterface*>::ConstIterator valuePaintersItEnd | ||
278 | = factory->valuePainters().constEnd(); | 302 | = factory->valuePainters().constEnd(); | ||
279 | for (QHash<int, KPropertyValuePainterInterface*>::ConstIterator it( factory->valuePainters().constBegin() ); | 303 | for (QHash<int, KPropertyValuePainterInterface*>::ConstIterator it( factory->valuePainters().constBegin() ); | ||
280 | it != valuePaintersItEnd; ++it) | 304 | it != valuePaintersItEnd; ++it) | ||
281 | { | 305 | { | ||
282 | d->valuePainters.insert(it.key(), it.value()); | 306 | d->valuePainters.insert(it.key(), it.value()); | ||
283 | } | 307 | } | ||
284 | QHash<int, KPropertyValueDisplayInterface*>::ConstIterator valueDisplaysItEnd | 308 | QHash<int, KPropertyValueDisplayInterface*>::ConstIterator valueDisplaysItEnd | ||
285 | = factory->valueDisplays().constEnd(); | 309 | = factory->valueDisplays().constEnd(); | ||
286 | for (QHash<int, KPropertyValueDisplayInterface*>::ConstIterator it( factory->valueDisplays().constBegin() ); | 310 | for (QHash<int, KPropertyValueDisplayInterface*>::ConstIterator it( factory->valueDisplays().constBegin() ); | ||
287 | it != valueDisplaysItEnd; ++it) | 311 | it != valueDisplaysItEnd; ++it) | ||
288 | { | 312 | { | ||
289 | d->valueDisplays.insert(it.key(), it.value()); | 313 | d->valueDisplays.insert(it.key(), it.value()); | ||
290 | } | 314 | } | ||
315 | #endif | ||||
291 | } | 316 | } | ||
292 | 317 | | |||
318 | #ifdef KPROPERTY_WIDGET | ||||
293 | bool KPropertyFactoryManager::isEditorForTypeAvailable( int type ) const | 319 | bool KPropertyFactoryManager::isEditorForTypeAvailable( int type ) const | ||
294 | { | 320 | { | ||
295 | return d->editorCreators.value(type); | 321 | return d->editorCreators.value(type); | ||
296 | } | 322 | } | ||
297 | 323 | | |||
298 | QWidget * KPropertyFactoryManager::createEditor( | 324 | QWidget * KPropertyFactoryManager::createEditor( | ||
299 | int type, QWidget *parent, | 325 | int type, QWidget *parent, | ||
300 | const QStyleOptionViewItem & option, const QModelIndex & index ) const | 326 | const QStyleOptionViewItem & option, const QModelIndex & index ) const | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
353 | } | 379 | } | ||
354 | 380 | | |||
355 | QString KPropertyFactoryManager::convertValueToText( const KProperty* property ) const | 381 | QString KPropertyFactoryManager::convertValueToText( const KProperty* property ) const | ||
356 | { | 382 | { | ||
357 | const KPropertyValueDisplayInterface *display = d->valueDisplays.value( property->type() ); | 383 | const KPropertyValueDisplayInterface *display = d->valueDisplays.value( property->type() ); | ||
358 | return display ? display->displayTextForProperty( property ) : property->value().toString(); | 384 | return display ? display->displayTextForProperty( property ) : property->value().toString(); | ||
359 | } | 385 | } | ||
360 | 386 | | |||
387 | #endif | ||||
388 | | ||||
361 | KComposedPropertyInterface* KPropertyFactoryManager::createComposedProperty(KProperty *parent) | 389 | KComposedPropertyInterface* KPropertyFactoryManager::createComposedProperty(KProperty *parent) | ||
362 | { | 390 | { | ||
363 | const KComposedPropertyCreatorInterface *creator = d->composedPropertyCreators.value( parent->type() ); | 391 | const KComposedPropertyCreatorInterface *creator = d->composedPropertyCreators.value( parent->type() ); | ||
364 | return creator ? creator->createComposedProperty(parent) : 0; | 392 | return creator ? creator->createComposedProperty(parent) : 0; | ||
365 | } | 393 | } | ||
366 | 394 | | |||
367 | //! @todo | 395 | //! @todo | ||
368 | #if 0 | 396 | #if 0 | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
411 | KComposedPropertyCreatorInterface::KComposedPropertyCreatorInterface() | 439 | KComposedPropertyCreatorInterface::KComposedPropertyCreatorInterface() | ||
412 | { | 440 | { | ||
413 | } | 441 | } | ||
414 | 442 | | |||
415 | KComposedPropertyCreatorInterface::~KComposedPropertyCreatorInterface() | 443 | KComposedPropertyCreatorInterface::~KComposedPropertyCreatorInterface() | ||
416 | { | 444 | { | ||
417 | } | 445 | } | ||
418 | 446 | | |||
447 | #ifdef KPROPERTY_WIDGET | ||||
419 | KPropertyEditorCreatorInterface::KPropertyEditorCreatorInterface() | 448 | KPropertyEditorCreatorInterface::KPropertyEditorCreatorInterface() | ||
420 | { | 449 | { | ||
421 | } | 450 | } | ||
422 | 451 | | |||
423 | KPropertyEditorCreatorInterface::~KPropertyEditorCreatorInterface() | 452 | KPropertyEditorCreatorInterface::~KPropertyEditorCreatorInterface() | ||
424 | { | 453 | { | ||
425 | } | 454 | } | ||
426 | 455 | | |||
Show All 12 Lines | |||||
439 | 468 | | |||
440 | KPropertyValueDisplayInterface::KPropertyValueDisplayInterface() | 469 | KPropertyValueDisplayInterface::KPropertyValueDisplayInterface() | ||
441 | { | 470 | { | ||
442 | } | 471 | } | ||
443 | 472 | | |||
444 | KPropertyValueDisplayInterface::~KPropertyValueDisplayInterface() | 473 | KPropertyValueDisplayInterface::~KPropertyValueDisplayInterface() | ||
445 | { | 474 | { | ||
446 | } | 475 | } | ||
476 | #endif |