QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Functions
qgscomposerscalebar.cpp File Reference
#include "qgscomposerscalebar.h"
#include "qgscomposermap.h"
#include "qgscomposition.h"
#include "qgscomposerutils.h"
#include "qgsdistancearea.h"
#include "qgsscalebarstyle.h"
#include "qgsdoubleboxscalebarstyle.h"
#include "qgsmaprenderer.h"
#include "qgsnumericscalebarstyle.h"
#include "qgssingleboxscalebarstyle.h"
#include "qgsticksscalebarstyle.h"
#include "qgsrectangle.h"
#include "qgsproject.h"
#include "qgssymbollayerv2utils.h"
#include "qgsfontutils.h"
#include "qgsunittypes.h"
#include <QDomDocument>
#include <QDomElement>
#include <QFontMetricsF>
#include <QPainter>
#include <QSettings>
#include <cmath>
Include dependency graph for qgscomposerscalebar.cpp:

Go to the source code of this file.

Functions

double nextNiceNumber (double a, double d=1)
 
double prevNiceNumber (double a, double d=1)
 

Function Documentation

◆ nextNiceNumber()

double nextNiceNumber ( double  a,
double  d = 1 
)
inline

Definition at line 229 of file qgscomposerscalebar.cpp.

◆ prevNiceNumber()

double prevNiceNumber ( double  a,
double  d = 1 
)
inline

Definition at line 236 of file qgscomposerscalebar.cpp.