25
25
#include < QSettings>
26
26
27
27
28
- QgsAttributeDialog::QgsAttributeDialog ( QgsVectorLayer* vl, QgsFeature* thepFeature, bool featureOwner, QgsDistanceArea myDa, QWidget* parent, bool showDialogButtons )
28
+ QgsAttributeDialog::QgsAttributeDialog ( QgsVectorLayer* vl, QgsFeature* thepFeature, bool featureOwner, const QgsDistanceArea & myDa, QWidget* parent, bool showDialogButtons )
29
29
: QDialog( parent )
30
30
, mHighlight( 0 )
31
31
, mOwnedFeature( featureOwner ? thepFeature : 0 )
@@ -39,7 +39,7 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer* vl, QgsFeature* thepFeat
39
39
mAttributeForm ->hideButtonBox ();
40
40
}
41
41
42
- QgsAttributeDialog::QgsAttributeDialog ( QgsVectorLayer* vl, QgsFeature* thepFeature, bool featureOwner, QWidget* parent, bool showDialogButtons, QgsAttributeEditorContext context )
42
+ QgsAttributeDialog::QgsAttributeDialog ( QgsVectorLayer* vl, QgsFeature* thepFeature, bool featureOwner, QWidget* parent, bool showDialogButtons, const QgsAttributeEditorContext & context )
43
43
: QDialog( parent )
44
44
, mHighlight( 0 )
45
45
, mOwnedFeature( featureOwner ? thepFeature : 0 )
@@ -97,7 +97,7 @@ void QgsAttributeDialog::show( bool autoDelete )
97
97
activateWindow ();
98
98
}
99
99
100
- void QgsAttributeDialog::init ( QgsVectorLayer* layer, QgsFeature* feature, QgsAttributeEditorContext& context, QWidget* parent )
100
+ void QgsAttributeDialog::init ( QgsVectorLayer* layer, QgsFeature* feature, const QgsAttributeEditorContext & context, QWidget* parent )
101
101
{
102
102
setWindowTitle ( tr ( " %1 - Feature Attributes" ).arg ( layer->name () ) );
103
103
setLayout ( new QGridLayout () );
0 commit comments