Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/forms/kexidbfactory.cpp
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Line(s) | 192 | xi18nc("A prefix for identifiers of image box widgets. Based on that, identifiers such as " | |||
---|---|---|---|---|---|
196 | "should start with lower case letter and if there are subsequent words, these should " | 196 | "should start with lower case letter and if there are subsequent words, these should " | ||
197 | "start with upper case letter. Example: smallCamelCase. " | 197 | "start with upper case letter. Example: smallCamelCase. " | ||
198 | "Moreover, try to make this prefix as short as possible.", | 198 | "Moreover, try to make this prefix as short as possible.", | ||
199 | "image")); | 199 | "image")); | ||
200 | wi->setDescription(xi18n("A widget for displaying images")); | 200 | wi->setDescription(xi18n("A widget for displaying images")); | ||
201 | // wi->setCustomTypeForProperty("pixmapData", KexiCustomPropertyFactory::PixmapData); | 201 | // wi->setCustomTypeForProperty("pixmapData", KexiCustomPropertyFactory::PixmapData); | ||
202 | wi->setCustomTypeForProperty("pixmapId", KexiCustomPropertyFactory::PixmapId); | 202 | wi->setCustomTypeForProperty("pixmapId", KexiCustomPropertyFactory::PixmapId); | ||
203 | wi->setInternalProperty("dontStartEditingOnInserting", true); | 203 | wi->setInternalProperty("dontStartEditingOnInserting", true); | ||
204 | wi->setSupportedAlignmentFlags(Qt::AlignLeft | Qt::AlignRight | Qt::AlignHCenter | ||||
205 | | Qt::AlignTop | Qt::AlignBottom | Qt::AlignVCenter); | ||||
204 | addClass(wi); | 206 | addClass(wi); | ||
205 | } | 207 | } | ||
206 | 208 | | |||
207 | { | 209 | { | ||
208 | KexiDataAwareWidgetInfo* wi = new KexiDataAwareWidgetInfo(this); | 210 | KexiDataAwareWidgetInfo* wi = new KexiDataAwareWidgetInfo(this); | ||
209 | wi->setIconName(KexiIconName("combobox")); | 211 | wi->setIconName(KexiIconName("combobox")); | ||
210 | wi->setClassName("KexiDBComboBox"); | 212 | wi->setClassName("KexiDBComboBox"); | ||
211 | wi->setParentFactoryName(parentFactory); | 213 | wi->setParentFactoryName(parentFactory); | ||
▲ Show 20 Lines • Show All 634 Lines • Show Last 20 Lines |