Skip to content
Permalink
Browse files

Add missing overrides

  • Loading branch information
nyalldawson committed Oct 4, 2015
1 parent ae0d377 commit 7eb5e7456e7e83bcdd080c6f64a4ec2a9eaf620d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/nodetool/qgsnodeeditor.cpp
@@ -36,13 +36,13 @@ static const int MinRadiusRole = Qt::UserRole + 1;
class CoordinateItemDelegate : public QStyledItemDelegate
{
public:
QString displayText( const QVariant & value, const QLocale & locale ) const
QString displayText( const QVariant & value, const QLocale & locale ) const override
{
return locale.toString( value.toDouble(), 'f', 4 );
}

protected:
QWidget* createEditor( QWidget * parent, const QStyleOptionViewItem & /*option*/, const QModelIndex & index ) const
QWidget* createEditor( QWidget * parent, const QStyleOptionViewItem & /*option*/, const QModelIndex & index ) const override
{
QLineEdit* lineEdit = new QLineEdit( parent );
QDoubleValidator* validator = new QDoubleValidator();
@@ -51,7 +51,7 @@ class CoordinateItemDelegate : public QStyledItemDelegate
lineEdit->setValidator( validator );
return lineEdit;
}
void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const
void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const override
{
QLineEdit* lineEdit = qobject_cast<QLineEdit*>( editor );
if ( lineEdit->hasAcceptableInput() )

0 comments on commit 7eb5e74

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