16 #ifndef QGSSYMBOLLAYERREFERENCE_H
17 #define QGSSYMBOLLAYERREFERENCE_H
20 #include "qgis_core.h"
62 : mSymbolKey( key ), mIndexPath( { index } )
69 : mSymbolKey( key ), mIndexPath( { indexPath } )
93 return ( mSymbolKey == other.mSymbolKey && mIndexPath == other.mIndexPath );
99 return ( mSymbolKey == other.mSymbolKey ) ?
100 mIndexPath < other.mIndexPath
101 : mSymbolKey < other.mSymbolKey;
105 SIP_PYOBJECT __repr__();
108 QStringList pathString;
109 for (
int path : sipCpp->symbolLayerIndexPath() )
111 pathString.append( QString::number( path ) );
113 QString
str = QStringLiteral(
"<QgsSymbolLayerId: %1 (%2)>" ).arg( sipCpp->symbolKey(), pathString.join(
',' ) );
114 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
123 QVector<int> mIndexPath;
141 : mLayerId( layerId ), mSymbolLayerId( symbolLayer )
157 return mLayerId == other.mLayerId &&
158 mSymbolLayerId == other.mSymbolLayerId;
162 SIP_PYOBJECT __repr__();
165 QStringList pathString;
166 for (
int path : sipCpp->symbolLayerId().symbolLayerIndexPath() )
168 pathString.append( QString::number( path ) );
170 QString
str = QStringLiteral(
"<QgsSymbolLayerReference: %1 - %2 (%3)>" ).arg( sipCpp->layerId(), sipCpp->symbolLayerId().symbolKey(), pathString.join(
',' ) );
171 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
182 return qHash(
id.symbolKey() ) ^
qHash(
id.symbolLayerIndexPath() );