{
}
-void VVTK_RecorderDlg::show()
-{
- if( onBrowseFile() )
- QWidget::show();
-}
-
void VVTK_RecorderDlg::onStart()
{
if( myFileName.isNull() )
return true;
}
+int VVTK_RecorderDlg::exec()
+{
+ if( !onBrowseFile() )
+ {
+ reject();
+ return 0;
+ }
+ return QDialog::exec();
+}
+
void VVTK_RecorderDlg::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
VVTK_RecorderDlg( QWidget*, VVTK_Recorder* );
~VVTK_RecorderDlg();
- virtual void show();
+ int exec();
QString fileName() const { return myFileName; }
private:
- void keyPressEvent( QKeyEvent* e );
+ virtual void keyPressEvent( QKeyEvent* );
protected slots:
void onStart();