QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
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 31 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 38 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 19 of file qgslayernotesutils.cpp.

◆ removeNotes()

void QgsLayerNotesUtils::removeNotes ( QgsMapLayer layer)
static

Removes any notes for the specified layer.

Definition at line 46 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 27 of file qgslayernotesutils.cpp.


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