Skip to content

Commit 7eb5e74

Browse files
committedOct 4, 2015
Add missing overrides
1 parent ae0d377 commit 7eb5e74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/app/nodetool/qgsnodeeditor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ static const int MinRadiusRole = Qt::UserRole + 1;
3636
class CoordinateItemDelegate : public QStyledItemDelegate
3737
{
3838
public:
39-
QString displayText( const QVariant & value, const QLocale & locale ) const
39+
QString displayText( const QVariant & value, const QLocale & locale ) const override
4040
{
4141
return locale.toString( value.toDouble(), 'f', 4 );
4242
}
4343

4444
protected:
45-
QWidget* createEditor( QWidget * parent, const QStyleOptionViewItem & /*option*/, const QModelIndex & index ) const
45+
QWidget* createEditor( QWidget * parent, const QStyleOptionViewItem & /*option*/, const QModelIndex & index ) const override
4646
{
4747
QLineEdit* lineEdit = new QLineEdit( parent );
4848
QDoubleValidator* validator = new QDoubleValidator();
@@ -51,7 +51,7 @@ class CoordinateItemDelegate : public QStyledItemDelegate
5151
lineEdit->setValidator( validator );
5252
return lineEdit;
5353
}
54-
void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const
54+
void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const override
5555
{
5656
QLineEdit* lineEdit = qobject_cast<QLineEdit*>( editor );
5757
if ( lineEdit->hasAcceptableInput() )

0 commit comments

Comments
 (0)
Please sign in to comment.