Changeset View
Changeset View
Standalone View
Standalone View
src/formeditor/form.cpp
Show First 20 Lines • Show All 1583 Lines • ▼ Show 20 Line(s) | 1566 | //! @todo | |||
---|---|---|---|---|---|
1584 | const QString paletteForegroundColorDesc(d->propCaption.value("paletteForegroundColor")); | 1584 | const QString paletteForegroundColorDesc(d->propCaption.value("paletteForegroundColor")); | ||
1585 | d->propertySet.addProperty(newProp); | 1585 | d->propertySet.addProperty(newProp); | ||
1586 | newProp = new KProperty("paletteForegroundColor", | 1586 | newProp = new KProperty("paletteForegroundColor", | ||
1587 | w->palette().color(w->foregroundRole()), | 1587 | w->palette().color(w->foregroundRole()), | ||
1588 | paletteForegroundColorDesc, | 1588 | paletteForegroundColorDesc, | ||
1589 | paletteForegroundColorDesc); | 1589 | paletteForegroundColorDesc); | ||
1590 | d->propertySet.addProperty(newProp); | 1590 | d->propertySet.addProperty(newProp); | ||
1591 | 1591 | | |||
1592 | d->propertySet["objectName"].setAutoSync(false); // name should be updated only when pressing Enter | 1592 | // name should be updated only when pressing Enter | ||
1593 | d->propertySet["objectName"].setValueSyncPolicy(KProperty::ValueSyncPolicy::FocusOut); | ||||
1593 | 1594 | | |||
1594 | if (winfo) { | 1595 | if (winfo) { | ||
1595 | library()->setPropertyOptions(d->propertySet, *winfo, w); | 1596 | library()->setPropertyOptions(d->propertySet, *winfo, w); | ||
1596 | d->propertySet.addProperty(newProp = new KProperty("this:classString", winfo->name())); | 1597 | d->propertySet.addProperty(newProp = new KProperty("this:classString", winfo->name())); | ||
1597 | newProp->setVisible(false); | 1598 | newProp->setVisible(false); | ||
1598 | d->propertySet.addProperty(newProp = new KProperty("this:iconName", winfo->iconName())); | 1599 | d->propertySet.addProperty(newProp = new KProperty("this:iconName", winfo->iconName())); | ||
1599 | newProp->setVisible(false); | 1600 | newProp->setVisible(false); | ||
1600 | } | 1601 | } | ||
▲ Show 20 Lines • Show All 1086 Lines • Show Last 20 Lines |