break;
}
- if ( !path.isEmpty() )
- myPath->setText( QDir::convertSeparators( path ) );
+ if ( !path.isEmpty() ) {
+ QString txt = QDir::convertSeparators( path );
+ emit pathSelected( txt );
+ myPath->setText( txt );
+ }
myPath->setFocus();
}
base->addWidget( browse );
connect( browse, SIGNAL( clicked( bool ) ), this, SLOT( onBrowse( bool ) ) );
+ connect( myPath, SIGNAL( textChanged( const QString& ) ), this, SIGNAL( pathChanged( const QString& ) ) );
setFocusProxy( myPath );
const QValidator* validator() const;
void setValidator( QValidator* );
+signals:
+ void pathChanged( const QString& );
+ void pathSelected( const QString& );
+
private slots:
void onBrowse( bool = false );