void KPrDocument::initEmpty() { QString fileName(KStandardDirs::locate( "stage_template", "Screen/.source/emptyLandscape.otp", KGlobal::mainComponent())); setModified( true ); bool ok = loadNativeFormat( fileName ); if ( !ok ) { // use initEmpty from kopageapp documentPart()->showLoadingErrorDialog(); KoPADocument::initEmpty(); } resetURL(); }
void KPrDocument::initEmpty() { QString fileName(KStandardDirs::locate( "data", "stage/templates/Screen/.source/emptyLandscape.otp")); setModified( true ); bool ok = loadNativeFormat( fileName ); if ( !ok ) { // use initEmpty from kopageapp showLoadingErrorDialog(); KoPADocument::initEmpty(); } resetURL(); }