From 357fabc27ba4d6362a932b17aea50939a3f5e184 Mon Sep 17 00:00:00 2001 From: Reto Zingg Date: Sat, 13 Mar 2010 17:00:54 +0200 Subject: [PATCH] keduvockvtml2writer.cpp deKDEfied --- keduvockvtml2writer.cpp | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/keduvockvtml2writer.cpp b/keduvockvtml2writer.cpp index 99ad94d..7f9fed8 100644 --- a/keduvockvtml2writer.cpp +++ b/keduvockvtml2writer.cpp @@ -19,7 +19,8 @@ #include #include -#include +// #include +#include #include "keduvocdocument.h" #include "keduvocexpression.h" @@ -530,26 +531,28 @@ bool KEduVocKvtml2Writer::writeTranslation( QDomElement &translationElement, KEd // image if ( !translation->imageUrl().isEmpty() ) { - QString urlString; - if ( translation->imageUrl().url().startsWith(m_doc->url().upUrl().url()) ) { - // try to save as relative url - urlString = KUrl::relativeUrl( m_doc->url() , translation->imageUrl() ); - } else { - urlString = translation->imageUrl().url(); - } - translationElement.appendChild( newTextElement( KVTML_IMAGE, urlString ) ); + qCritical("Fixme: imageURL is Empty..."); +// QString urlString; +// if ( translation->imageUrl().url().startsWith(m_doc->url().upUrl().url()) ) { +// // try to save as relative url +// urlString = KUrl::relativeUrl( m_doc->url() , translation->imageUrl() ); +// } else { +// urlString = translation->imageUrl().url(); +// } +// translationElement.appendChild( newTextElement( KVTML_IMAGE, urlString ) ); } // sound if ( !translation->soundUrl().isEmpty() ) { - QString urlString; - if ( translation->soundUrl().url().startsWith(m_doc->url().upUrl().url()) ) { - // try to save as relative url - urlString = KUrl::relativeUrl( m_doc->url() , translation->soundUrl() ); - } else { - urlString = translation->soundUrl().url(); - } - translationElement.appendChild( newTextElement( KVTML_SOUND, urlString ) ); + qCritical("Fixme: soundURL is Empty..."); +// QString urlString; +// if ( translation->soundUrl().url().startsWith(m_doc->url().upUrl().url()) ) { +// // try to save as relative url +// urlString = KUrl::relativeUrl( m_doc->url() , translation->soundUrl() ); +// } else { +// urlString = translation->soundUrl().url(); +// } +// translationElement.appendChild( newTextElement( KVTML_SOUND, urlString ) ); } -- 2.47.3