Commit a10bc7d6 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Do no longer use obsolete KisDocument::saveNativeFormat

parent 162f164c
......@@ -44,7 +44,7 @@ void KisProjectionBenchmark::benchmarkProjection()
KisDocument *doc = KisPart::instance()->createDocument();
doc->loadNativeFormat(QString(FILES_DATA_DIR) + QDir::separator() + "load_test.kra");
doc->image()->refreshGraph();
doc->saveNativeFormat(QString(FILES_OUTPUT_DIR) + QDir::separator() + "save_test.kra");
doc->exportDocument(QUrl::fromLocalFile(QString(FILES_OUTPUT_DIR) + QDir::separator() + "save_test.kra"));
delete doc;
}
}
......
......@@ -873,7 +873,7 @@ bool KisMainWindow::saveDocument(KisDocument *document, bool saveas)
* Make sure that we cannot enter this method twice!
*
* The lower level functions may call processEvents() so
* double-entry is quite possible to achive. Here we try to lock
* double-entry is quite possible to achieve. Here we try to lock
* the mutex, and if it is failed, just cancel saving.
*/
StdLockableWrapper<QMutex> wrapper(&d->savingEntryMutex);
......
......@@ -207,7 +207,7 @@ void KisTemplateCreateDia::createTemplate(const QString &templatesResourcePath,
}
fileName = tempFile.fileName();
}
bool retval = document->saveNativeFormat(fileName);
bool retval = document->exportDocument(QUrl::fromLocalFile(fileName));
if (!retval) {
qWarning("Could not save template");
return;
......
......@@ -67,7 +67,7 @@ void KisKraSaverTest::testRoundTrip()
KisDocument* doc = createCompleteDocument();
KoColor bgColor(Qt::red, doc->image()->colorSpace());
doc->image()->setDefaultProjectionColor(bgColor);
doc->saveNativeFormat("roundtriptest.kra");
doc->exportDocument(QUrl::fromLocalFile("roundtriptest.kra"));
QStringList list;
KisCountVisitor cv1(list, KoProperties());
doc->image()->rootLayer()->accept(cv1);
......@@ -105,7 +105,7 @@ void KisKraSaverTest::testRoundTrip()
void KisKraSaverTest::testSaveEmpty()
{
KisDocument* doc = createEmptyDocument();
doc->saveNativeFormat("emptytest.kra");
doc->exportDocument(QUrl::fromLocalFile("emptytest.kra"));
QStringList list;
KisCountVisitor cv1(list, KoProperties());
doc->image()->rootLayer()->accept(cv1);
......@@ -145,7 +145,7 @@ void testRoundTripFillLayerImpl(const QString &testName, KisFilterConfigurationS
p.image->waitForDone();
chk.checkImage(p.image, "00_initial_layer_update");
doc->saveNativeFormat("roundtrip_fill_layer_test.kra");
doc->exportDocument(QUrl::fromLocalFile("roundtrip_fill_layer_test.kra"));
QScopedPointer<KisDocument> doc2(KisPart::instance()->createDocument());
......@@ -236,7 +236,7 @@ void KisKraSaverTest::testRoundTripLayerStyles()
image->initialRefreshGraph();
chk.checkImage(image, "00_initial_layers");
doc->saveNativeFormat("roundtrip_layer_styles.kra");
doc->exportDocument(QUrl::fromLocalFile("roundtrip_layer_styles.kra"));
QScopedPointer<KisDocument> doc2(KisPart::instance()->createDocument());
......@@ -279,7 +279,7 @@ void KisKraSaverTest::testRoundTripAnimation()
QScopedPointer<KisDocument> doc(KisPart::instance()->createDocument());
doc->setCurrentImage(image);
doc->saveNativeFormat("roundtrip_animation.kra");
doc->exportDocument(QUrl::fromLocalFile("roundtrip_animation.kra"));
QScopedPointer<KisDocument> doc2(KisPart::instance()->createDocument());
doc2->loadNativeFormat("roundtrip_animation.kra");
......@@ -366,7 +366,7 @@ void KisKraSaverTest::testRoundTripColorizeMask()
doc->saveNativeFormat("roundtrip_colorize.kra");
doc->exportDocument(QUrl::fromLocalFile("roundtrip_colorize.kra"));
QScopedPointer<KisDocument> doc2(KisPart::instance()->createDocument());
doc2->loadNativeFormat("roundtrip_colorize.kra");
......
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