Browse Source

thermostat: edit_prog: fix checkable DoW

master
Richard Genoud 4 years ago
parent
commit
f1576aaa61
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      soft/thermostat/src/edit_prog_dlg.cpp

+ 2
- 2
soft/thermostat/src/edit_prog_dlg.cpp View File

@ -83,9 +83,9 @@ EditProgDlg::EditProgDlg(struct Program &p, QWidget *parent, Qt::WindowFlags f)
m_dow_btn[i]->setProperty("idx", i);
set_font(m_dow_btn[i]);
m_dow_btn[i]->setSizePolicy(*szPolicy);
m_dow_btn[i]->setChecked(true);
m_dow_btn[i]->setCheckable(true);
if (p.DoW & (1 << i))
m_dow_btn[i]->setDown(true);
m_dow_btn[i]->setChecked(true);
dowLayout->addWidget(m_dow_btn[i], 0, Qt::AlignHCenter);
}


Loading…
Cancel
Save