Skip to content
Permalink
Browse files

const fixes

  • Loading branch information
NathanW2 committed Jul 8, 2016
1 parent 5a03383 commit b1de246e846c577348d1dbf36f8cd718d5ca0b5d
@@ -25,7 +25,7 @@ class QgsMapLayerConfigWidgetFactory
*/
virtual QIcon icon() const;

void setIcon(QIcon icon);
void setIcon(const QIcon& icon);

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

void setTitlte(QString title);
void setTitle(const QString title);

virtual bool supportsStyleDock() const;

@@ -508,7 +508,7 @@ bool QgsMapLayerStyleCommand::mergeWith( const QUndoCommand* other )
QgsLayerStyleManagerWidgetFactory::QgsLayerStyleManagerWidgetFactory()
{
setIcon( QgsApplication::getThemeIcon( "propertyicons/stylepreset.svg" ) );
setTitlte( QObject::tr( "Style Manager" ) );
setTitle( QObject::tr( "Style Manager" ) );
}

QgsMapLayerConfigWidget *QgsLayerStyleManagerWidgetFactory::createWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, bool dockMode, QWidget *parent ) const
@@ -48,7 +48,7 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
* Set the icon for the factory object.
* @param icon The icon to show in the interface.
*/
void setIcon( QIcon icon ) { mIcon = icon; }
void setIcon( const QIcon& icon ) { mIcon = icon; }

/**
* @brief The title of the panel.
@@ -63,7 +63,7 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
* e.g style dock uses this as a tooltip.
* @param title The title to set.
*/
void setTitlte( QString title ) { mTitle = title; }
void setTitle( const QString& title ) { mTitle = title; }

/**
* Flag if widget is supported for use in style dock.

0 comments on commit b1de246

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