QgsDxfExport should not be copied

This commit is contained in:
Matthias Kuhn 2019-11-05 19:46:10 +01:00
parent 5eeba90341
commit 00efcbf91f
3 changed files with 10 additions and 23 deletions

View File

@ -85,6 +85,8 @@ The attribute value is used for layer names.
Constructor for QgsDxfExport.
%End
~QgsDxfExport();
void setMapSettings( const QgsMapSettings &settings );
%Docstring
Set map settings and assign layer name attributes
@ -471,6 +473,9 @@ Register name of layer for feature
:param layer: dxf layer of feature
%End
private:
QgsDxfExport( const QgsDxfExport &other );
QgsDxfExport &operator=( const QgsDxfExport & );
};
QFlags<QgsDxfExport::Flag> operator|(QgsDxfExport::Flag f1, QFlags<QgsDxfExport::Flag> f2);

View File

@ -61,27 +61,6 @@
#include <QIODevice>
QgsDxfExport::QgsDxfExport( const QgsDxfExport &dxfExport )
{
*this = dxfExport;
}
QgsDxfExport &QgsDxfExport::operator=( const QgsDxfExport &dxfExport )
{
mMapSettings = dxfExport.mMapSettings;
mLayerNameAttribute = dxfExport.mLayerNameAttribute;
mSymbologyScale = dxfExport.mSymbologyScale;
mSymbologyExport = dxfExport.mSymbologyExport;
mMapUnits = dxfExport.mMapUnits;
mLayerTitleAsName = dxfExport.mLayerTitleAsName;
mSymbolLayerCounter = 0; // internal counter
mNextHandleId = 0;
mBlockCounter = 0;
mCrs = QgsCoordinateReferenceSystem();
mFactor = dxfExport.mFactor;
mForce2d = dxfExport.mForce2d;
return *this;
}
void QgsDxfExport::setMapSettings( const QgsMapSettings &settings )
{

View File

@ -136,8 +136,6 @@ class CORE_EXPORT QgsDxfExport
* Constructor for QgsDxfExport.
*/
QgsDxfExport() = default;
QgsDxfExport( const QgsDxfExport &dxfExport ) SIP_SKIP;
QgsDxfExport &operator=( const QgsDxfExport &dxfExport );
/**
* Set map settings and assign layer name attributes
@ -493,6 +491,11 @@ class CORE_EXPORT QgsDxfExport
void registerDxfLayer( const QString &layerId, QgsFeatureId fid, const QString &layer );
private:
#ifdef SIP_RUN
QgsDxfExport( const QgsDxfExport &other );
QgsDxfExport &operator=( const QgsDxfExport & );
#endif
//! Extent for export, only intersecting features are exported. If the extent is an empty rectangle, all features are exported
QgsRectangle mExtent;
//! Scale for symbology export (used if symbols units are mm)