}
}
-// DEPRECATED
-double KPlotWidget::dmod( double a, double b ) { return ( b * ( ( a / b ) - int( a / b ) ) ); }
-
void KPlotWidget::drawBox( QPainter *p ) {
if ( ShowGrid ) {
//Grid lines are placed at locations of primary axes' major tickmarks
}
-// DEPRECATED
-void KPlotWidget::setXAxisLabel( const QString& xlabel ) {
- mAxes[BottomAxis]->setLabel(xlabel);
-}
-
-// DEPRECATED
-void KPlotWidget::setYAxisLabel( const QString& ylabel ) {
- mAxes[LeftAxis]->setLabel(ylabel);
-}
-
-
int KPlotWidget::leftPadding() const {
if ( LeftPadding >= 0 ) return LeftPadding;
if ( ! mAxes[LeftAxis]->label().isEmpty() && ShowTickLabels ) return 3*XPADDING;
*/
bool areObjectToolTipsShown() const { return ShowObjectToolTips; }
- /**
- * Sets the X-axis label.
- * Set the label to an empty string to omit the axis label.
- *
- * @deprecated set the label property in the BottomAxis directly
- * @param xlabel a short string describing the data plotted on the x-axis.
- */
- KDE_DEPRECATED void setXAxisLabel( const QString& xlabel );
- /**
- * Sets the Y-axis label
- * Set the label to an empty string to omit the axis label.
- *
- * @deprecated set the label property in the LeftAxis directly
- * @param ylabel a short string describing the data plotted on the y-axis.
- */
- KDE_DEPRECATED void setYAxisLabel( const QString& ylabel );
-
/**
* @returns the number of pixels to the left of the plot area.
* Padding values are set to -1 by default; if unchanged, this function will try to guess
*/
virtual void drawBox( QPainter *p );
- /**
- * Modulus function for double variables.
- * For example:
- * @code
- * double m = dmod( 17.0, 7.0 ); // m == 3.0
- * @endcode
- * @deprecated use fmod (already defined in \<math.h\>)
- * @return the remainder after dividing @p b into @p a.
- */
- KDE_DEPRECATED double dmod( double a, double b );
-
virtual void recalcPixRect();
QList<KPlotObject*> pointsUnderPoint( const QPoint& p ) const;