You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
37 lines
1.4 KiB
15 years ago
|
/***************************************************************************
|
||
|
* 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()
|
||
|
{
|
||
|
}
|