exports.cpp
branchqt4-port
changeset 12 58e7594239df
parent 2 608f976aa7bb
child 16 41c3d7f9f532
     1.1 --- a/exports.cpp	Tue Jun 06 14:58:11 2006 +0000
     1.2 +++ b/exports.cpp	Tue Aug 01 09:31:22 2006 +0000
     1.3 @@ -1,6 +1,6 @@
     1.4  #include <q3filedialog.h>
     1.5  #include <qmessagebox.h>
     1.6 -#include <q3process.h>
     1.7 +#include <QProcess>
     1.8  //Added by qt3to4:
     1.9  #include <QTextStream>
    1.10  
    1.11 @@ -58,10 +58,10 @@
    1.12  {
    1.13  	if (mapCenter && mapCenter->getMapEditor())
    1.14  	{
    1.15 -		Q3FileDialog *fd=new Q3FileDialog( mapCenter->getMapEditor(), caption);
    1.16 -		fd->addFilter (filter);
    1.17 +		QFileDialog *fd=new QFileDialog( mapCenter->getMapEditor(), caption);
    1.18 +		fd->setFilter (filter);
    1.19  		fd->setCaption(caption);
    1.20 -		fd->setMode( Q3FileDialog::AnyFile );
    1.21 +		fd->setMode( QFileDialog::AnyFile );
    1.22  		fd->show();
    1.23  
    1.24  		if ( fd->exec() == QDialog::Accepted )
    1.25 @@ -186,17 +186,14 @@
    1.26  			p.process();
    1.27  
    1.28  			QString ub=vymBaseDir.path()+"/scripts/update-bookmarks";
    1.29 -			Q3Process *proc = new Q3Process( );
    1.30 -			proc->addArgument(ub);
    1.31 -
    1.32 -			if ( !proc->start() ) 
    1.33 +			QProcess *proc= new QProcess ();
    1.34 +			proc->start( ub);
    1.35 +			if (!proc->waitForStarted());
    1.36  			{
    1.37  				QMessageBox::warning(0, 
    1.38  					QObject::tr("Warning"),
    1.39  					QObject::tr("Couldn't find script %1\nto notifiy Browsers of changed bookmarks.").arg(ub));
    1.40  			}	
    1.41 -
    1.42 -
    1.43  		}
    1.44  	}
    1.45