File: packaged_jquery.diff

package info (click to toggle)
qtwebkit-examples-opensource-src 5.7.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,880 kB
  • ctags: 1,312
  • sloc: cpp: 11,698; makefile: 27
file content (26 lines) | stat: -rw-r--r-- 871 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: update to use packaged jQuery
Author: Dmitry Shachnev <mitya57@debian.org>
Forwarded: not-needed
Last-Update: 2017-01-04

--- a/examples/webkitwidgets/fancybrowser/fancybrowser.pro
+++ b/examples/webkitwidgets/fancybrowser/fancybrowser.pro
@@ -2,7 +2,6 @@
 HEADERS =   mainwindow.h
 SOURCES =   main.cpp \
             mainwindow.cpp
-RESOURCES = jquery.qrc
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/webkitwidgets/fancybrowser
--- a/examples/webkitwidgets/fancybrowser/mainwindow.cpp
+++ b/examples/webkitwidgets/fancybrowser/mainwindow.cpp
@@ -50,7 +50,7 @@
     progress = 0;
 
     QFile file;
-    file.setFileName(":/jquery.min.js");
+    file.setFileName("/usr/share/javascript/jquery/jquery.min.js");
     file.open(QIODevice::ReadOnly);
     jQuery = file.readAll();
     jQuery.append("\nvar qt = { 'jQuery': jQuery.noConflict(true) };");