1 /***************************************************************************
2 rationalwidget.h - paint a rational number
5 copyright : (C) 2004 by Sebastian Stein
6 email : seb.kde@hpfsc.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 RATIONALWIDGET_H
19 #define RATIONALWIDGET_H
27 #include "fractionbasewidget.h"
31 /*! class to paint a rational number
33 * \author Sebastian Stein */
34 class RationalWidget
: public FractionBaseWidget
40 RationalWidget(QWidget
* parent
, const char * name
, const QString pnumber
, const uint pperiodStart
= 1, const uint pperiodLength
= 0);
45 /** set the task to be displayed */
46 void setRational(const QString pnumber
, const uint pperiodStart
= 1, const uint pperiodLength
= 0);
50 /** the rational number to be displayed */
53 /** starting of the period */
56 /** length of the period */
59 /** overrideing the paint event of FractionBaseWidget */
60 void paintEvent(QPaintEvent
*);