Skip to content

Commit

Permalink
forcibly remove webkit and webkitwidgets dependancies
Browse files Browse the repository at this point in the history
  • Loading branch information
akdor1154 committed Mar 12, 2015
1 parent c354754 commit 0d9ae59
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/fakewebview.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <QtNetwork>

#include <QtWebKitWidgets/QWebView>
#include <QWebEngineView>

class FakeWebView : public QWebEngineView
Expand Down
10 changes: 4 additions & 6 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@

#include <QtGui>
#include <QtNetwork>
#include <QtWebKit>
#include <QtWebEngine>
#include <QDebug>
#include "mainwindow.h"

#include <QStandardPaths>
#include <QApplication>
#include <QDesktopWidget>
#include <QtWebKitWidgets/QWebFrame>
#include <QtWebEngineWidgets>

#include "cachingnm.h"
Expand Down Expand Up @@ -288,7 +286,7 @@ void MainWindow::cleanupSlot()
qDebug("Cleanup Slot (application exit)");
handler->stop();
clearCacheOnExit();
QWebSettings::clearMemoryCaches();
//QWebEngineSettings::clearMemoryCaches();
}

void MainWindow::showFullScreen() {
Expand Down Expand Up @@ -402,13 +400,13 @@ void MainWindow::keyPressEvent(QKeyEvent *event)
view->reload();
break;
case Qt::Key_F12:
if (mainSettings->value("inspector/enable").toBool()) {
/* if (mainSettings->value("inspector/enable").toBool()) {
if (!inspector->isVisible()) {
inspector->setVisible(true);
} else {
inspector->setVisible(false);
}
}
}*/
break;
case Qt::Key_F11:
if (isFullScreen()) {
Expand Down Expand Up @@ -695,7 +693,7 @@ void MainWindow::startLoading()

adjustTitle();

QWebSettings::clearMemoryCaches();
//QWebEngineSettings::clearMemoryCaches();

if (mainSettings->value("view/show_load_progress").toBool()) {
loadProgress->show();
Expand Down
5 changes: 2 additions & 3 deletions src/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@
#include <QProgressBar>
#include <QMainWindow>
#include <QtNetwork>
#include <QtWebKit>
#include <QtWebEngine>

#ifdef USE_TESTLIB
#include <QtTest/QTestEventList>
#endif

#include <QtWebKitWidgets/QWebInspector>
//#include <QtWebEngineWidgets/QWebInspector>

#include "webview.h"
#include "anyoption.h"
Expand Down Expand Up @@ -115,7 +114,7 @@ protected slots:

QSettings *mainSettings;
QNetworkDiskCache *diskCache;
QWebInspector *inspector;
//QWebInspector *inspector;

QKeyEvent * eventExit;

Expand Down
2 changes: 1 addition & 1 deletion src/qt-webengine-kiosk.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
#-------------------------------------------------

QT = core gui network webkit widgets webkitwidgets printsupport multimedia testlib webenginewidgets
QT = core gui network widgets printsupport multimedia testlib webenginewidgets

CONFIG += console link_pkgconfig
TARGET = qt-webengine-kiosk
Expand Down
1 change: 0 additions & 1 deletion src/webview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <QtDebug>
#include <QtGui>
#include <QtWebKit>
#include <QtWebEngine>
#include "webview.h"
#include <signal.h>
Expand Down
6 changes: 2 additions & 4 deletions src/webview.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#ifndef WEBVIEW_H
#define WEBVIEW_H

#include <QtWebKit>

#include <QtWebKitWidgets/QWebView>
#include <QtWebKitWidgets/QWebFrame>

#include <QtWebEngineWidgets/QWebEnginePage>
#include <QtWebEngineWidgets/QWebEngineView>

#include <QPrinter>
#include <QIcon>

#include <qplayer.h>
#include <fakewebview.h>

Expand Down

0 comments on commit 0d9ae59

Please sign in to comment.