diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch) | |
tree | d3bb9f5d25a2dc09ca81adecf39621d871534297 /ktouch/src/ktouchchartwidget.cpp | |
download | tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip |
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/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktouch/src/ktouchchartwidget.cpp')
-rw-r--r-- | ktouch/src/ktouchchartwidget.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ktouch/src/ktouchchartwidget.cpp b/ktouch/src/ktouchchartwidget.cpp new file mode 100644 index 00000000..aba87f28 --- /dev/null +++ b/ktouch/src/ktouchchartwidget.cpp @@ -0,0 +1,36 @@ +/*************************************************************************** + * ktouchchartwidget.cpp * + * --------------------- * + * Copyright (C) 2005 by Andreas Nicolai * + * ghorwin@users.sourceforge.net * + * * + * 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. * + ***************************************************************************/ + +#include "ktouchchartwidget.h" +#include "ktouchchartwidget.moc" + +#include <qpainter.h> + +#include <klocale.h> + +#include <numeric> // for mathematical functions +#include <cmath> + +KTouchChartWidget::KTouchChartWidget(QWidget* parent, const char *name) + : KPlotWidget(0.0, 1.0, 0.0, 1.0, parent, name) +{ + setShowGrid( false ); // no grid please + setBGColor( QColor( "white" ) ); + setFGColor( QColor( "black" ) ); + setLimits( 0.0, 120.0, 0.0, 240.0 ); + setXAxisLabel( i18n( "Progress" ) ); + setYAxisLabel( i18n( "Words per second" ) ); +} + +KTouchChartWidget::~KTouchChartWidget() +{ +} |