[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim] blogilo/src: Reactivate code
From:       Montel Laurent <montel () kde ! org>
Date:       2016-04-01 4:47:02
Message-ID: E1alqz8-0003AS-Cn () scm ! kde ! org
[Download RAW message or body]

Git commit caa1363fac551341809f8b18ea6e36cd18255cbf by Montel Laurent.
Committed on 01/04/2016 at 04:46.
Pushed by mlaurent into branch 'master'.

Reactivate code

M  +9    -3    blogilo/src/postentry.cpp

http://commits.kde.org/kdepim/caa1363fac551341809f8b18ea6e36cd18255cbf

diff --git a/blogilo/src/postentry.cpp b/blogilo/src/postentry.cpp
index f32d8b7..b58bb93 100644
--- a/blogilo/src/postentry.cpp
+++ b/blogilo/src/postentry.cpp
@@ -245,15 +245,21 @@ void PostEntry::slotSetPostPreview()
 QString PostEntry::htmlContent() const
 {
 #ifdef QTWEBENGINE_SUPPORT_OPTION
-        //TODO
-    return {};
-#else
     if (d->tabWidget->currentIndex() == 1) {
         d->wysiwygEditor->editor()->setHtmlContent(d->htmlEditor->document()->text());
     } else {
+#if 0
         d->htmlEditor->document()->setText(d->wysiwygEditor->editor()->htmlContent());
+#endif
     }
     return d->htmlEditor->document()->text();
+#else
+    if (d->tabWidget->currentIndex() == 1) {
+        d->wysiwygEditor->editor()->setHtmlContent(d->htmlEditor->document()->text());
+    } else {
+        d->htmlEditor->document()->setText(d->wysiwygEditor->editor()->htmlContent());
+    }    
+    return d->htmlEditor->document()->text();
 #endif
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic