Commit 631992af authored by David Saxton's avatar David Saxton

Convenience: in parameter dialog, can now use enter to insert current value.

svn path=/trunk/KDE/kdeedu/kmplot/; revision=554927
parent b032b5df
......@@ -164,6 +164,7 @@ void EquationEdit::keyPressEvent( QKeyEvent * e )
{
e->accept();
emit editingFinished();
emit returnPressed();
}
else
QTextEdit::keyPressEvent( e );
......
......@@ -100,6 +100,7 @@ class EquationEdit : public QTextEdit
void editingFinished();
void textEdited( const QString & text );
void textChanged( const QString & text );
void returnPressed();
public slots:
void setText( const QString & text );
......
......@@ -71,6 +71,7 @@ KParameterEditor::KParameterEditor(XParser *m, QList<Value> *l, QWidget *parent
connect( m_mainWidget->value, SIGNAL( textEdited( const QString & ) ), this, SLOT( saveCurrentValue() ) );
connect( m_mainWidget->value, SIGNAL( textChanged( const QString & ) ), this, SLOT( checkValueValid() ) );
connect( m_mainWidget->value, SIGNAL( returnPressed() ), m_mainWidget->cmdNew, SLOT( animateClick() ) );
checkValueValid();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment