@@ -1,157 +0,0 @@
1−Date: Wed, 6 Jun 2018 20:46:38 +0200
2−
3−This reverts commit eceda92a16f1f4e5c5b584acd745398571df2bd6.
4−---
5− src/application/mainapplication.cpp | 3 ---
6− src/application/mainwindow.cpp | 11 -----------
7− src/application/mainwindow.h | 2 --
8− src/newstabwidget.cpp | 6 +-----
9− src/newstabwidget.h | 2 +-
10− src/optionsdialog.cpp | 2 --
11− src/webview/webpage.cpp | 13 +------------
12− src/webview/webpage.h | 3 ---
13− 8 files changed, 3 insertions(+), 39 deletions(-)
14−
15−diff --git a/src/application/mainapplication.cpp b/src/application/mainapplication.cpp
16−index e93ec9c1..a5913bdf 100644
17−--- a/src/application/mainapplication.cpp
18−+++ b/src/application/mainapplication.cpp
19−@@ -566,9 +566,6 @@ void MainApplication::c2fLoadSettings()
20− settings.beginGroup("ClickToFlash");
21− c2fWhitelist_ = settings.value("whitelist", QStringList()).toStringList();
22− c2fEnabled_ = settings.value("enabled", true).toBool();
23−-#if QT_VERSION >= 0x050900
24−- c2fEnabled_ = false;
25−-#endif
26− settings.endGroup();
27− }
28−
29−diff --git a/src/application/mainwindow.cpp b/src/application/mainwindow.cpp
30−index 337a7c4e..42255d2c 100644
31−--- a/src/application/mainwindow.cpp
32−+++ b/src/application/mainwindow.cpp
33−@@ -8140,14 +8140,3 @@ void MainWindow::createBackup()
34− QFile::copy(settings.fileName(), backupFileName);
35− }
36− }
37−-
38−-void MainWindow::webViewFullScreen(bool on)
39−-{
40−- setFullScreen();
41−- feedsWidget_->setVisible(!on);
42−- pushButtonNull_->setVisible(!on);
43−- tabBarWidget_->setVisible(!on);
44−- currentNewsTab->newsWidget_->setVisible(!on);
45−- pushButtonNull_->setVisible(!on);
46−- statusBar()->setVisible(!on);
47−-}
48−diff --git a/src/application/mainwindow.h b/src/application/mainwindow.h
49−index 995f96dc..93b75c11 100644
50−--- a/src/application/mainwindow.h
51−+++ b/src/application/mainwindow.h
52−@@ -271,8 +271,6 @@ public:
53−
54− AdBlockIcon *adBlockIcon() { return adblockIcon_; }
55−
56−- void webViewFullScreen(bool on);
57−-
58− public slots:
59− void restoreFeedsOnStartUp();
60− void addFeed();
61−diff --git a/src/newstabwidget.cpp b/src/newstabwidget.cpp
62−index 77d74d3b..c6c130f7 100644
63−--- a/src/newstabwidget.cpp
64−+++ b/src/newstabwidget.cpp
65−@@ -1842,12 +1842,8 @@ void NewsTabWidget::loadNewspaper(int refresh)
66− *----------------------------------------------------------------------------*/
67− void NewsTabWidget::slotSetHtmlWebView(const QString &html, const QUrl &baseUrl)
68− {
69−- QUrl url = baseUrl;
70−-#if QT_VERSION >= 0x050900
71−- url.setScheme("");
72−-#endif
73− webView_->history()->setMaximumItemCount(0);
74−- webView_->setHtml(html, url);
75−+ webView_->setHtml(html, baseUrl);
76− webView_->history()->setMaximumItemCount(100);
77− }
78−
79−diff --git a/src/newstabwidget.h b/src/newstabwidget.h
80−index 7f5c3957..8d1266ac 100644
81−--- a/src/newstabwidget.h
82−+++ b/src/newstabwidget.h
83−@@ -127,7 +127,6 @@ public:
84− QToolBar *newsToolBar_;
85− QSplitter *newsTabWidgetSplitter_;
86−
87−- QWidget *newsWidget_;
88− WebView *webView_;
89− QToolBar *webToolBar_;
90− LocationBar *locationBar_;
91−@@ -199,6 +198,7 @@ private:
92−
93− MainWindow *mainWindow_;
94− QSqlDatabase db_;
95−+ QWidget *newsWidget_;
96−
97− FeedsModel *feedsModel_;
98− FeedsProxyModel *feedsProxyModel_;
99−diff --git a/src/optionsdialog.cpp b/src/optionsdialog.cpp
100−index 73136dec..c082bc30 100644
101−--- a/src/optionsdialog.cpp
102−+++ b/src/optionsdialog.cpp
103−@@ -741,9 +741,7 @@ void OptionsDialog::createBrowserWidget()
104− browserWidget_ = new QTabWidget();
105− browserWidget_->addTab(generalBrowserWidget, tr("General"));
106− browserWidget_->addTab(historyBrowserWidget_, tr("History"));
107−-#if QT_VERSION < 0x050900
108− browserWidget_->addTab(click2FlashWidget_, tr("Click to Flash"));
109−-#endif
110− browserWidget_->addTab(downloadsWidget, tr("Downloads"));
111− }
112−
113−diff --git a/src/webview/webpage.cpp b/src/webview/webpage.cpp
114−index 6401ec87..0254a167 100644
115−--- a/src/webview/webpage.cpp
116−+++ b/src/webview/webpage.cpp
117−@@ -51,10 +51,7 @@ WebPage::WebPage(QObject *parent)
118− this, SLOT(downloadRequested(QNetworkRequest)));
119− connect(this, SIGNAL(printRequested(QWebFrame*)),
120− mainApp->mainWindow(), SLOT(slotPrint(QWebFrame*)));
121−-#if QT_VERSION >= 0x050900
122−- connect(this, SIGNAL(fullScreenRequested(QWebFullScreenRequest)),
123−- this, SLOT(slotFullScreenRequested(QWebFullScreenRequest)));
124−-#endif
125−+
126− livingPages_.append(this);
127− }
128−
129−@@ -286,11 +283,3 @@ void WebPage::cleanBlockedObjects()
130− mainFrame()->scrollToAnchor(mainFrame()->url().fragment());
131− }
132− }
133−-
134−-#if QT_VERSION >= 0x050900
135−-void WebPage::slotFullScreenRequested(QWebFullScreenRequest fullScreenRequest)
136−-{
137−- fullScreenRequest.accept();
138−- mainApp->mainWindow()->webViewFullScreen(fullScreenRequest.toggleOn());
139−-}
140−-#endif
141−diff --git a/src/webview/webpage.h b/src/webview/webpage.h
142−index 5c376c50..91e72758 100644
143−--- a/src/webview/webpage.h
144−+++ b/src/webview/webpage.h
145−@@ -68,9 +68,6 @@ private slots:
146− void downloadRequested(const QNetworkRequest &request);
147− void cleanBlockedObjects();
148− void urlChanged(const QUrl &url);
149−-#if QT_VERSION >= 0x050900
150−- void slotFullScreenRequested(QWebFullScreenRequest fullScreenRequest);
151−-#endif
152−
153− private:
154− NetworkManagerProxy *networkManagerProxy_;
155−--
156−2.16.2
157−