Skip to content

Commit

Permalink
follow up + some forward declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 12, 2021
1 parent a6404da commit aac558d
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 7 deletions.
Expand Up @@ -7,6 +7,7 @@
************************************************************************/



class QgsAttributeEditorRelation : QgsAttributeEditorElement
{
%Docstring
Expand Down
1 change: 1 addition & 0 deletions src/analysis/processing/qgsalgorithmflattenrelationships.h
Expand Up @@ -22,6 +22,7 @@

#include "qgis_sip.h"
#include "qgsprocessingalgorithm.h"
#include "qgsrelation.h"

class QgsVectorLayerFeatureSource;

Expand Down
5 changes: 5 additions & 0 deletions src/core/editform/qgsattributeeditorcontainer.cpp
Expand Up @@ -17,6 +17,11 @@
#include "qgsattributeeditorcontainer.h"


QgsAttributeEditorContainer::~QgsAttributeEditorContainer()
{
qDeleteAll( mChildren );
}

void QgsAttributeEditorContainer::addChildElement( QgsAttributeEditorElement *widget )
{
mChildren.append( widget );
Expand Down
2 changes: 2 additions & 0 deletions src/core/editform/qgsattributeeditorrelation.h
Expand Up @@ -23,6 +23,8 @@
#include "qgspropertycollection.h"
#include <QColor>

class QgsRelationManager;

/**
* \ingroup core
* This element will load a relation editor onto the form.
Expand Down
9 changes: 4 additions & 5 deletions src/core/editform/qgseditformconfig.cpp
Expand Up @@ -12,6 +12,7 @@
* (at your option) any later version. *
* *
***************************************************************************/

#include "qgseditformconfig_p.h"
#include "qgseditformconfig.h"
#include "qgsnetworkcontentfetcherregistry.h"
Expand All @@ -23,13 +24,11 @@
#include "qgsxmlutils.h"
#include "qgsapplication.h"
#include "qgsmessagelog.h"
#include "qgsattributeeditorcontainer.h"
#include "qgsattributeeditorfield.h"
#include "qgsattributeeditorrelation.h"


QgsAttributeEditorContainer::~QgsAttributeEditorContainer()
{
qDeleteAll( mChildren );
}

QgsEditFormConfig::QgsEditFormConfig()
: d( new QgsEditFormConfigPrivate() )
{
Expand Down
1 change: 1 addition & 0 deletions src/core/editform/qgseditformconfig.h
Expand Up @@ -29,6 +29,7 @@

class QgsRelationManager;
class QgsEditFormConfigPrivate;
class QgsAttributeEditorContainer;

/**
* \ingroup core
Expand Down
1 change: 1 addition & 0 deletions src/core/editform/qgseditformconfig_p.h
Expand Up @@ -19,6 +19,7 @@
#include <QMap>
#include "qgsfields.h"
#include "qgseditformconfig.h"
#include "qgsattributeeditorcontainer.h"

/// @cond PRIVATE

Expand Down
2 changes: 2 additions & 0 deletions src/core/project/qgsproject.cpp
Expand Up @@ -63,6 +63,8 @@
#include "qgsruntimeprofiler.h"
#include "qgsannotationlayer.h"
#include "qgspointcloudlayer.h"
#include "qgsattributeeditorcontainer.h"


#include <algorithm>
#include <QApplication>
Expand Down
5 changes: 4 additions & 1 deletion src/core/project/qgsproject.h
Expand Up @@ -46,9 +46,10 @@
#include "qgsprojectmetadata.h"
#include "qgstranslationcontext.h"
#include "qgsprojecttranslator.h"
#include "qgsattributeeditorelement.h"
#include "qgscolorscheme.h"
#include "qgssettings.h"
#include "qgspropertycollection.h"


class QFileInfo;
class QDomDocument;
Expand Down Expand Up @@ -77,6 +78,8 @@ class QgsProjectViewSettings;
class QgsProjectDisplaySettings;
class QgsProjectTimeSettings;
class QgsAnnotationLayer;
class QgsAttributeEditorContainer;
class QgsPropertyCollection;


/**
Expand Down
1 change: 0 additions & 1 deletion src/core/qgssnappingutils.cpp
Expand Up @@ -14,7 +14,6 @@
***************************************************************************/

#include "qgssnappingutils.h"

#include "qgsgeometry.h"
#include "qgsproject.h"
#include "qgsvectorlayer.h"
Expand Down
2 changes: 2 additions & 0 deletions src/gui/vector/qgsattributesformproperties.h
Expand Up @@ -46,6 +46,8 @@
#include "qgseditorwidgetfactory.h"
#include "qgseditorwidgetregistry.h"
#include "qgsrelationmanager.h"
#include "qgsattributeeditorrelation.h"


class QgsAttributesDnDTree;
class QgsAttributeFormContainerEdit;
Expand Down

0 comments on commit aac558d

Please sign in to comment.