Skip to content
Permalink
Browse files
Add destructors to permit forward declaration
  • Loading branch information
nyalldawson committed May 25, 2021
1 parent 8cea178 commit c3e01e5725f2dbc44dc63df1d93fa392e4c248bf
@@ -23,6 +23,7 @@ and diagrams for the layer. Selected features will also be drawn with a default
public:

QgsNullSymbolRenderer();
~QgsNullSymbolRenderer();

virtual QgsSymbol *symbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const;

@@ -30,6 +30,7 @@ panel widget) when clicked.
Construct a new symbol button.
Use ``dialogTitle`` string to define the title to show in the symbol settings dialog.
%End
~QgsSymbolButton();

virtual QSize minimumSizeHint() const;

@@ -25,6 +25,8 @@ QgsNullSymbolRenderer::QgsNullSymbolRenderer()
{
}

QgsNullSymbolRenderer::~QgsNullSymbolRenderer() = default;

QgsSymbol *QgsNullSymbolRenderer::symbolForFeature( const QgsFeature &, QgsRenderContext & ) const
{
return nullptr;
@@ -18,7 +18,8 @@
#include "qgis_core.h"
#include "qgis.h"
#include "qgsrenderer.h"
#include "qgssymbol.h"

class QgsSymbol;

/**
* \ingroup core
@@ -27,12 +28,12 @@
* and diagrams for the layer. Selected features will also be drawn with a default symbol.
* \since QGIS 2.16
*/

class CORE_EXPORT QgsNullSymbolRenderer : public QgsFeatureRenderer
{
public:

QgsNullSymbolRenderer();
~QgsNullSymbolRenderer();

QgsSymbol *symbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const override;
QgsSymbol *originalSymbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const override;
@@ -59,6 +59,8 @@ QgsSymbolButton::QgsSymbolButton( QWidget *parent, const QString &dialogTitle )
mSizeHint = QSize( size.width(), std::max( size.height(), fontHeight ) );
}

QgsSymbolButton::~QgsSymbolButton() = default;

QSize QgsSymbolButton::minimumSizeHint() const
{

@@ -18,7 +18,6 @@
#include "qgis_gui.h"
#include "qgis_sip.h"
#include "qgis.h"
#include "qgssymbol.h"

#include <QToolButton>
#include <QPointer>
@@ -30,6 +29,7 @@ class QgsExpressionContextGenerator;
class QgsPanelWidget;
class QgsMessageBar;
class QMimeData;
class QgsSymbol;

/**
* \ingroup gui
@@ -54,6 +54,7 @@ class GUI_EXPORT QgsSymbolButton : public QToolButton
* Use \a dialogTitle string to define the title to show in the symbol settings dialog.
*/
QgsSymbolButton( QWidget *parent SIP_TRANSFERTHIS = nullptr, const QString &dialogTitle = QString() );
~QgsSymbolButton();

QSize minimumSizeHint() const override;
QSize sizeHint() const override;

0 comments on commit c3e01e5

Please sign in to comment.