Skip to content
Permalink
Browse files

Added missing & in setTitle in SIP

  • Loading branch information
wonder-sk committed Jul 11, 2016
1 parent 774a823 commit c5d8cc7fbc35f889c4ecc35e731f309602653a02
Showing with 32 additions and 6 deletions.
  1. +32 −6 python/gui/qgsmaplayerconfigwidgetfactory.sip
@@ -14,7 +14,7 @@ class QgsMapLayerConfigWidgetFactory
QgsMapLayerConfigWidgetFactory();

/** Constructor */
QgsMapLayerConfigWidgetFactory(QString title, QIcon icon);
QgsMapLayerConfigWidgetFactory( QString title, QIcon icon );

This comment has been minimized.

Copy link
@m-kuhn

m-kuhn Jul 11, 2016

Member

Passing const references here as well and it will be perfect :)


/** Destructor */
virtual ~QgsMapLayerConfigWidgetFactory();
@@ -25,7 +25,11 @@ class QgsMapLayerConfigWidgetFactory
*/
virtual QIcon icon() const;

void setIcon(const QIcon& icon);
/**
* Set the icon for the factory object.
* @param icon The icon to show in the interface.
*/
void setIcon( const QIcon& icon );

/**
* @brief The title of the panel.
@@ -34,15 +38,37 @@ class QgsMapLayerConfigWidgetFactory
*/
virtual QString title() const;

void setTitle(const QString title);
/**
* Set the title for the interface
* @note Not all users may show this as a label
* e.g style dock uses this as a tooltip.
* @param title The title to set.
*/
void setTitle( const QString& title );

/**
* Flag if widget is supported for use in style dock.
* @return True if supported
*/
virtual bool supportsStyleDock() const;

void setSupportsStyleDock(bool supports);
/**
* Set support flag for style dock
* @param supports True if this widget is supported in the style dock.
*/
void setSupportsStyleDock( bool supports );

/**
* Flag if widget is supported for use in layer properties dialog.
* @return True if supported
*/
virtual bool supportLayerPropertiesDialog() const;

void setSupportLayerPropertiesDialog(bool supports);
/**
* Set support flag for style dock
* @param supports True if this widget is supported in the style dock.
*/
void setSupportLayerPropertiesDialog( bool supports );

/**
* @brief Check if the layer is supported for this widget.
@@ -59,5 +85,5 @@ class QgsMapLayerConfigWidgetFactory
* @param parent The parent of the widget.
* @return A new QgsMapStylePanel which is shown in the map style dock.
*/
virtual QgsMapLayerConfigWidget* createWidget( QgsMapLayer* layer, QgsMapCanvas *canvas, bool dockWidget = true, QWidget* parent /TransferThis/ = 0) const = 0 /Factory/;
virtual QgsMapLayerConfigWidget* createWidget( QgsMapLayer* layer, QgsMapCanvas *canvas, bool dockWidget = true, QWidget* parent /TransferThis/ = 0 ) const = 0 /Factory/;
};

0 comments on commit c5d8cc7

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