Commit e8caf5e4 authored by Laurent Montel's avatar Laurent Montel 😁

KDateTime--, need new libkgapi

parent e2aa3cd4
......@@ -127,7 +127,7 @@ configure_file(config-kdepim.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kdepim.h
# Extra package
find_package(KF5GAPI "4.70.0" CONFIG)
find_package(KF5GAPI "4.71.0" CONFIG)
include(GenerateExportHeader)
......
......@@ -105,8 +105,8 @@ void BloggerPrivate::updateKBlogPost(BlogPost *kblog, const KGAPI2::Blogger::Pos
kblog->setTitle(postPtr->title());
kblog->setContent(postPtr->content());
kblog->setTags(postPtr->labels());
kblog->setCreationDateTime(postPtr->published());
kblog->setModificationDateTime(postPtr->updated());
kblog->setCreationDateTime(KDateTime(postPtr->published()));
kblog->setModificationDateTime(KDateTime(postPtr->updated()));
kblog->setLink(postPtr->url());
kblog->setPrivate(postPtr->status() == QLatin1String("DRAFT"));
// TODO: Try to match more?
......@@ -122,8 +122,8 @@ KGAPI2::Blogger::PostPtr BloggerPrivate::KBlogPostToKGAPI(const BlogPost *const
postPtr->setTitle(kblog->title());
postPtr->setContent(kblog->content());
postPtr->setLabels(kblog->tags());
postPtr->setPublished(kblog->creationDateTime());
postPtr->setUpdated(kblog->modificationDateTime());
postPtr->setPublished(kblog->creationDateTime().dateTime());
postPtr->setUpdated(kblog->modificationDateTime().dateTime());
postPtr->setUrl(kblog->link());
return postPtr;
}
......@@ -169,8 +169,8 @@ BlogComment BloggerPrivate::KGAPICommentToKBlogComment(const KGAPI2::Blogger::Co
BlogComment kblogComment;
kblogComment.setCommentId(commentPtr->id());
kblogComment.setContent(commentPtr->content());
kblogComment.setCreationDateTime(commentPtr->published());
kblogComment.setModificationDateTime(commentPtr->updated());
kblogComment.setCreationDateTime(KDateTime(commentPtr->published()));
kblogComment.setModificationDateTime(KDateTime(commentPtr->updated()));
kblogComment.setName(commentPtr->authorName());
return kblogComment;
}
......@@ -475,8 +475,8 @@ void Blogger::modifyPost(KBlog::BlogPost *post)
Q_D(Blogger);
KGAPI2::Blogger::PostPtr postPtr = d->KBlogPostToKGAPI(post);
postPtr->setPublished(KDateTime());
postPtr->setUpdated(KDateTime());
postPtr->setPublished(QDateTime());
postPtr->setUpdated(QDateTime());
KGAPI2::Blogger::PostModifyJob *modifyJob
= new KGAPI2::Blogger::PostModifyJob(postPtr, d->account, this);
modifyJob->setProperty(KBLOGPOST_PROPERTY, QVariant::fromValue(post));
......
......@@ -54,7 +54,7 @@
#include <ktabwidget.h>
#include <KStatusNotifierItem>
#include <kstatusbar.h>
#include <qstatusbar.h>
#include <KToggleAction>
#include <kactioncollection.h>
#include <KActionMenu>
......
......@@ -40,7 +40,7 @@
#include <KToolInvocation>
#include <QClipboard>
#include <QTimer>
#include <kstatusbar.h>
#include <qstatusbar.h>
#include <qdebug.h>
#include <kxmlguiwindow.h>
#include <kmessagebox.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment