[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [digikam/gsoc18-twitter-onedrive] core/utilities/assistants/webservices/common: Adding support for Q
From: Tarek Talaat <null () kde ! org>
Date: 2018-08-11 21:39:02
Message-ID: E1fobbC-0005aG-Tr () code ! kde ! org
[Download RAW message or body]
Git commit b2647c5446d82a20753f13c80219bd80b0e53a66 by Tarek Talaat.
Committed on 10/08/2018 at 21:29.
Pushed by tarektalaat into branch 'gsoc18-twitter-onedrive'.
Adding support for QWebView
A +53 -0 core/utilities/assistants/webservices/common/webwidget.cpp \
[License: GPL (v2+)] A +52 -0 \
core/utilities/assistants/webservices/common/webwidget.h [License: GPL (v2+)] A \
+51 -0 core/utilities/assistants/webservices/common/webwidget_qwebengine.cpp \
[License: GPL (v2+)] A +52 -0 \
core/utilities/assistants/webservices/common/webwidget_qwebengine.h [License: GPL \
(v2+)]
https://commits.kde.org/digikam/b2647c5446d82a20753f13c80219bd80b0e53a66
diff --git a/core/utilities/assistants/webservices/common/webwidget.cpp \
b/core/utilities/assistants/webservices/common/webwidget.cpp new file mode 100644
index 0000000000..1b92d9e075
--- /dev/null
+++ b/core/utilities/assistants/webservices/common/webwidget.cpp
@@ -0,0 +1,53 @@
+/* ============================================================
+ *
+ * This file is a part of digiKam project
+ * http://www.digikam.org
+ *
+ * Date : 2009-12-01
+ * Description : Widget for displaying HTML in the backends
+ *
+ * Copyright (C) 2010-2018 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2009-2011 by Michael G. Hansen <mike at mghansen dot de>
+ * Copyright (C) 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * ============================================================ */
+
+ #include "webwidget.h"
+
+namespace Digikam
+{
+class WebWidget::Private
+{
+public:
+
+ explicit Private()
+ : parent(0)
+ {
+ }
+
+ QWidget* parent;
+};
+WebWidget::WebWidget(QWidget* const parent)
+ : QWebView(parent),
+ d(new Private())
+{
+ d->parent = parent;
+ connect(this, SIGNAL(loadProgress(int)),
+ this, SLOT(progress(int)));
+}
+WebWidget::~WebWidget()
+{
+ delete d;
+}
+} // namespace Digikam
diff --git a/core/utilities/assistants/webservices/common/webwidget.h \
b/core/utilities/assistants/webservices/common/webwidget.h new file mode 100644
index 0000000000..ac51f21088
--- /dev/null
+++ b/core/utilities/assistants/webservices/common/webwidget.h
@@ -0,0 +1,52 @@
+/* ============================================================
+ *
+ * This file is a part of digiKam project
+ * http://www.digikam.org
+ *
+ * Date : 2009-12-01
+ * Description : Widget for displaying HTML in the backends
+ *
+ * Copyright (C) 2010-2018 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2009-2011 by Michael G. Hansen <mike at mghansen dot de>
+ * Copyright (C) 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * ============================================================ */
+
+#ifndef DIGIKAM_WEB_WIDGET_H
+#define DIGIKAM_WEB_WIDGET_H
+
+// Qt includes
+
+#include <qwebview.h>
+//#include<QWebView>
+
+namespace Digikam
+{
+
+class WebWidget : public QWebView
+{
+ Q_OBJECT
+
+public:
+
+ explicit WebWidget(QWidget* const parent = 0);
+ ~WebWidget();
+
+private:
+
+ class Private;
+ Private* const d;
+};
+}
+#endif
diff --git a/core/utilities/assistants/webservices/common/webwidget_qwebengine.cpp \
b/core/utilities/assistants/webservices/common/webwidget_qwebengine.cpp new file mode \
100644 index 0000000000..c4da91a1bd
--- /dev/null
+++ b/core/utilities/assistants/webservices/common/webwidget_qwebengine.cpp
@@ -0,0 +1,51 @@
+/* ============================================================
+ *
+ * This file is a part of digiKam project
+ * http://www.digikam.org
+ *
+ * Date : 2009-12-01
+ * Description : Widget for displaying HTML in the backends
+ *
+ * Copyright (C) 2010-2018 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2009-2011 by Michael G. Hansen <mike at mghansen dot de>
+ * Copyright (C) 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * ============================================================ */
+ #include "webwidget_qwebengine.h"
+namespace Digikam
+{
+class WebWidget::Private
+{
+public:
+
+ explicit Private()
+ : parent(0)
+ {
+ }
+
+ QWidget* parent;
+};
+WebWidget::WebWidget(QWidget* const parent)
+ : QWebEngineView(parent),
+ d(new Private())
+{
+ d->parent = parent;
+ connect(this, SIGNAL(loadProgress(int)),
+ this, SLOT(progress(int)));
+}
+WebWidget::~WebWidget()
+{
+ delete d;
+}
+}
diff --git a/core/utilities/assistants/webservices/common/webwidget_qwebengine.h \
b/core/utilities/assistants/webservices/common/webwidget_qwebengine.h new file mode \
100644 index 0000000000..0e8bfff4f9
--- /dev/null
+++ b/core/utilities/assistants/webservices/common/webwidget_qwebengine.h
@@ -0,0 +1,52 @@
+/* ============================================================
+ *
+ * This file is a part of digiKam project
+ * http://www.digikam.org
+ *
+ * Date : 2009-12-01
+ * Description : Widget for displaying HTML in the backends
+ *
+ * Copyright (C) 2010-2018 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2009-2011 by Michael G. Hansen <mike at mghansen dot de>
+ * Copyright (C) 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * ============================================================ */
+
+#ifndef DIGIKAM_WEB_WIDGET_QWEBENGINE_H
+#define DIGIKAM_WEB_WIDGET_QWEBENGINE_H
+
+// Qt includes
+#include <QWebEngineView>
+#include <QWebEnginePage>
+#include <QWebEngineProfile>
+#include <QWebEngineCookieStore>
+
+namespace Digikam
+{
+class WebWidget : public QWebEngineView
+{
+ Q_OBJECT
+
+public:
+
+ explicit WebWidget(QWidget* const parent = 0);
+ ~WebWidget();
+
+private:
+
+ class Private;
+ Private* const d;
+};
+}
+#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic