]> git.sesse.net Git - nageru/blobdiff - lrameter.h
Re-run IWYU, again with lots of manual cleanup.
[nageru] / lrameter.h
index ec84b83cd71716c79788ad247e68f44f348d320b..bcd8377036b7915f7dd858b260f4d19adc8b03de 100644 (file)
@@ -3,10 +3,10 @@
 #ifndef LRAMETER_H
 #define LRAMETER_H
 
-#include <QWidget>
+#include <math.h>
 #include <QLabel>
 #include <QPaintEvent>
-
+#include <QWidget>
 #include <mutex>
 
 class LRAMeter : public QWidget
@@ -21,7 +21,7 @@ public:
                this->level_lufs = level_lufs;
                this->range_low_lufs = range_low_lufs;
                this->range_high_lufs = range_high_lufs;
-               update();
+               QMetaObject::invokeMethod(this, "update", Qt::AutoConnection);
        }
 
 private: