/[packages]/cauldron/bibletime/current/SOURCES/Fix-moveToAnchor-for-Qt5.patch
ViewVC logotype

Contents of /cauldron/bibletime/current/SOURCES/Fix-moveToAnchor-for-Qt5.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 411966 - (show annotations) (download)
Thu May 2 17:22:33 2013 UTC (10 years, 10 months ago) by lmenut
File size: 931 byte(s)
SILENT sync for missing patch
1 From fa3625f7b85f6ab5510914ab97e8ea231c252175 Mon Sep 17 00:00:00 2001
2 From: Gary Holmlund <gary@holmlundg.(none)>
3 Date: Sun, 16 Dec 2012 18:30:14 -0800
4 Subject: [PATCH] Fix moveToAnchor for Qt5
5
6 ---
7 src/frontend/display/bthtmlreaddisplay.cpp | 4 ++++
8 1 files changed, 4 insertions(+), 0 deletions(-)
9
10 diff --git a/src/frontend/display/bthtmlreaddisplay.cpp b/src/frontend/display/bthtmlreaddisplay.cpp
11 index 5cb69fb..433cec4 100644
12 --- a/src/frontend/display/bthtmlreaddisplay.cpp
13 +++ b/src/frontend/display/bthtmlreaddisplay.cpp
14 @@ -247,7 +247,11 @@ void BtHtmlReadDisplay::selectAll() {
15
16 // Scroll QWebView to the correct location as specified by the anchor
17 void BtHtmlReadDisplay::moveToAnchor( const QString& anchor ) {
18 +#if QT_VERSION >= 0x040700
19 + mainFrame()->scrollToAnchor(anchor);
20 +#else
21 slotGoToAnchor(anchor);
22 +#endif
23 }
24
25 // Scroll the QWebView to the correct location specified by anchor
26 --
27 1.7.1
28

  ViewVC Help
Powered by ViewVC 1.1.30