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 50f3a32 commit 8151872d41fc4c4dca7df2b7a2092161acebbbec
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 8151872

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