Skip to content
Permalink
Browse files

[style dock] Add tooltips for item icons

  • Loading branch information
NathanW2 committed Jul 7, 2016
1 parent 08bcba0 commit 9b102c2b987c6faca20ca90610ddd3097df9a61b
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgslayerstylingwidget.cpp
@@ -176,6 +176,7 @@ void QgsLayerStylingWidget::setLayer( QgsMapLayer *layer )
if ( factory->supportsStyleDock() && factory->supportsLayer( layer ) )
{
QListWidgetItem* item = new QListWidgetItem( factory->icon(), QString() );
item->setToolTip( factory->title() );
mOptionsListWidget->addItem( item );
int row = mOptionsListWidget->row( item );
mUserPages[row] = factory;
@@ -485,7 +486,7 @@ QIcon QgsLayerStyleManagerWidgetFactory::icon() const

QString QgsLayerStyleManagerWidgetFactory::title() const
{
return QString();
return QObject::tr( "Style Manager" );
}

QgsMapLayerConfigWidget *QgsLayerStyleManagerWidgetFactory::createWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, bool dockMode, QWidget *parent ) const

0 comments on commit 9b102c2

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