suppress overlapping tick labels
This commit is contained in:
parent
33c0d92ee1
commit
228e94dcce
@ -3,7 +3,7 @@
|
||||
* This file may be used under the terms of the QSkinny License, Version 1.0
|
||||
*****************************************************************************/
|
||||
|
||||
// code cpoied from Qwt - with permission from the author ( = myself )
|
||||
// code cpopied from Qwt - with permission from the author ( = myself )
|
||||
|
||||
#include "QskScaleEngine.h"
|
||||
#include "QskFunctions.h"
|
||||
@ -23,7 +23,7 @@ namespace
|
||||
|
||||
inline int fuzzyCompare( double value1, double value2, double intervalSize )
|
||||
{
|
||||
const double eps = qAbs( 1.0e-6 * intervalSize );
|
||||
const double eps = std::abs( 1.0e-6 * intervalSize );
|
||||
|
||||
if ( value2 - value1 > eps )
|
||||
return -1;
|
||||
|
@ -35,8 +35,8 @@ class QSK_EXPORT QskScaleEngine
|
||||
void setAttributes( Attributes );
|
||||
Attributes attributes() const;
|
||||
|
||||
QskScaleTickmarks divideScale(qreal x1, qreal x2,
|
||||
int maxMajorSteps, int maxMinorSteps, qreal stepSize = 0.0) const;
|
||||
QskScaleTickmarks divideScale( qreal x1, qreal x2,
|
||||
int maxMajorSteps, int maxMinorSteps, qreal stepSize = 0.0 ) const;
|
||||
|
||||
void autoScale( int maxNumSteps, qreal& x1, qreal& x2, qreal& stepSize ) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user