Skip to content

Commit

Permalink
[style dock] Add tooltips for item icons
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 7, 2016
1 parent 08bcba0 commit 9b102c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgslayerstylingwidget.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9b102c2

Please sign in to comment.