Qt: Fix locale with settings
Jeffrey Pfau jeffrey@endrift.com
Sun, 16 Aug 2015 16:31:47 -0700
2 files changed,
5 insertions(+),
5 deletions(-)
M
src/platform/qt/SettingsView.cpp
→
src/platform/qt/SettingsView.cpp
@@ -165,7 +165,7 @@ saveSetting(key, field->lineEdit());
} void SettingsView::saveSetting(const char* key, const QDoubleSpinBox* field) { - saveSetting(key, field->cleanText()); + saveSetting(key, field->value()); } void SettingsView::saveSetting(const char* key, const QLineEdit* field) {@@ -173,14 +173,14 @@ saveSetting(key, field->text());
} void SettingsView::saveSetting(const char* key, const QSlider* field) { - saveSetting(key, QString::number(field->value())); + saveSetting(key, field->value()); } void SettingsView::saveSetting(const char* key, const QSpinBox* field) { - saveSetting(key, field->cleanText()); + saveSetting(key, field->value()); } -void SettingsView::saveSetting(const char* key, const QString& field) { +void SettingsView::saveSetting(const char* key, const QVariant& field) { m_controller->setOption(key, field); m_controller->updateOption(key); }
M
src/platform/qt/SettingsView.h
→
src/platform/qt/SettingsView.h
@@ -40,7 +40,7 @@ void saveSetting(const char* key, const QDoubleSpinBox*);
void saveSetting(const char* key, const QLineEdit*); void saveSetting(const char* key, const QSlider*); void saveSetting(const char* key, const QSpinBox*); - void saveSetting(const char* key, const QString&); + void saveSetting(const char* key, const QVariant&); void loadSetting(const char* key, QAbstractButton*); void loadSetting(const char* key, QComboBox*);