mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:10:05 +00:00
Add other units to settings
This commit is contained in:
parent
fb4e111f84
commit
d937ffa9a4
6 changed files with 55 additions and 3 deletions
|
|
@ -132,6 +132,16 @@ public:
|
|||
types::GetSpeedUnitsName);
|
||||
AddRow(speedUnits_, "Speed", speedComboBox);
|
||||
|
||||
QComboBox* otherComboBox = new QComboBox(self);
|
||||
otherComboBox->setSizePolicy(QSizePolicy::Expanding,
|
||||
QSizePolicy::Preferred);
|
||||
otherUnits_.SetSettingsVariable(unitSettings.other_units());
|
||||
SCWX_SETTINGS_COMBO_BOX(otherUnits_,
|
||||
otherComboBox,
|
||||
types::OtherUnitsIterator(),
|
||||
types::GetOtherUnitsName);
|
||||
AddRow(otherUnits_, "Other", otherComboBox);
|
||||
|
||||
QSpacerItem* spacer =
|
||||
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
gridLayout_->addItem(spacer, row, 0);
|
||||
|
|
@ -145,6 +155,7 @@ public:
|
|||
|
||||
settings::SettingsInterface<std::string> accumulationUnits_ {};
|
||||
settings::SettingsInterface<std::string> echoTopsUnits_ {};
|
||||
settings::SettingsInterface<std::string> otherUnits_ {};
|
||||
settings::SettingsInterface<std::string> speedUnits_ {};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue