title: Qt C++ SLOT on_returnPressed on_OK_ckicked strange behavior
body: <p>I have a strange behaviour with one of my ui`s:</p>
  
  <p>In my ui I have a <strong>lineEdit Shift_x</strong> and a Button <strong>pb_OK</strong>.  When I do the following I have different behaviour:</p>
  
  <ol>
  <li><p><strong>Edit + RETURN:</strong>
  When I edit the value in Shift_x and press return the slot on_lne_Shift_x_returnPressed() is executed. This is what I would expect. But after that the slot on_pb_OK_clicked() is also executed which in the end  makes my program on_MoveCurve_ValueEdited to be executed twice.</p></li>
  <li><p><strong>Edit + OK:</strong> If I edit the value in Shift_x and click “OK” only the slot on_pb_OK_clicked() is executed ( which then starts on_lne_Shift_x_returnPressed(); where the actual shift is triggered) </p></li>
  </ol>
  
  <p><strong>Why would the program run on_lne_Shift_x_returnPressed()  and   on_pb_OK_clicked()  when I only press the return button?</strong></p>
  
  <p>Thanks for your help! </p>
  
  <p>This is my code:</p>
  
  <p>2 slots:</p>
  
  <pre><code> void MoveSeries::on_lne_Shift_x_returnPressed()
   {
       const QString arg1= ui-&gt;lne_Shift_x-&gt;text();
       shift_tracker = shift_tracker-arg1.toDouble();
       emit x_returnPressed(arg1, ChartSeries);
   }
  
  
  void MoveSeries::on_pb_OK_clicked()
   {     on_lne_Shift_x_returnPressed();     }
  </code></pre>
  
  <p>And a CONNECT in my other class</p>
  
  <pre><code>connect(  MOVE_SERIES  , SIGNAL( x_returnPressed( QString ,  QVector &lt; Series*&gt;   )),
                this,SLOT( on_MoveCurve_ValueEdited ( QString,QVector &lt; Series*&gt;))) ;
  </code></pre>