/*************************************************************************** wnumber.h - description ------------------- begin : Wed Jun 18 2003 copyright : (C) 2003 by Tue & Ken Haste Andersen email : haste@diku.dk ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef WNUMBER_H #define WNUMBER_H #include #include "widget/wlabel.h" #include "skin/skincontext.h" class WNumber : public WLabel { Q_OBJECT public: explicit WNumber(QWidget* pParent = nullptr); void setup(const QDomNode& node, const SkinContext& context) override; void onConnectedControlChanged(double dParameter, double dValue) override; public slots: virtual void setValue(double dValue); protected: // Number of digits to round to. int m_iNoDigits; }; #endif