Commit 144f97c3 authored by Laurent Montel's avatar Laurent Montel 😁

Compile

svn path=/trunk/KDE/kdeedu/kmplot/; revision=511715
parent 71a2cd0a
......@@ -276,7 +276,7 @@ void MainDlg::slotSaveas()
{
m_url = url;
m_recentFiles->addURL( url );
setWindowCaption( m_url.prettyURL(0, KUrl::StripFileProtocol) );
setWindowCaption( m_url.prettyURL(0) );
m_modified = false;
}
return;
......@@ -300,7 +300,7 @@ void MainDlg::slotExport()
Q3Picture pic;
view->draw(&pic, 2);
if (url.isLocalFile() )
pic.save( url.prettyURL(0,KUrl::StripFileProtocol), "SVG");
pic.save( url.prettyURL(0), "SVG");
else
{
KTempFile tmp;
......@@ -316,7 +316,7 @@ void MainDlg::slotExport()
QPixmap pic(100, 100);
view->draw(&pic, 3);
if (url.isLocalFile() )
pic.save( url.prettyURL(0,KUrl::StripFileProtocol), "BMP");
pic.save( url.prettyURL(0), "BMP");
else
{
KTempFile tmp;
......@@ -332,7 +332,7 @@ void MainDlg::slotExport()
QPixmap pic(100, 100);
view->draw(&pic, 3);
if (url.isLocalFile() )
pic.save( url.prettyURL(0,KUrl::StripFileProtocol), "PNG");
pic.save( url.prettyURL(0), "PNG");
else
{
KTempFile tmp;
......@@ -354,8 +354,8 @@ bool MainDlg::openFile()
return false;
}
m_currentfile = m_url;
m_recentFiles->addURL( m_url.prettyURL(0, KUrl::StripFileProtocol) );
setWindowCaption( m_url.prettyURL(0, KUrl::StripFileProtocol) );
m_recentFiles->addURL( m_url.prettyURL(0) );
setWindowCaption( m_url.prettyURL(0) );
m_modified = false;
view->updateSliders();
view->drawPlot();
......@@ -382,7 +382,7 @@ void MainDlg::slotOpenRecent( const KUrl &url )
}
m_url = m_currentfile = url;
m_recentFiles->setCurrentItem(-1); //don't select the item in the open-recent menu
setWindowCaption( m_url.prettyURL(0, KUrl::StripFileProtocol) );
setWindowCaption( m_url.prettyURL(0) );
m_modified = false;
view->updateSliders();
view->drawPlot();
......
......@@ -131,7 +131,7 @@ bool KmPlot::load(const KUrl& url)
m_part->openURL( url );
if (m_part->url().isEmpty())
return false;
setCaption(url.prettyURL(0, KUrl::StripFileProtocol));
setCaption(url.prettyURL(0));
return true;
}
......
......@@ -201,7 +201,7 @@ bool KmPlotIO::save( const KUrl &url )
}
else
{
xmlfile.setName(url.prettyURL(0,KUrl::StripFileProtocol) );
xmlfile.setName(url.prettyURL(0) );
if (!xmlfile.open( QIODevice::WriteOnly ) )
return false;
QTextStream ts( &xmlfile );
......@@ -241,7 +241,7 @@ bool KmPlotIO::load( const KUrl &url )
f.setName(tmpfile);
}
else
f.setName( url.prettyURL(0,KUrl::StripFileProtocol) );
f.setName( url.prettyURL(0) );
if ( !f.open( QIODevice::ReadOnly ) )
{
......
......@@ -158,7 +158,7 @@ void KParameterEditor::cmdImport_clicked()
file.setName(tmpfile);
}
else
file.setName(url.prettyURL(0,KUrl::StripFileProtocol) );
file.setName(url.prettyURL(0) );
if ( file.open(QIODevice::ReadOnly) )
{
......@@ -244,7 +244,7 @@ void KParameterEditor::cmdExport_clicked()
}
else
{
file.setName(url.prettyURL(0,KUrl::StripFileProtocol));
file.setName(url.prettyURL(0));
if (file.open( QIODevice::WriteOnly ) )
{
QTextStream stream(&file);
......
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