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 484a611
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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.