From 99cb2b216c38ea470f739d4748e68629521390ef183ecab3cc7df32692d6bf77 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Wed, 8 May 2013 13:13:21 +0000 Subject: [PATCH] Accepting request 174477 from home:sumski:branches:Education - Added fix-movetoanchor-for-qt5.patch, fixes non visible text when used with libQtWebkit 2.3 OBS-URL: https://build.opensuse.org/request/show/174477 OBS-URL: https://build.opensuse.org/package/show/Education/bibletime?expand=0&rev=33 --- bibletime.changes | 6 ++++++ bibletime.spec | 13 +++++++++---- fix-movetoanchor-for-qt5.patch | 28 ++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 fix-movetoanchor-for-qt5.patch diff --git a/bibletime.changes b/bibletime.changes index 2b9ba2c..368ccdb 100644 --- a/bibletime.changes +++ b/bibletime.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 3 23:34:36 UTC 2013 - hrvoje.senjan@gmail.com + +- Added fix-movetoanchor-for-qt5.patch, fixes non visible text when + used with libQtWebkit 2.3 + ------------------------------------------------------------------- Sat Dec 15 23:59:15 UTC 2012 - lars@linux-schulserver.de diff --git a/bibletime.spec b/bibletime.spec index 5f51de0..f7c9083 100644 --- a/bibletime.spec +++ b/bibletime.spec @@ -1,6 +1,7 @@ # # spec file for package bibletime # +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 Lars Vogdt # # All modifications and additions to the file contributed by third parties @@ -15,24 +16,27 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: bibletime Version: 2.9.1 -Release: 1 -License: GPL-2.0+ +Release: 0 Summary: An easy to use Bible study tool -Url: http://www.bibletime.info/ +License: GPL-2.0+ Group: Productivity/Scientific/Other +Url: http://www.bibletime.info/ Source0: %name-%version.tar.bz2 Source1: %{name}.xpm Source2: bibletime-rpmlintrc +# PATCH-FIX-UPSTREAM fix-movetoanchor-for-qt5.patch -- fixes no text visible in bibletime's main window when used with libQtWebkit 2.3 +Patch0: fix-movetoanchor-for-qt5.patch BuildRequires: boost-devel BuildRequires: cmake BuildRequires: curl-devel BuildRequires: libqt4-devel BuildRequires: sword-devel Provides: %{name}-i18n = %version -Obsoletes: %{name}-i18n < 1.7 Obsoletes: %{name}-devel < 1.7 +Obsoletes: %{name}-i18n < 1.7 Provides: %{name}-devel = %version Provides: sword-frontend # @@ -87,6 +91,7 @@ write own notes, save, print etc.). %prep %setup -q +%patch0 -p1 %build mkdir build diff --git a/fix-movetoanchor-for-qt5.patch b/fix-movetoanchor-for-qt5.patch new file mode 100644 index 0000000..b669110 --- /dev/null +++ b/fix-movetoanchor-for-qt5.patch @@ -0,0 +1,28 @@ +From fa3625f7b85f6ab5510914ab97e8ea231c252175 Mon Sep 17 00:00:00 2001 +From: Gary Holmlund +Date: Sun, 16 Dec 2012 18:30:14 -0800 +Subject: [PATCH 091/133] Fix moveToAnchor for Qt5 + +--- + src/frontend/display/bthtmlreaddisplay.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/frontend/display/bthtmlreaddisplay.cpp b/src/frontend/display/bthtmlreaddisplay.cpp +index 5cb69fb..433cec4 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 +-- +1.8.1.4 +