Skip to content

Commit 0da3651

Browse files
Gustrynyalldawson
authored andcommitted
add tooltips in the vertex editor
1 parent 5520a01 commit 0da3651

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/app/vertextool/qgsvertexeditor.cpp

+22
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,28 @@ QVariant QgsVertexEditorModel::headerData( int section, Qt::Orientation orientat
197197
return QVariant();
198198
}
199199
}
200+
else if ( role == Qt::ToolTipRole )
201+
{
202+
if ( orientation == Qt::Vertical )
203+
{
204+
return QVariant( tr( "Vertex %1" ).arg( section ) );
205+
}
206+
else
207+
{
208+
if ( section == 0 )
209+
return QVariant( tr( "X Coordinate" ) );
210+
else if ( section == 1 )
211+
return QVariant( tr( "Y Coordinate" ) );
212+
else if ( section == mZCol )
213+
return QVariant( tr( "Z Coordinate" ) );
214+
else if ( section == mMCol )
215+
return QVariant( tr( "M Value" ) );
216+
else if ( section == mRCol )
217+
return QVariant( tr( "Radius Value" ) );
218+
else
219+
return QVariant();
220+
}
221+
}
200222
else
201223
{
202224
return QVariant();

0 commit comments

Comments
 (0)