Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 4 files). Show all
Unified · Split
| @@ -298,13 +298,21 @@ void setupPreferences() { · 297 unmodified lines | ||
| 298 | 298 | preference->setMax(2.2f); |
| 299 | 299 | preference->setDecimals(3); |
| 300 | 300 | preference->setStep(0.001f); |
| 301 | + | |
| 302 | + QVariantMap properties; | |
| 303 | + properties["anchors.right"] = "undefined"; | |
| 304 | + preference->setProperties(properties); | |
| 305 | + | |
| 301 | 306 | preferences->addPreference(preference); |
| 302 | 307 | } |
| 303 | 308 | { |
| 304 | 309 | auto preference = new ButtonPreference(MOVEMENT, "RESET SENSORS", [] { |
| 305 | 310 | qApp->resetSensors(); |
| 306 | 311 | }); |
| 307 | − | |
| 312 | + QVariantMap properties; | |
| 313 | + properties["width"] = "180"; | |
| 314 | + properties["anchors.left"] = "undefined"; | |
| 315 | + preference->setProperties(properties); | |
| 308 | 316 | preferences->addPreference(preference); |
| 309 | 317 | } |
| 310 | 318 | |