blob: 43e3642a8310202d4756332c65ccb6a4504a02c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/***************************************************************************
* ktouchchartwidget.cpp *
* --------------------- *
* Copyright (C) 2005 by Andreas Nicolai *
* [email protected] *
* *
* 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 <tqpainter.h>
#include <klocale.h>
#include <numeric> // for mathematical functions
#include <cmath>
KTouchChartWidget::KTouchChartWidget(TQWidget* parent, const char *name)
: KPlotWidget(0.0, 1.0, 0.0, 1.0, parent, name)
{
setShowGrid( false ); // no grid please
setBGColor( TQColor( "white" ) );
setFGColor( TQColor( "black" ) );
setLimits( 0.0, 120.0, 0.0, 240.0 );
setXAxisLabel( i18n( "Progress" ) );
setYAxisLabel( i18n( "Words per second" ) );
}
KTouchChartWidget::~KTouchChartWidget()
{
}
|