From ae2a03c2941bf92573f89b88ef73f8aa842bea0a Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kodo/kimagenumber.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 kodo/kimagenumber.h (limited to 'kodo/kimagenumber.h') diff --git a/kodo/kimagenumber.h b/kodo/kimagenumber.h new file mode 100644 index 0000000..57f96e2 --- /dev/null +++ b/kodo/kimagenumber.h @@ -0,0 +1,53 @@ +/* + * Mouspedometa + * Based on the original Xodometer VMS/Motif sources. + * + * Written by Armen Nakashian + * Compaq Computer Corporation + * Houston TX + * 22 May 1998 + * + * If you make improvements or enhancements to Mouspedometa, please send + * them back to the author at any of the following addresses: + * + * armen@nakashian.com + * + * Thanks to Mark Granoff for writing the original Xodometer, and + * the whole KDE team for making such a nice environment to write + * programs in. + * + * + * This software is provided as is with no warranty of any kind, + * expressed or implied. Neither Digital Equipment Corporation nor + * Armen Nakashian will be held accountable for your use of this + * software. + */ + +#ifndef KIMGNUM_H +#define KIMGNUM_H + +#include +#include + +class KImageNumber : public QFrame +{ + Q_OBJECT + Q_PROPERTY( double m_value READ value WRITE setValue ) +public: + KImageNumber(const QString& font, QWidget* parent=0, const char* name=0); + + virtual ~KImageNumber(); + + void paintEvent(QPaintEvent*); + virtual QSize sizeHint() const; + double value() const; + +public slots: + void setValue(double v); + +protected: + double m_value; + QPixmap* fontPix; +}; + +#endif -- cgit v1.2.1