mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -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() ||
|
if ( !index.isValid() ||
|
||||||
( role != Qt::TextAlignmentRole
|
( role != Qt::TextAlignmentRole
|
||||||
&& role != Qt::DisplayRole
|
&& role != Qt::DisplayRole
|
||||||
|
&& role != Qt::ToolTipRole
|
||||||
&& role != Qt::EditRole
|
&& role != Qt::EditRole
|
||||||
&& role != SortRole
|
&& role != SortRole
|
||||||
&& role != FeatureIdRole
|
&& role != FeatureIdRole
|
||||||
@ -647,6 +648,7 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons
|
|||||||
switch ( role )
|
switch ( role )
|
||||||
{
|
{
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
|
case Qt::ToolTipRole:
|
||||||
return mFieldFormatters.at( index.column() )->representValue( layer(), fieldId, mWidgetConfigs.at( index.column() ),
|
return mFieldFormatters.at( index.column() )->representValue( layer(), fieldId, mWidgetConfigs.at( index.column() ),
|
||||||
mAttributeWidgetCaches.at( index.column() ), val );
|
mAttributeWidgetCaches.at( index.column() ), val );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user