mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
const fixes
This commit is contained in:
parent
5a033836d1
commit
b1de246e84
@ -25,7 +25,7 @@ class QgsMapLayerConfigWidgetFactory
|
|||||||
*/
|
*/
|
||||||
virtual QIcon icon() const;
|
virtual QIcon icon() const;
|
||||||
|
|
||||||
void setIcon(QIcon icon);
|
void setIcon(const QIcon& icon);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The title of the panel.
|
* @brief The title of the panel.
|
||||||
@ -34,7 +34,7 @@ class QgsMapLayerConfigWidgetFactory
|
|||||||
*/
|
*/
|
||||||
virtual QString title() const;
|
virtual QString title() const;
|
||||||
|
|
||||||
void setTitlte(QString title);
|
void setTitle(const QString title);
|
||||||
|
|
||||||
virtual bool supportsStyleDock() const;
|
virtual bool supportsStyleDock() const;
|
||||||
|
|
||||||
|
@ -508,7 +508,7 @@ bool QgsMapLayerStyleCommand::mergeWith( const QUndoCommand* other )
|
|||||||
QgsLayerStyleManagerWidgetFactory::QgsLayerStyleManagerWidgetFactory()
|
QgsLayerStyleManagerWidgetFactory::QgsLayerStyleManagerWidgetFactory()
|
||||||
{
|
{
|
||||||
setIcon( QgsApplication::getThemeIcon( "propertyicons/stylepreset.svg" ) );
|
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
|
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.
|
* Set the icon for the factory object.
|
||||||
* @param icon The icon to show in the interface.
|
* @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.
|
* @brief The title of the panel.
|
||||||
@ -63,7 +63,7 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
|
|||||||
* e.g style dock uses this as a tooltip.
|
* e.g style dock uses this as a tooltip.
|
||||||
* @param title The title to set.
|
* @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.
|
* Flag if widget is supported for use in style dock.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user