20 #include "KDefaultPropertyFactory.h" 21 #include "KPropertyUtils_p.h" 22 #include "config-kproperty.h" 23 #include "editors/booledit.h" 24 #include "editors/coloredit.h" 25 #include "editors/combobox.h" 26 #include "editors/cursoredit.h" 27 #include "editors/dateedit.h" 28 #include "editors/datetimeedit.h" 30 #include "editors/pixmapedit.h" 31 #include "editors/pointedit.h" 32 #include "editors/pointfedit.h" 33 #include "editors/fontedit.h" 34 #include "editors/rectedit.h" 35 #include "editors/KPropertyRectFEditor.h" 36 #include "editors/sizeedit.h" 37 #include "editors/sizefedit.h" 38 #include "editors/sizepolicyedit.h" 39 #include "editors/spinbox.h" 41 #include "editors/linestyleedit.h" 42 #include "editors/KPropertyStringEditor.h" 44 #include "editors/timeedit.h" 45 #include "editors/KPropertyUrlEditor.h" 47 KDefaultPropertyFactory::KDefaultPropertyFactory()
48 : KPropertyWidgetsFactory()
50 KPropertyUtilsPrivate::setupPrivateIconsResourceWithMessage(
52 QString::fromLatin1(
"icons/kproperty_%1.rcc").arg(KPropertyUtilsPrivate::supportedIconTheme()), QtFatalMsg);
54 addEditor( KProperty::Bool,
new KPropertyBoolDelegate );
56 addEditor( KProperty::Color,
new KPropertyColorComboDelegate );
57 addEditor( KProperty::Cursor,
new KPropertyCursorDelegate );
58 addEditor( KProperty::Date,
new KPropertyDateDelegate );
59 addEditor( KProperty::DateTime,
new KPropertyDateTimeDelegate );
60 addEditor( KProperty::Double,
new KPropertyDoubleSpinBoxDelegate );
61 addEditor( KProperty::Font,
new KPropertyFontDelegate );
65 addEditor( KProperty::Pixmap,
new KPropertyPixmapDelegate );
66 addEditor( KProperty::Point,
new KPropertyPointDelegate );
67 addEditor( KProperty::PointF,
new KPropertyPointFDelegate );
68 addEditor( KProperty::Rect,
new KPropertyRectDelegate );
69 addEditor( KProperty::RectF,
new KPropertyRectFDelegate );
70 addEditor( KProperty::Size,
new KPropertySizeDelegate );
71 addEditor( KProperty::SizeF,
new KPropertySizeFDelegate );
72 addEditor( KProperty::SizePolicy,
new KPropertySizePolicyDelegate );
73 addEditor( KProperty::String,
new KPropertyStringDelegate );
74 addEditor( KProperty::Time,
new KPropertyTimeDelegate );
82 KDefaultPropertyFactory::~KDefaultPropertyFactory()
A delegate supporting Int, UInt, LongLong and ULongLong types.
Delegate for Url and ComposedUrl types.
QString fromLatin1(const char *str, int size)