34
34
#include < QVector>
35
35
36
36
#include " qgsvectorlayer.h"
37
-
38
37
#include " qgsattributeaction.h"
39
-
40
38
#include " qgis.h" // for globals
41
39
#include " qgsapplication.h"
42
40
#include " qgsclipper.h"
71
69
#include " qgsvectorlayerjoinbuffer.h"
72
70
#include " qgsvectorlayerrenderer.h"
73
71
#include " qgsvectorlayerundocommand.h"
74
-
72
+ # include " qgspointv2.h "
75
73
#include " qgsrendererv2.h"
76
74
#include " qgssymbolv2.h"
77
75
#include " qgssymbollayerv2.h"
@@ -2197,7 +2195,7 @@ bool QgsVectorLayer::deleteAttributes( QList<int> attrs )
2197
2195
2198
2196
qSort ( attrs.begin (), attrs.end (), qGreater<int >() );
2199
2197
2200
- Q_FOREACH ( int attr, attrs )
2198
+ Q_FOREACH ( int attr, attrs )
2201
2199
{
2202
2200
if ( deleteAttribute ( attr ) )
2203
2201
{
@@ -2971,7 +2969,7 @@ void QgsVectorLayer::uniqueValues( int index, QList<QVariant> &uniqueValues, int
2971
2969
if ( mEditBuffer )
2972
2970
{
2973
2971
QSet<QString> vals;
2974
- Q_FOREACH ( const QVariant& v, uniqueValues )
2972
+ Q_FOREACH ( const QVariant& v, uniqueValues )
2975
2973
{
2976
2974
vals << v.toString ();
2977
2975
}
@@ -3779,7 +3777,7 @@ void QgsVectorLayer::invalidateSymbolCountedFlag()
3779
3777
3780
3778
void QgsVectorLayer::onRelationsLoaded ()
3781
3779
{
3782
- Q_FOREACH ( QgsAttributeEditorElement* elem, mAttributeEditorElements )
3780
+ Q_FOREACH ( QgsAttributeEditorElement* elem, mAttributeEditorElements )
3783
3781
{
3784
3782
if ( elem->type () == QgsAttributeEditorElement::AeTypeContainer )
3785
3783
{
@@ -3788,7 +3786,7 @@ void QgsVectorLayer::onRelationsLoaded()
3788
3786
continue ;
3789
3787
3790
3788
QList<QgsAttributeEditorElement*> relations = cont->findElements ( QgsAttributeEditorElement::AeTypeRelation );
3791
- Q_FOREACH ( QgsAttributeEditorElement* relElem, relations )
3789
+ Q_FOREACH ( QgsAttributeEditorElement* relElem, relations )
3792
3790
{
3793
3791
QgsAttributeEditorRelation* rel = dynamic_cast < QgsAttributeEditorRelation* >( relElem );
3794
3792
if ( !rel )
@@ -3857,7 +3855,7 @@ QDomElement QgsAttributeEditorContainer::toDomElement( QDomDocument& doc ) const
3857
3855
QDomElement elem = doc.createElement ( " attributeEditorContainer" );
3858
3856
elem.setAttribute ( " name" , mName );
3859
3857
3860
- Q_FOREACH ( QgsAttributeEditorElement* child, mChildren )
3858
+ Q_FOREACH ( QgsAttributeEditorElement* child, mChildren )
3861
3859
{
3862
3860
elem.appendChild ( child->toDomElement ( doc ) );
3863
3861
}
@@ -3878,7 +3876,7 @@ QList<QgsAttributeEditorElement*> QgsAttributeEditorContainer::findElements( Qgs
3878
3876
{
3879
3877
QList<QgsAttributeEditorElement*> results;
3880
3878
3881
- Q_FOREACH ( QgsAttributeEditorElement* elem, mChildren )
3879
+ Q_FOREACH ( QgsAttributeEditorElement* elem, mChildren )
3882
3880
{
3883
3881
if ( elem->type () == type )
3884
3882
{
0 commit comments