Fix one more warning. setChecked() only takes a boolean, Qt::Checked/Unchecked are only used for tri-state checkboxes.

This commit is contained in:
sawinglogz 2019-05-08 17:18:00 -04:00
parent e47660e15a
commit fb29ce0222

View File

@ -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();