diff options
Diffstat (limited to 'desktop-widgets/usermanual.h')
-rw-r--r-- | desktop-widgets/usermanual.h | 33 |
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 |