mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b6c7abc1a7
commit
643f4a5726
7 changed files with 2 additions and 132 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue