Skip to content
Permalink
Browse files

Nicer tooltips for merged categories

  • Loading branch information
nyalldawson committed Jan 7, 2019
1 parent 2c0dc09 commit f66773a1a7efa5e07e87f22a07776740cde3099c
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/symbology/qgscategorizedsymbolrendererwidget.cpp
@@ -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
{

0 comments on commit f66773a

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