mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Show cell values in tooltips in attribute table
Otherwise long values can be truncated and hard to read
This commit is contained in:
parent
5b05699fc9
commit
484a61154f
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user