const fixes

This commit is contained in:
Nathan Woodrow 2016-07-08 10:13:24 +10:00
parent 5a033836d1
commit b1de246e84
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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