Skip to content

Commit

Permalink
Show tooltips in vector tile renderer/labeling lists
Browse files Browse the repository at this point in the history
Otherwise it can be a pain to see the full text for filters/names
  • Loading branch information
nyalldawson committed Sep 9, 2020
1 parent b44df6d commit 6881946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/vectortile/qgsvectortilebasiclabelingwidget.cpp
Expand Up @@ -55,6 +55,7 @@ QVariant QgsVectorTileBasicLabelingListModel::data( const QModelIndex &index, in
switch ( role )
{
case Qt::DisplayRole:
case Qt::ToolTipRole:
{
if ( index.column() == 0 )
return style.styleName();
Expand Down
1 change: 1 addition & 0 deletions src/gui/vectortile/qgsvectortilebasicrendererwidget.cpp
Expand Up @@ -60,6 +60,7 @@ QVariant QgsVectorTileBasicRendererListModel::data( const QModelIndex &index, in
switch ( role )
{
case Qt::DisplayRole:
case Qt::ToolTipRole:
{
if ( index.column() == 0 )
return style.styleName();
Expand Down

0 comments on commit 6881946

Please sign in to comment.