Commit 3880eeaf authored by Christian Ehrlicher's avatar Christian Ehrlicher

KUrl::path() -> KUrl::toLocalFile() - fixes

svn path=/trunk/KDE/kdeedu/kmplot/; revision=941069
parent dba1a652
......@@ -146,7 +146,7 @@ bool KmPlotIO::save( const KUrl &url )
}
else
{
QFile xmlfile (url.path());
QFile xmlfile (url.toLocalFile());
if (!xmlfile.open( QIODevice::WriteOnly ) )
{
kWarning() << "Could not open " << url.path() << " for writing.\n";
......@@ -351,7 +351,7 @@ bool KmPlotIO::load( const KUrl &url )
f.setFileName(tmpfile);
}
else
f.setFileName( url.path() );
f.setFileName( url.toLocalFile() );
if ( !f.open( QIODevice::ReadOnly ) )
{
......
......@@ -233,7 +233,7 @@ void KParameterEditor::cmdImport_clicked()
file.setFileName(tmpfile);
}
else
file.setFileName(url.path() );
file.setFileName(url.toLocalFile() );
if ( file.open(QIODevice::ReadOnly) )
{
......@@ -314,8 +314,8 @@ void KParameterEditor::cmdExport_clicked()
else
{
QFile file;
kDebug() << "url.path()="<<url.path();
file.setFileName(url.path());
kDebug() << "url.path()="<<url.toLocalFile();
file.setFileName(url.toLocalFile());
if (file.open( QIODevice::WriteOnly ) )
{
QTextStream stream(&file);
......
......@@ -589,7 +589,7 @@ void MainDlg::slotExport()
if ( url.isLocalFile() )
{
file.setFileName( url.path() );
file.setFileName( url.toLocalFile() );
img.setOutputDevice( &file );
}
else
......@@ -613,7 +613,7 @@ void MainDlg::slotExport()
return; // TODO error dialog?
if ( url.isLocalFile() )
saveOk = img.save( url.path(), types.at(0).toLatin1() );
saveOk = img.save( url.toLocalFile(), types.at(0).toLatin1() );
else
{
KTemporaryFile tmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment