QGIS API Documentation 3.99.0-Master (752b475928d)
Loading...
Searching...
No Matches
QgsLayerNotesUtils Class Reference

Contains utility functions for working with layer notes. More...

#include <qgslayernotesutils.h>

Static Public Member Functions

static bool layerHasNotes (const QgsMapLayer *layer)
 Returns true if the specified layer has notes available.
static QString layerNotes (const QgsMapLayer *layer)
 Returns the notes for the specified layer.
static void removeNotes (QgsMapLayer *layer)
 Removes any notes for the specified layer.
static void setLayerNotes (QgsMapLayer *layer, const QString &notes)
 Sets the notes for the specified layer, where notes is a HTML formatted string.

Detailed Description

Contains utility functions for working with layer notes.

Since
QGIS 3.20

Definition at line 32 of file qgslayernotesutils.h.

Member Function Documentation

◆ layerHasNotes()

bool QgsLayerNotesUtils::layerHasNotes ( const QgsMapLayer * layer)
static

Returns true if the specified layer has notes available.

Definition at line 39 of file qgslayernotesutils.cpp.

◆ layerNotes()

QString QgsLayerNotesUtils::layerNotes ( const QgsMapLayer * layer)
static

Returns the notes for the specified layer.

The returned string is a HTML formatted set of user notations for the layer.

Definition at line 20 of file qgslayernotesutils.cpp.

◆ removeNotes()

void QgsLayerNotesUtils::removeNotes ( QgsMapLayer * layer)
static

Removes any notes for the specified layer.

Definition at line 47 of file qgslayernotesutils.cpp.

◆ setLayerNotes()

void QgsLayerNotesUtils::setLayerNotes ( QgsMapLayer * layer,
const QString & notes )
static

Sets the notes for the specified layer, where notes is a HTML formatted string.

Definition at line 28 of file qgslayernotesutils.cpp.


The documentation for this class was generated from the following files: