|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
Handles and tracks style items recently used in the QGIS GUI. More...
#include <qgsrecentstylehandler.h>
Public Member Functions | |
| QgsRecentStyleHandler () | |
| Creates a new recent style handler. | |
| QgsRecentStyleHandler (const QgsRecentStyleHandler &other)=delete | |
| ~QgsRecentStyleHandler () | |
| QgsRecentStyleHandler & | operator= (const QgsRecentStyleHandler &other)=delete |
| void | pushRecentSymbol (const QString &identifier, QgsSymbol *symbol) |
| Pushes a recently used symbol with the specified identifier. | |
| template<class SymbolType> | |
| std::unique_ptr< SymbolType > | recentSymbol (const QString &identifier) const |
Returns a copy of the recently used symbol with the specified identifier, or nullptr if no symbol with the identifier exists, and casts it to a particular symbol type. | |
| QgsSymbol * | recentSymbol (const QString &identifier) const |
Returns a copy of the recently used symbol with the specified identifier, or nullptr if no symbol with the identifier exists. | |
Handles and tracks style items recently used in the QGIS GUI.
QgsRecentStyleHandler is not usually directly created, but rather accessed through QgsApplication::recentStyleHandler().
Definition at line 39 of file qgsrecentstylehandler.h.
|
default |
Creates a new recent style handler.
QgsRecentStyleHandler is not usually directly created, but rather accessed through QgsApplication::recentStyleHandler().
|
delete |
|
default |
|
delete |
| void QgsRecentStyleHandler::pushRecentSymbol | ( | const QString & | identifier, |
| QgsSymbol * | symbol ) |
Pushes a recently used symbol with the specified identifier.
Ownership of symbol is transferred.
Definition at line 25 of file qgsrecentstylehandler.cpp.
|
inline |
Returns a copy of the recently used symbol with the specified identifier, or nullptr if no symbol with the identifier exists, and casts it to a particular symbol type.
Definition at line 95 of file qgsrecentstylehandler.h.
| QgsSymbol * QgsRecentStyleHandler::recentSymbol | ( | const QString & | identifier | ) | const |
Returns a copy of the recently used symbol with the specified identifier, or nullptr if no symbol with the identifier exists.
Caller takes ownership of the returned object.
Definition at line 30 of file qgsrecentstylehandler.cpp.