diff options
Diffstat (limited to 'src/frontend/display/bthtmlreaddisplay.cpp')
-rw-r--r-- | src/frontend/display/bthtmlreaddisplay.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frontend/display/bthtmlreaddisplay.cpp b/src/frontend/display/bthtmlreaddisplay.cpp index d7ee33f..1842178 100644 --- a/src/frontend/display/bthtmlreaddisplay.cpp +++ b/src/frontend/display/bthtmlreaddisplay.cpp @@ -247,7 +247,11 @@ void BtHtmlReadDisplay::selectAll() { // Scroll QWebView to the correct location as specified by the anchor void BtHtmlReadDisplay::moveToAnchor( const QString& anchor ) { +#if QT_VERSION >= 0x040700 + mainFrame()->scrollToAnchor(anchor); +#else slotGoToAnchor(anchor); +#endif } // Scroll the QWebView to the correct location specified by anchor |