40#if defined(USE_QTWEBKIT)
42using QWebEngineView = QWebView;
44#include <QWebEnginePage>
55 if (type == QWebEnginePage::NavigationTypeLinkClicked) {
57 if (url.scheme().startsWith(
"http") || url.toString().endsWith(
".png")) {
78 pqHelpWindow(QHelpEngine *engine, QWidget *parent =
nullptr,
const Qt::WindowFlags &flags = Qt::WindowFlags());
83 virtual void showPage(
const QString &url,
bool linkClicked =
false);
84 virtual void showPage(
const QUrl &url,
bool linkClicked =
false);
86 virtual void showLinkedPage(
const QUrl &url);
90 virtual void showHomePage(
const QString &namespace_name);
91 virtual void showHomePage();
94 virtual void printPage();
97 bool isExistingPage(
const QUrl &url);
105 void linkHovered(
const QString &link,
const QString &title =
"",
const QString &textContent =
"");
106 void updateNavButtons();
119 void errorMissingPage(
const QUrl &url);
121 class pqNetworkAccessManager;
122 friend class pqNetworkAccessManager;
#define EXPORT_OPT_MANTIDQT_COMMON
Mimic the WebKit class to emit linkClicked signal from the page.
bool acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool) override
void linkClicked(const QUrl &)
DelegatingWebPage(QObject *parent=nullptr)
pqHelpWindow provides an assistant-like window for showing help provided by a QHelpEngine.
QWebEngineView * m_browser
QHelpEngine * m_helpEngine
pqHelpWindow & operator=(const pqHelpWindow &)=delete
pqHelpWindow(const pqHelpWindow &)=delete
void helpWarnings(const QString &)
fired to relay warning messages from the help system.