From: san Date: Tue, 9 Nov 2010 07:55:21 +0000 (+0000) Subject: Added signal returnPressed(). X-Git-Tag: V5_1_10~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f22f391f14e1281e45fba225ca45c1e07c4ca96f;p=modules%2Fgui.git Added signal returnPressed(). --- diff --git a/src/Qtx/QtxPathEdit.cxx b/src/Qtx/QtxPathEdit.cxx index cdd9a24e8..3a435a5e3 100644 --- a/src/Qtx/QtxPathEdit.cxx +++ b/src/Qtx/QtxPathEdit.cxx @@ -257,6 +257,7 @@ void QtxPathEdit::initialize() base->addWidget( browse ); connect( browse, SIGNAL( clicked( bool ) ), this, SLOT( onBrowse( bool ) ) ); + connect( myPath, SIGNAL( returnPressed() ), this, SIGNAL( returnPressed() ) ); connect( myPath, SIGNAL( textChanged( const QString& ) ), this, SIGNAL( pathChanged( const QString& ) ) ); setFocusProxy( myPath ); diff --git a/src/Qtx/QtxPathEdit.h b/src/Qtx/QtxPathEdit.h index 941be6c2e..d85312ce7 100644 --- a/src/Qtx/QtxPathEdit.h +++ b/src/Qtx/QtxPathEdit.h @@ -53,6 +53,7 @@ public: void setValidator( QValidator* ); signals: + void returnPressed(); void pathChanged( const QString& ); void pathSelected( const QString& );