Skip to content

Commit f66773a

Browse files
committedJan 8, 2019
Nicer tooltips for merged categories
1 parent 2c0dc09 commit f66773a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/gui/symbology/qgscategorizedsymbolrendererwidget.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ QVariant QgsCategorizedSymbolRendererModel::data( const QModelIndex &index, int
159159
for ( const QVariant &v : list )
160160
res << v.toString();
161161

162-
return res.join( ';' );
162+
if ( role == Qt::DisplayRole )
163+
return res.join( ';' );
164+
else // tooltip
165+
return res.join( '\n' );
163166
}
164167
else
165168
{

0 commit comments

Comments
 (0)
Please sign in to comment.