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 | 172 | // KSelector is using this property | ||
173 | if (widget->metaObject()->indexOfProperty("minValue") != -1) { | 173 | if (widget->metaObject()->indexOfProperty("minValue") != -1) { | ||
174 | widget->setProperty("minValue", minValue); | 174 | widget->setProperty("minValue", minValue); | ||
175 | } | 175 | } | ||
176 | if (widget->metaObject()->indexOfProperty("minimum") != -1) { | 176 | if (widget->metaObject()->indexOfProperty("minimum") != -1) { | ||
177 | widget->setProperty("minimum", minValue); | 177 | widget->setProperty("minimum", minValue); | ||
178 | } | 178 | } | ||
179 | } | 179 | } | ||
180 | QVariant maxValue = item->maxValue(); | 180 | QVariant maxValue = item->maxValue(); | ||
181 | if (maxValue.isValid()) { | 181 | if (maxValue.isValid()) { | ||
182 | // Only q3datetimeedit is using that property we can remove it if we stop supporting Qt3Support | 182 | // KSelector is using this property | ||
183 | if (widget->metaObject()->indexOfProperty("maxValue") != -1) { | 183 | if (widget->metaObject()->indexOfProperty("maxValue") != -1) { | ||
184 | widget->setProperty("maxValue", maxValue); | 184 | widget->setProperty("maxValue", maxValue); | ||
185 | } | 185 | } | ||
186 | if (widget->metaObject()->indexOfProperty("maximum") != -1) { | 186 | if (widget->metaObject()->indexOfProperty("maximum") != -1) { | ||
187 | widget->setProperty("maximum", maxValue); | 187 | widget->setProperty("maximum", maxValue); | ||
188 | } | 188 | } | ||
189 | } | 189 | } | ||
190 | 190 | | |||
▲ Show 20 Lines • Show All 413 Lines • Show Last 20 Lines |