Function to update all autowidgets
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user