compile
[kdegraphics.git] / kgamma / kcmkgamma / displaynumber.h
blob1a33700a14d61416d569eb6dd1dab4bf4ccfcc8f
1 /***************************************************************************
2 displaynumber.h - description
3 -------------------
4 begin : Sun Feb 23 2003
5 copyright : (C) 2003 by Michael v.Ostheim
6 email : ostheimm@users.berlios.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
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. *
15 * *
16 ***************************************************************************/
18 #ifndef DISPLAYNUMBER_H
19 #define DISPLAYNUMBER_H
21 #include <qlabel.h>
23 /**
24 *@author Michael v.Ostheim
27 class DisplayNumber : public QLabel {
28 Q_OBJECT
29 public:
30 DisplayNumber(QWidget *parent=0, int digits=0, int prec=0);
31 ~DisplayNumber();
32 void setFont( const QFont & f );
33 void setNum(double num);
34 void setWidth(int digits);
35 void setPrecision(int prec) { precision = prec; };
37 private:
38 int dg, precision;
41 #endif