[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim] blogilo/src: Reactivate some code
From: Montel Laurent <montel () kde ! org>
Date: 2016-03-31 19:22:19
Message-ID: E1aliAd-0007Ky-8x () scm ! kde ! org
[Download RAW message or body]
Git commit 418b69056a2239e5f75755f0ee8dc4754713abc0 by Montel Laurent.
Committed on 31/03/2016 at 11:14.
Pushed by mlaurent into branch 'master'.
Reactivate some code
M +0 -33 blogilo/src/postentry.cpp
http://commits.kde.org/kdepim/418b69056a2239e5f75755f0ee8dc4754713abc0
diff --git a/blogilo/src/postentry.cpp b/blogilo/src/postentry.cpp
index 8d5ab3a..8ee53af 100644
--- a/blogilo/src/postentry.cpp
+++ b/blogilo/src/postentry.cpp
@@ -194,11 +194,7 @@ void PostEntry::slotFocusEditor()
{
switch (d->tabWidget->currentIndex()) {
case 0:
-#ifdef QTWEBENGINE_SUPPORT_OPTION
- //TODO d->wysiwygEditor->editor()->startEditing();
-#else
d->wysiwygEditor->editor()->startEditing();
-#endif
break;
case 1:
d->htmlEditor->setFocus();
@@ -214,38 +210,22 @@ void PostEntry::slotSyncEditors(int index)
d->prev_index = index;
return;
}//An else clause can do the job of goto, No? -Mehrdad :D
-#ifdef QTWEBENGINE_SUPPORT_OPTION
- //TODO
-#else
d->wysiwygEditor->editor()->setHtmlContent(d->htmlEditor->document()->text());
d->wysiwygEditor->editor()->setFocus();
d->wysiwygEditor->editor()->startEditing();
-#endif
} else if (index == 1) {
if (d->prev_index == 2) {
d->previewer->stop();
d->prev_index = index;
return;
}
-#ifdef QTWEBENGINE_SUPPORT_OPTION
- //TODO
-#else
d->htmlEditor->document()->setText(d->wysiwygEditor->editor()->htmlContent());
-#endif
d->htmlEditor->setFocus();
} else {
if (d->prev_index == 1) {
-#ifdef QTWEBENGINE_SUPPORT_OPTION
- //TODO
-#else
d->wysiwygEditor->editor()->setHtmlContent(d->htmlEditor->document()->text());
-#endif
} else {
-#ifdef QTWEBENGINE_SUPPORT_OPTION
- //TODO
-#else
d->htmlEditor->document()->setText(d->wysiwygEditor->editor()->htmlContent());
-#endif
}
d->previewer->setHtml(d->txtTitle->toPlainText(), d->htmlEditor->document()->text());
}
@@ -286,11 +266,7 @@ QString PostEntry::plainTextContent() const
void PostEntry::setHtmlContent(const QString &content)
{
-#ifdef QTWEBENGINE_SUPPORT_OPTION
- //TODO
-#else
d->wysiwygEditor->editor()->setHtmlContent(content);
-#endif
d->htmlEditor->document()->setText(content);
}
@@ -383,21 +359,12 @@ void PostEntry::setDefaultLayoutDirection(Qt::LayoutDirection direction)
QList< BilboMedia * > PostEntry::localImages() const
{
-#ifdef QTWEBENGINE_SUPPORT_OPTION
- //TODO
- return {};
-#else
return d->wysiwygEditor->editor()->getLocalImages();
-#endif
}
void PostEntry::replaceImageSrc(const QString &src, const QString &dest)
{
-#ifdef QTWEBENGINE_SUPPORT_OPTION
- //TODO
-#else
d->wysiwygEditor->editor()->replaceImageSrc(src, dest);
-#endif
}
bool PostEntry::uploadMediaFiles(Backend *backend)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic