History

allow passing properties to preferences; left align 'User real-world height' & right-align 'reset sensors' (Mukul's request)

Alexander Ivash committed 8 years ago

Commit 2c07aa71 parent 56cd4e54 files · +45 −8Browse files

Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 4 files). Show all

Unified · Split

interface/src/ui/PreferencesDialog.cpp+9−1
@@ -298,13 +298,21 @@ void setupPreferences() { · 297 unmodified lines
298298 preference->setMax(2.2f);
299299 preference->setDecimals(3);
300300 preference->setStep(0.001f);
301+
302+ QVariantMap properties;
303+ properties["anchors.right"] = "undefined";
304+ preference->setProperties(properties);
305+
301306 preferences->addPreference(preference);
302307 }
303308 {
304309 auto preference = new ButtonPreference(MOVEMENT, "RESET SENSORS", [] {
305310 qApp->resetSensors();
306311 });
307−
312+ QVariantMap properties;
313+ properties["width"] = "180";
314+ properties["anchors.left"] = "undefined";
315+ preference->setProperties(properties);
308316 preferences->addPreference(preference);
309317 }
310318

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t