1 /***************************************************************************
2 displaynumber.h - description
4 begin : Sun Feb 23 2003
5 copyright : (C) 2003 by Michael v.Ostheim
6 email : ostheimm@users.berlios.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #ifndef DISPLAYNUMBER_H
19 #define DISPLAYNUMBER_H
24 *@author Michael v.Ostheim
27 class DisplayNumber
: public QLabel
{
30 DisplayNumber(QWidget
*parent
=0, int digits
=0, int prec
=0);
32 void setFont( const QFont
& f
);
33 void setNum(double num
);
34 void setWidth(int digits
);
35 void setPrecision(int prec
) { precision
= prec
; };