From: Pino Toscano Date: Fri, 16 Feb 2007 21:47:20 +0000 (+0000) Subject: API changes: X-Git-Tag: v3.80.3~45 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=86c1a1e0173cd8703dc239cd50a8310239afb528;p=libqmvoc.git API changes: - less contractions - no references as return values where it makes no sense - minimal apidox where missing svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634327 --- diff --git a/kdeeduplot/kplotaxis.cpp b/kdeeduplot/kplotaxis.cpp index 5f547b1..a242f55 100644 --- a/kdeeduplot/kplotaxis.cpp +++ b/kdeeduplot/kplotaxis.cpp @@ -81,11 +81,11 @@ QString KPlotAxis::label() const return d->m_label; } -void KPlotAxis::setTickLabelFormat( char fmt, int fieldWidth, int prec ) +void KPlotAxis::setTickLabelFormat( char format, int fieldWidth, int precision ) { d->m_labelFieldWidth = fieldWidth; - d->m_labelFmt = fmt; - d->m_labelPrec = prec; + d->m_labelFmt = format; + d->m_labelPrec = precision; } int KPlotAxis::tickLabelWidth() const @@ -93,12 +93,12 @@ int KPlotAxis::tickLabelWidth() const return d->m_labelFieldWidth; } -char KPlotAxis::tickLabelFmt() const +char KPlotAxis::tickLabelFormat() const { return d->m_labelFmt; } -int KPlotAxis::tickLabelPrec() const +int KPlotAxis::tickLabelPrecision() const { return d->m_labelPrec; } @@ -169,7 +169,7 @@ void KPlotAxis::setTickMarks( double x0, double length ) { } QString KPlotAxis::tickLabel( double val ) const { - if ( tickLabelFmt() == 't' ) { + if ( d->m_labelFmt == 't' ) { while ( val < 0.0 ) val += 24.0; while ( val >= 24.0 ) val -= 24.0; @@ -178,15 +178,15 @@ QString KPlotAxis::tickLabel( double val ) const { return QString( "%1:%2" ).arg( h, 2, 10, QLatin1Char('0') ).arg( m, 2, 10, QLatin1Char('0') ); } - return QString( "%1" ).arg( val, tickLabelWidth(), tickLabelFmt(), tickLabelPrec() ); + return QString( "%1" ).arg( val, d->m_labelFieldWidth, d->m_labelFmt, d->m_labelPrec ); } -QList& KPlotAxis::majorTickMarks() const +QList< double > KPlotAxis::majorTickMarks() const { return d->m_MajorTickMarks; } -QList& KPlotAxis::minorTickMarks() const +QList< double > KPlotAxis::minorTickMarks() const { return d->m_MinorTickMarks; } diff --git a/kdeeduplot/kplotaxis.h b/kdeeduplot/kplotaxis.h index adedc35..3a5b17f 100644 --- a/kdeeduplot/kplotaxis.h +++ b/kdeeduplot/kplotaxis.h @@ -97,13 +97,13 @@ public: * Note that when the format character is 't', the fieldWidth and prec * values are ignored. * - * @param fmt the format specification character + * @param format the format specification character * @param fieldWidth the number of characters in the output string. * If set to 0, the string will be as wide as it needs to be to fully * render the value. - * @param prec the number of characters following the decimal point. + * @param precison the number of characters following the decimal point. */ - void setTickLabelFormat( char fmt = 'g', int fieldWidth = 0, int prec = -1 ); + void setTickLabelFormat( char format = 'g', int fieldWidth = 0, int precision = -1 ); /** * @return the field width of the tick labels @@ -113,12 +113,12 @@ public: /** * @return the number format of the tick labels */ - char tickLabelFmt() const; + char tickLabelFormat() const; /** * @return the number precision of the tick labels */ - int tickLabelPrec() const; + int tickLabelPrecision() const; /** * Determine the positions of major and minor tickmarks for this axis. @@ -129,9 +129,15 @@ public: */ void setTickMarks( double x0, double length ); - QList& majorTickMarks() const; + /** + * @return the list with the major tickmarks + */ + QList< double > majorTickMarks() const; - QList& minorTickMarks() const; + /** + * @return the list with the minor tickmarks + */ + QList< double > minorTickMarks() const; private: class Private;