Changeset View
Changeset View
Standalone View
Standalone View
src/kconfigdialogmanager.cpp
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | |||||
164 | { | 164 | { | ||
165 | (void) parseChildren(widget, true); | 165 | (void) parseChildren(widget, true); | ||
166 | } | 166 | } | ||
167 | 167 | | |||
168 | void KConfigDialogManager::setupWidget(QWidget *widget, KConfigSkeletonItem *item) | 168 | void KConfigDialogManager::setupWidget(QWidget *widget, KConfigSkeletonItem *item) | ||
169 | { | 169 | { | ||
170 | QVariant minValue = item->minValue(); | 170 | QVariant minValue = item->minValue(); | ||
171 | if (minValue.isValid()) { | 171 | if (minValue.isValid()) { | ||
172 | // Only q3datetimeedit is using this property we can remove it if we stop supporting Qt3Support | | |||
173 | if (widget->metaObject()->indexOfProperty("minValue") != -1) { | | |||
174 | widget->setProperty("minValue", minValue); | | |||
175 | } | | |||
176 | if (widget->metaObject()->indexOfProperty("minimum") != -1) { | 172 | if (widget->metaObject()->indexOfProperty("minimum") != -1) { | ||
177 | widget->setProperty("minimum", minValue); | 173 | widget->setProperty("minimum", minValue); | ||
178 | } | 174 | } | ||
179 | } | 175 | } | ||
180 | QVariant maxValue = item->maxValue(); | 176 | QVariant maxValue = item->maxValue(); | ||
181 | if (maxValue.isValid()) { | 177 | if (maxValue.isValid()) { | ||
182 | // Only q3datetimeedit is using that property we can remove it if we stop supporting Qt3Support | | |||
183 | if (widget->metaObject()->indexOfProperty("maxValue") != -1) { | | |||
184 | widget->setProperty("maxValue", maxValue); | | |||
185 | } | | |||
186 | if (widget->metaObject()->indexOfProperty("maximum") != -1) { | 178 | if (widget->metaObject()->indexOfProperty("maximum") != -1) { | ||
187 | widget->setProperty("maximum", maxValue); | 179 | widget->setProperty("maximum", maxValue); | ||
188 | } | 180 | } | ||
189 | } | 181 | } | ||
190 | 182 | | |||
191 | if (widget->whatsThis().isEmpty()) { | 183 | if (widget->whatsThis().isEmpty()) { | ||
192 | QString whatsThis = item->whatsThis(); | 184 | QString whatsThis = item->whatsThis(); | ||
193 | if (!whatsThis.isEmpty()) { | 185 | if (!whatsThis.isEmpty()) { | ||
▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines |