From fb29ce022259eb672e8201d97caf868585c40ff3 Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Wed, 8 May 2019 17:18:00 -0400 Subject: [PATCH] Fix one more warning. setChecked() only takes a boolean, Qt::Checked/Unchecked are only used for tri-state checkboxes. --- oscar/daily.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar/daily.cpp b/oscar/daily.cpp index 0d4cb1ae..0866b908 100644 --- a/oscar/daily.cpp +++ b/oscar/daily.cpp @@ -424,7 +424,7 @@ Daily::Daily(QWidget *parent,gGraphView * shared) GraphView->setEmptyText(STR_Empty_NoData); previous_date=QDate(); - ui->calButton->setChecked(AppSetting->calendarVisible() ? Qt::Checked : Qt::Unchecked); + ui->calButton->setChecked(AppSetting->calendarVisible() ? true : false); on_calButton_toggled(AppSetting->calendarVisible()); GraphView->resetLayout();