]> Git trees. - libqmvoc.git/commitdiff
keduvockvtml2writer.cpp deKDEfied
authorReto Zingg <g.d0b3rm4n@gmail.com>
Sat, 13 Mar 2010 15:00:54 +0000 (17:00 +0200)
committerReto Zingg <g.d0b3rm4n@gmail.com>
Sat, 15 Dec 2012 16:06:22 +0000 (18:06 +0200)
keduvockvtml2writer.cpp

index 99ad94d8c9b963a06ada72c1241add54ff64ad93..7f9fed8685bd5a6511e3aeb37609d5f7530fcb01 100644 (file)
@@ -19,7 +19,8 @@
 #include <QtCore/QTextStream>
 #include <QtCore/QFile>
 
-#include <KDebug>
+// #include <KDebug>
+#include <QDebug>
 
 #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 ) );
     }