diff options
Diffstat (limited to 'desktop-widgets/filterwidget2.cpp')
-rw-r--r-- | desktop-widgets/filterwidget2.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp index f1898ca38..66080cfca 100644 --- a/desktop-widgets/filterwidget2.cpp +++ b/desktop-widgets/filterwidget2.cpp @@ -10,6 +10,13 @@ FilterWidget2::FilterWidget2(QWidget* parent) : QWidget(parent) ui.setupUi(this); FilterData data; + + // Use default values to set minimum and maximum air and water temperature. + ui.minAirTemp->setRange(data.minAirTemp, data.maxAirTemp); + ui.maxAirTemp->setRange(data.minAirTemp, data.maxAirTemp); + ui.minWaterTemp->setRange(data.minWaterTemp, data.maxWaterTemp); + ui.maxWaterTemp->setRange(data.minWaterTemp, data.maxWaterTemp); + ui.minRating->setCurrentStars(data.minRating); ui.maxRating->setCurrentStars(data.maxRating); ui.minVisibility->setCurrentStars(data.minVisibility); |