Add support for rawsource and rawswitch in autocombobox

This commit is contained in:
elecpower
2021-03-17 21:40:13 +11:00
parent aac6c74e59
commit 950fa3d105
3 changed files with 67 additions and 13 deletions
+3 -1
View File
@@ -77,7 +77,9 @@ class AutoTimeEdit: public QTimeEdit
protected slots:
void onTimeChanged(QTime time)
{
if ((panel && panel->lock) || !field || lock)
if (panel && panel->lock)
return;
if (!field || lock)
return;
unsigned int val = time.hour() * 3600 + time.minute() * 60 + time.second();