Skip to content

Commit

Permalink
Nicer tooltips for merged categories
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 8, 2019
1 parent 2c0dc09 commit f66773a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/symbology/qgscategorizedsymbolrendererwidget.cpp
Expand Up @@ -159,7 +159,10 @@ QVariant QgsCategorizedSymbolRendererModel::data( const QModelIndex &index, int
for ( const QVariant &v : list )
res << v.toString();

return res.join( ';' );
if ( role == Qt::DisplayRole )
return res.join( ';' );
else // tooltip
return res.join( '\n' );
}
else
{
Expand Down

0 comments on commit f66773a

Please sign in to comment.