Boston, MA 02110-1301, USA.
*/
-#ifndef __EXTDATEWIDGET_H__
-#define __EXTDATEWIDGET_H__
+#ifndef EXTDATEWIDGET_H
+#define EXTDATEWIDGET_H
#include "extdatetime.h"
double x() const { return X; }
double y() const { return Y; }
- QPoint qpoint( QRect pb, DRect db ) {
+ QPoint qpoint( const QRect& pb, const DRect& db ) {
int px = pb.left() + int( pb.width()*( x() - db.x() )/db.width() );
int py = pb.top() + int( pb.height()*( db.y2() - y() )/db.height() );
return QPoint( px, py );
#include "kplotwidget.h"
#include "kplotwidget.moc"
-KPlotWidget::KPlotWidget( double x1, double x2, double y1, double y2, QWidget *parent, const char* name )
- : QWidget( parent, name, Qt::WNoAutoErase ),
+KPlotWidget::KPlotWidget( double x1, double x2, double y1, double y2, QWidget *parent )
+ : QWidget( parent, Qt::WNoAutoErase ),
dXtick(0.0), dYtick(0.0),
nmajX(0), nminX(0), nmajY(0), nminY(0),
ShowTickMarks( true ), ShowTickLabels( true ), ShowGrid( false )
* @param parent the parent widget
* @param name name label for the KPlotWidget
*/
- KPlotWidget( double x1=0.0, double x2=1.0, double y1=0.0, double y2=1.0, QWidget *parent=0, const char* name=0 );
+ KPlotWidget( double x1=0.0, double x2=1.0, double y1=0.0, double y2=1.0, QWidget *parent=0 );
/**
* Destructor (empty)
* This function is deprecated, set the label property in the BottomAxis directly.
* @param xlabel a short string describing the data plotted on the x-axis.
*/
- virtual void setXAxisLabel( QString xlabel ) { BottomAxis.setLabel(xlabel); }
+ virtual void setXAxisLabel( const QString& xlabel ) { BottomAxis.setLabel(xlabel); }
/**
* Sets the Y-axis label
* Set the label to an empty string to omit the axis label.
* This function is deprecated, set the label property in the LeftAxis directly.
* @param ylabel a short string describing the data plotted on the y-axis.
*/
- virtual void setYAxisLabel( QString ylabel ) { LeftAxis.setLabel(ylabel); }
+ virtual void setYAxisLabel( const QString& ylabel ) { LeftAxis.setLabel(ylabel); }
/**
* @returns the number of pixels to the left of the plot area.
return list;
}
-GlossaryDialog::GlossaryDialog( bool folded, QWidget *parent, const char *name)
- : KDialogBase( Plain, i18n( "Glossary" ), Close, NoDefault, parent, name, false )
+GlossaryDialog::GlossaryDialog( bool folded, QWidget *parent )
+ : KDialogBase( Plain, i18n( "Glossary" ), Close, NoDefault, parent, "glossary-dialog", false )
{
//this string will be used for all items. If a backgroundpicture should
//be used call Glossary::setBackgroundPicture().
* @param folded whether to fold the various items in subtrees depending on the
* first letter of every item
* @param parent the parent of the new dialog
- * @param name the optional name of the new dialog
*/
- GlossaryDialog( bool folded = true, QWidget *parent=0, const char *name=0);
+ GlossaryDialog( bool folded = true, QWidget *parent = 0 );
~GlossaryDialog();
/**