23class HelpViewerImpl::HelpViewerImplPrivate :
public QObject
28#if defined(BROWSER_QTEXTBROWSER)
29 HelpViewerImplPrivate(
int zoom)
32#elif defined(BROWSER_QTWEBKIT)
33 HelpViewerImplPrivate()
40 webDpiRatio = QGuiApplication::primaryScreen()->logicalDotsPerInch() / 96.;
41 if (webDpiRatio < 1.25)
46#if defined(BROWSER_QTEXTBROWSER)
47 bool hasAnchorAt(QTextBrowser *browser,
const QPoint& pos)
49 lastAnchor = browser->anchorAt(pos);
50 if (lastAnchor.isEmpty())
53 lastAnchor = browser->source().resolved(lastAnchor).toString();
54 if (lastAnchor.at(0) == u'#') {
55 QString src = browser->source().toString();
56 int hsh = src.indexOf(u'#');
57 lastAnchor = (hsh >= 0 ? src.left(hsh) : src) + lastAnchor;
68 void openLinkInNewPage()
76 bool forceFont =
false;
80 void doOpenLink(
bool newPage)
82 if (lastAnchor.isEmpty())
85 OpenPagesManager::instance()->createPage(lastAnchor);
87 CentralWidget::instance()->setSource(lastAnchor);
91#elif defined(BROWSER_QTWEBKIT)