summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/usermanual.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-19 12:40:33 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-20 08:45:02 -0700
commit643f4a5726926b86693b442e318f40cf28fee04a (patch)
tree96841bf31a0ff5e82a22b042c10c351d25a27b84 /desktop-widgets/usermanual.h
parentb6c7abc1a76f4a05ea564ae994f19d5fc467699a (diff)
downloadsubsurface-643f4a5726926b86693b442e318f40cf28fee04a.tar.gz
Remove partial support for QWebEngine
Printing never worked, none of this was ever included in test builds. Also, now that there are official releases of QtWebKit again, this just doesn't seem worth carrying along anymore. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/usermanual.h')
-rw-r--r--desktop-widgets/usermanual.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/desktop-widgets/usermanual.h b/desktop-widgets/usermanual.h
index e005fb0fe..bb019f25b 100644
--- a/desktop-widgets/usermanual.h
+++ b/desktop-widgets/usermanual.h
@@ -2,12 +2,7 @@
#ifndef USERMANUAL_H
#define USERMANUAL_H
-#ifdef USE_WEBENGINE
-#include <QWebEngineView>
-#include <QWebEnginePage>
-#else
#include <QWebView>
-#endif
#include <QDialog>
#include "ui_searchbar.h"
@@ -27,27 +22,6 @@ private:
Ui::SearchBar ui;
};
-#ifdef USE_WEBENGINE
-class MyQWebEnginePage : public QWebEnginePage
-{
- Q_OBJECT
-
-public:
- MyQWebEnginePage(QObject* parent = 0);
- bool acceptNavigationRequest(const QUrl & url, QWebEnginePage::NavigationType type, bool);
-};
-
-class MyQWebEngineView : public QWebEngineView
-{
- Q_OBJECT
-
-public:
- MyQWebEngineView(QWidget* parent = 0);
- MyQWebEnginePage* page() const;
-};
-#endif
-
-
class UserManual : public QDialog {
Q_OBJECT
@@ -67,18 +41,11 @@ slots:
void searchTextChanged(const QString& s);
void searchNext();
void searchPrev();
-#ifndef USE_WEBENGINE
void linkClickedSlot(const QUrl& url);
-#endif
private:
SearchBar *searchBar;
QString mLastText;
-#ifdef USE_WEBENGINE
- QWebEngineView *userManual;
- void search(QString, QWebEnginePage::FindFlags);
-#else
QWebView *userManual;
void search(QString, QWebPage::FindFlags);
-#endif
};
#endif // USERMANUAL_H