Skip to content

Commit

Permalink
Forward declare
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 18, 2020
1 parent c0d2924 commit 1be1229
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Expand Up @@ -11,7 +11,6 @@




class QgsLayerTreeModelLegendNode : QObject
{
%Docstring
Expand Down Expand Up @@ -623,6 +622,8 @@ Constructor for QgsWmsLegendNode.
:param parent: attach a parent QObject to the legend node.
%End

~QgsWmsLegendNode();

virtual QVariant data( int role ) const;


Expand Down
2 changes: 2 additions & 0 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -1169,6 +1169,8 @@ QgsWmsLegendNode::QgsWmsLegendNode( QgsLayerTreeLayer *nodeLayer, QObject *paren
{
}

QgsWmsLegendNode::~QgsWmsLegendNode() = default;

QImage QgsWmsLegendNode::getLegendGraphic() const
{
if ( ! mValid && ! mFetcher )
Expand Down
4 changes: 2 additions & 2 deletions src/core/layertree/qgslayertreemodellegendnode.h
Expand Up @@ -22,11 +22,9 @@
#include <QIcon>
#include <QObject>


#include "qgis_core.h"
#include "qgis_sip.h"

#include "qgsrasterdataprovider.h" // for QgsImageFetcher dtor visibility
#include "qgsexpressioncontext.h"
#include "qgslegendpatchshape.h"

Expand Down Expand Up @@ -669,6 +667,8 @@ class CORE_EXPORT QgsWmsLegendNode : public QgsLayerTreeModelLegendNode
*/
QgsWmsLegendNode( QgsLayerTreeLayer *nodeLayer, QObject *parent SIP_TRANSFERTHIS = nullptr );

~QgsWmsLegendNode() override;

QVariant data( int role ) const override;

QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const override;
Expand Down

0 comments on commit 1be1229

Please sign in to comment.