QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
23 #include <QDomElement>
44 mBearingFormat.reset( format );
50 return mBearingFormat.get();
55 QDomElement bearingElement = element.firstChildElement( QStringLiteral(
"BearingFormat" ) );
64 QDomElement element = doc.createElement( QStringLiteral(
"ProjectDisplaySettings" ) );
66 QDomElement bearingElement = doc.createElement( QStringLiteral(
"BearingFormat" ) );
67 mBearingFormat->writeXml( bearingElement, doc, context );
68 element.appendChild( bearingElement );
void setBearingFormat(QgsBearingNumericFormat *format)
Sets the project bearing format, which controls how bearings associated with the project are displaye...
QgsProjectDisplaySettings(QObject *parent=nullptr)
Constructor for QgsProjectDisplaySettings with the specified parent object.
QDomElement writeXml(QDomDocument &doc, const QgsReadWriteContext &context) const
Returns a DOM element representing the settings.
bool readXml(const QDomElement &element, const QgsReadWriteContext &context)
Reads the settings's state from a DOM element.
void reset()
Resets the settings to a default state.
const QgsBearingNumericFormat * bearingFormat() const
Returns the project bearing's format, which controls how bearings associated with the project are dis...
void bearingFormatChanged()
Emitted when the bearing format changes.
static QgsNumericFormatRegistry * numericFormatRegistry()
Gets the registry of available numeric formats.
~QgsProjectDisplaySettings() override
static QgsBearingNumericFormat * bearingFormat()
Returns the default bearing format, which controls how angular bearings are displayed.