Function to update all autowidgets

This commit is contained in:
elecpower
2021-05-12 17:13:39 +10:00
parent 8b61ce5ce7
commit 0dddcd2ac8
14 changed files with 25 additions and 11 deletions
+11
View File
@@ -19,6 +19,7 @@
*/
#include "genericpanel.h"
#include "autowidget.h"
#include <TimerEdit>
#include <QComboBox>
@@ -127,3 +128,13 @@ void GenericPanel::disableMouseScrolling()
foreach(QWidget * te, findChildren<TimerEdit*>())
setFocusFilter(te);
}
void GenericPanel::updateAutoWidgets()
{
foreach(QWidget *wdgt, findChildren<QWidget *>()) {
AutoWidget *autowdgt = dynamic_cast<AutoWidget *>(wdgt);
if (autowdgt) {
autowdgt->updateValue();
}
}
}