Skip to content
Permalink
Browse files

Show cell values in tooltips in attribute table

Otherwise long values can be truncated and hard to read
  • Loading branch information
nyalldawson committed Dec 3, 2017
1 parent 5b05699 commit 484a61154fe09762afc018b8c89c76a576a83a4f
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/attributetable/qgsattributetablemodel.cpp
@@ -596,6 +596,7 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons
if ( !index.isValid() ||
( role != Qt::TextAlignmentRole
&& role != Qt::DisplayRole
&& role != Qt::ToolTipRole
&& role != Qt::EditRole
&& role != SortRole
&& role != FeatureIdRole
@@ -647,6 +648,7 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons
switch ( role )
{
case Qt::DisplayRole:
case Qt::ToolTipRole:
return mFieldFormatters.at( index.column() )->representValue( layer(), fieldId, mWidgetConfigs.at( index.column() ),
mAttributeWidgetCaches.at( index.column() ), val );

0 comments on commit 484a611

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