From f22f391f14e1281e45fba225ca45c1e07c4ca96f Mon Sep 17 00:00:00 2001 From: san Date: Tue, 9 Nov 2010 07:55:21 +0000 Subject: [PATCH] Added signal returnPressed(). --- src/Qtx/QtxPathEdit.cxx | 1 + src/Qtx/QtxPathEdit.h | 1 + 2 files changed, 2 insertions(+) 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& ); -- 2.39.2