File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
python/core/auto_generated/symbology Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1108,7 +1108,7 @@ A symbol entity for QgsStyle databases.
1108
1108
%End
1109
1109
public:
1110
1110
1111
- QgsStyleSymbolEntity( const QgsSymbol *symbol );
1111
+ QgsStyleSymbolEntity( QgsSymbol *symbol );
1112
1112
%Docstring
1113
1113
Constructor for QgsStyleSymbolEntity, with the specified ``symbol``.
1114
1114
@@ -1118,7 +1118,7 @@ Ownership of ``symbol`` is NOT transferred.
1118
1118
virtual QgsStyle::StyleEntity type() const;
1119
1119
1120
1120
1121
- const QgsSymbol *symbol() const;
1121
+ QgsSymbol *symbol() const;
1122
1122
%Docstring
1123
1123
Returns the entity's symbol.
1124
1124
%End
@@ -1138,7 +1138,7 @@ A color ramp entity for QgsStyle databases.
1138
1138
%End
1139
1139
public:
1140
1140
1141
- QgsStyleColorRampEntity( const QgsColorRamp *ramp );
1141
+ QgsStyleColorRampEntity( QgsColorRamp *ramp );
1142
1142
%Docstring
1143
1143
Constructor for QgsStyleColorRampEntity, with the specified color ``ramp``.
1144
1144
@@ -1148,7 +1148,7 @@ Ownership of ``ramp`` is NOT transferred.
1148
1148
virtual QgsStyle::StyleEntity type() const;
1149
1149
1150
1150
1151
- const QgsColorRamp *ramp() const;
1151
+ QgsColorRamp *ramp() const;
1152
1152
%Docstring
1153
1153
Returns the entity's color ramp.
1154
1154
%End
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ QgsLayoutItem::ExportLayerBehavior QgsLayoutItemPage::exportLayerBehavior() cons
211
211
212
212
bool QgsLayoutItemPage::accept ( QgsStyleEntityVisitorInterface *visitor ) const
213
213
{
214
- QgsStyleSymbolEntity entity ( pageStyleSymbol () );
214
+ QgsStyleSymbolEntity entity ( mPageStyleSymbol . get () );
215
215
if ( !visitor->visit ( QgsStyleEntityVisitorInterface::StyleLeaf ( &entity, QStringLiteral ( " page" ), QObject::tr ( " Page" ) ) ) )
216
216
return false ;
217
217
return true ;
Original file line number Diff line number Diff line change @@ -1140,7 +1140,7 @@ class CORE_EXPORT QgsStyleSymbolEntity : public QgsStyleEntityInterface
1140
1140
*
1141
1141
* Ownership of \a symbol is NOT transferred.
1142
1142
*/
1143
- QgsStyleSymbolEntity ( const QgsSymbol *symbol )
1143
+ QgsStyleSymbolEntity ( QgsSymbol *symbol )
1144
1144
: mSymbol ( symbol )
1145
1145
{}
1146
1146
@@ -1149,11 +1149,11 @@ class CORE_EXPORT QgsStyleSymbolEntity : public QgsStyleEntityInterface
1149
1149
/* *
1150
1150
* Returns the entity's symbol.
1151
1151
*/
1152
- const QgsSymbol *symbol () const { return mSymbol ; }
1152
+ QgsSymbol *symbol () const { return mSymbol ; }
1153
1153
1154
1154
private:
1155
1155
1156
- const QgsSymbol *mSymbol = nullptr ;
1156
+ QgsSymbol *mSymbol = nullptr ;
1157
1157
1158
1158
};
1159
1159
@@ -1172,7 +1172,7 @@ class CORE_EXPORT QgsStyleColorRampEntity : public QgsStyleEntityInterface
1172
1172
*
1173
1173
* Ownership of \a ramp is NOT transferred.
1174
1174
*/
1175
- QgsStyleColorRampEntity ( const QgsColorRamp *ramp )
1175
+ QgsStyleColorRampEntity ( QgsColorRamp *ramp )
1176
1176
: mRamp ( ramp )
1177
1177
{}
1178
1178
@@ -1181,11 +1181,11 @@ class CORE_EXPORT QgsStyleColorRampEntity : public QgsStyleEntityInterface
1181
1181
/* *
1182
1182
* Returns the entity's color ramp.
1183
1183
*/
1184
- const QgsColorRamp *ramp () const { return mRamp ; }
1184
+ QgsColorRamp *ramp () const { return mRamp ; }
1185
1185
1186
1186
private:
1187
1187
1188
- const QgsColorRamp *mRamp = nullptr ;
1188
+ QgsColorRamp *mRamp = nullptr ;
1189
1189
};
1190
1190
1191
1191
/* *
You can’t perform that action at this time.
0 commit comments