Skip to content
Permalink
Browse files

Forward declare

  • Loading branch information
nyalldawson committed Dec 18, 2020
1 parent c0d2924 commit 1be1229663c00b9c16389f6ec830cc7e7f30bdfd
@@ -11,7 +11,6 @@




class QgsLayerTreeModelLegendNode : QObject
{
%Docstring
@@ -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;


@@ -1169,6 +1169,8 @@ QgsWmsLegendNode::QgsWmsLegendNode( QgsLayerTreeLayer *nodeLayer, QObject *paren
{
}

QgsWmsLegendNode::~QgsWmsLegendNode() = default;

QImage QgsWmsLegendNode::getLegendGraphic() const
{
if ( ! mValid && ! mFetcher )
@@ -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"

@@ -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;

0 comments on commit 1be1229

Please sign in to comment.
You can’t perform that action at this time.