17 #include <QtCore/qglobal.h> 19 #include <QtWidgets/QWidget> 36 #if (QT_VERSION_MAJOR == 5) && (QT_VERSION_MINOR < 11) 37 #define horizontalAdvance width 39 return w->fontMetrics().horizontalAdvance(text);
40 #ifdef horizontalAdvance 41 #undef horizontalAdvance 47 virtual void renew() = 0;
static int fontMetricsHorizontalAdvance(const QWidget *w, const QString &text)
For compatibility with old Qt (until we use 5.10.1 for TRIK firmware)
Definition: abstractIndicator.h:34
Base class for a widget that can show some reading from sensor, encoder and so on.
Definition: abstractIndicator.h:24
Definition: abstractIndicator.h:21
AbstractIndicator(QWidget *parent=0)
Constructor.
Definition: abstractIndicator.h:31
virtual void renew()=0
Rereads sensor and updates widget contents.