Skip to content
Permalink
Browse files

add tooltips in the vertex editor

  • Loading branch information
Gustry authored and nyalldawson committed Feb 25, 2019
1 parent 5520a01 commit 0da36513f86945c20314b941a78a5b0059d8098b
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/app/vertextool/qgsvertexeditor.cpp
@@ -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();

0 comments on commit 0da3651

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