Skip to content

Commit c825f6e

Browse files
committed
[vertex editor] selected vertices are in bold too
1 parent 83a4fbf commit c825f6e

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/app/vertextool/qgsvertexeditor.cpp

+13-3
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,21 @@ QVariant QgsVertexEditorModel::data( const QModelIndex &index, int role ) const
107107
{
108108
double r = 0;
109109
double minRadius = 0;
110+
QFont font = mWidgetFont;
111+
bool fontChanged = false;
112+
if ( vertex->isSelected() )
113+
{
114+
font.setBold( true );
115+
fontChanged = true;
116+
}
110117
if ( calcR( index.row(), r, minRadius ) )
111118
{
112-
QFont curvePointFont = mWidgetFont;
113-
curvePointFont.setItalic( true );
114-
return curvePointFont;
119+
font.setItalic( true );
120+
fontChanged = true;;
121+
}
122+
if ( fontChanged )
123+
{
124+
return font;
115125
}
116126
else
117127
{

0 commit comments

Comments
 (0)