Skip to content

Commit

Permalink
add tooltips in the vertex editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and nyalldawson committed Feb 25, 2019
1 parent 5520a01 commit 0da3651
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/app/vertextool/qgsvertexeditor.cpp
Expand Up @@ -197,6 +197,28 @@ QVariant QgsVertexEditorModel::headerData( int section, Qt::Orientation orientat
return QVariant();
}
}
else if ( role == Qt::ToolTipRole )
{
if ( orientation == Qt::Vertical )
{
return QVariant( tr( "Vertex %1" ).arg( section ) );
}
else
{
if ( section == 0 )
return QVariant( tr( "X Coordinate" ) );
else if ( section == 1 )
return QVariant( tr( "Y Coordinate" ) );
else if ( section == mZCol )
return QVariant( tr( "Z Coordinate" ) );
else if ( section == mMCol )
return QVariant( tr( "M Value" ) );
else if ( section == mRCol )
return QVariant( tr( "Radius Value" ) );
else
return QVariant();
}
}
else
{
return QVariant();
Expand Down

0 comments on commit 0da3651

Please sign in to comment.