16 #ifndef QGSRECENTSTYLEHANDLER_H
17 #define QGSRECENTSTYLEHANDLER_H
20 #include "qgis_core.h"
23 #include <unordered_map>
96 template <
class SymbolType> std::unique_ptr< SymbolType >
recentSymbol(
const QString &identifier )
const SIP_SKIP
98 std::unique_ptr< QgsSymbol > tmpSymbol( recentSymbol( identifier ) );
99 if ( SymbolType *symbolCastToType =
dynamic_cast<SymbolType *
>( tmpSymbol.get() ) )
101 return std::unique_ptr< SymbolType >(
dynamic_cast<SymbolType *
>( tmpSymbol.release() ) );
116 std::unordered_map< QString, std::unique_ptr< QgsSymbol > > mRecentSymbols;
120 #endif // QGSRECENTSTYLEHANDLER_H