QGIS API Documentation 3.39.0-Master (d85f3c2a281)
|
Contains utility functions for working with map scales. More...
#include <qgsscaleutils.h>
Static Public Member Functions | |
static bool | loadScaleList (const QString &fileName, QStringList &scales, QString &errorMessage) |
Load scales from the given file. | |
static bool | saveScaleList (const QString &fileName, const QStringList &scales, QString &errorMessage) |
Save scales to the given file. | |
Contains utility functions for working with map scales.
Definition at line 28 of file qgsscaleutils.h.
|
static |
Load scales from the given file.
fileName | the name of the file to process |
scales | it will contain loaded scales |
errorMessage | it will contain the error message if something went wrong |
true
on success and false
if failed Definition at line 48 of file qgsscaleutils.cpp.
|
static |
Save scales to the given file.
fileName | the name of the output file |
scales | the list of scales to save |
errorMessage | it will contain the error message if something went wrong |
true
on success and false
if failed Definition at line 22 of file qgsscaleutils.cpp.