Skip to content
Permalink
Browse files

xdata: Fix min/max of spinbox in xdata editor (#2995)

  • Loading branch information...
riccioclista authored and liversedge committed Apr 15, 2019
1 parent b8c2bd3 commit 4083be3744be1e6190017be5d76a415fde166855
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Charts/RideEditor.cpp
@@ -1331,6 +1331,8 @@ QWidget *XDataCellDelegate::createEditor(QWidget *parent, const QStyleOptionView
default:
{
QDoubleSpinBox *valueEdit = new QDoubleSpinBox(parent);
valueEdit->setMaximum(std::numeric_limits<double>::max());
valueEdit->setMinimum(-std::numeric_limits<double>::max());
connect(valueEdit, SIGNAL(editingFinished()), this, SLOT(commitAndCloseEditor()));
return valueEdit;
}

0 comments on commit 4083be3

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