QGIS API Documentation  3.6.0-Noosa (5873452)
Functions
qgslayoutitemscalebar.cpp File Reference
#include "qgslayoutitemscalebar.h"
#include "qgslayoutitemregistry.h"
#include "qgslayoutitemmap.h"
#include "qgslayout.h"
#include "qgslayoututils.h"
#include "qgsdistancearea.h"
#include "qgsscalebarrenderer.h"
#include "qgsdoubleboxscalebarrenderer.h"
#include "qgsmapsettings.h"
#include "qgsnumericscalebarrenderer.h"
#include "qgssingleboxscalebarrenderer.h"
#include "qgsticksscalebarrenderer.h"
#include "qgsrectangle.h"
#include "qgsproject.h"
#include "qgssymbollayerutils.h"
#include "qgsfontutils.h"
#include "qgsunittypes.h"
#include "qgssettings.h"
#include <QDomDocument>
#include <QDomElement>
#include <QFontMetricsF>
#include <QPainter>
#include <cmath>
Include dependency graph for qgslayoutitemscalebar.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 245 of file qgslayoutitemscalebar.cpp.

◆ prevNiceNumber()

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

Definition at line 252 of file qgslayoutitemscalebar.cpp.