10#include <QtCore/QCoreApplication>
12#include <QtGui/QMouseEvent>
16const QString HelpViewerImpl::AboutBlank =
17 QCoreApplication::translate(
"HelpViewer",
"<title>about:blank</title>");
19const QString HelpViewerImpl::LocalHelpFile =
20 "qthelp://org.qt-project.qtassistant.%1%2%3/qtassistant/assistant-quick-guide.html"_L1.arg(
21 QString::number(QT_VERSION_MAJOR), QString::number(QT_VERSION_MINOR),
22 QString::number(QT_VERSION_PATCH));
24const QString HelpViewerImpl::PageNotFoundMessage =
25 QCoreApplication::translate(
"HelpViewer",
"<title>Error 404...</title><div "
26 "align=\"center\"><br><br><h1>The page could not be found.</h1><br><h3>'%1'"
29HelpViewerImpl::~HelpViewerImpl()
37void HelpViewerImpl::home()
40 setSource(HelpEngineWrapper::instance().homePage());
45void HelpViewerImpl::setLoadFinished()
47 emit sourceChanged(source());
52bool HelpViewerImpl::handleForwardBackwardMouseButtons(QMouseEvent *event)
55 if (event->button() == Qt::XButton1) {
60 if (event->button() == Qt::XButton2) {
Combined button and popup list for selecting options.