File acetoneiso-no-qtwebkit.patch of Package acetoneiso2
Subject: Build without QtWebKit
From: Wolfgang Bauer <wbauer@tmo.at>
This removes the "Updates" tab in the main window, which actually is
disabled in 2.4 anyway (the webpage it used to display in previous
versions doesn't exist anymore), to get rid of the QtWebKit dependency.
diff -ur a/acetoneiso/acetoneiso.pro b/acetoneiso/acetoneiso.pro
--- a/acetoneiso/acetoneiso.pro
+++ b/acetoneiso/acetoneiso.pro
@@ -60,7 +60,7 @@
#QT += phonon
QT += dbus
#QT += svg
-QT += webkit core widgets webkitwidgets
+QT += core widgets
#install#
target.path = /usr/bin
diff -ur a/acetoneiso/sources/acetoneiso.cpp b/acetoneiso/sources/acetoneiso.cpp
--- a/acetoneiso/sources/acetoneiso.cpp
+++ b/acetoneiso/sources/acetoneiso.cpp
@@ -18,7 +18,6 @@
#include <QtWidgets>
#include <QTabWidget>
#include <QThread>
-#include <QWebView>
#include "acetoneiso.h"
#include "connections.h"
#include <fcntl.h>
diff -ur a/acetoneiso/sources/acetoneiso.h b/acetoneiso/sources/acetoneiso.h
--- a/acetoneiso/sources/acetoneiso.h
+++ b/acetoneiso/sources/acetoneiso.h
@@ -21,8 +21,6 @@
#include <QListWidget>
#include <QTabWidget>
#include <QDebug>
-#include <QtWebKit>
-#include <QWebView>
#include <QProcess>
#include <QThread>
#include"progress.h"
diff -ur a/acetoneiso/ui/acetoneiso.ui b/acetoneiso/ui/acetoneiso.ui
--- a/acetoneiso/ui/acetoneiso.ui
+++ b/acetoneiso/ui/acetoneiso.ui
@@ -698,50 +698,6 @@
</item>
</layout>
</widget>
- <widget class="QWidget" name="tab_2">
- <attribute name="icon">
- <iconset resource="../acetoneiso.qrc">
- <normaloff>:/images/splash.png</normaloff>:/images/splash.png</iconset>
- </attribute>
- <attribute name="title">
- <string>Updates</string>
- </attribute>
- <layout class="QGridLayout" name="gridLayout_4">
- <item row="0" column="0">
- <widget class="QWebView" name="webView">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>260</width>
- <height>100</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>6000</width>
- <height>6000</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Real time updates from the net</string>
- </property>
- <property name="url">
- <url>
- <string>about:blank</string>
- </url>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
</widget>
</item>
<item row="1" column="0">
@@ -2068,13 +2024,6 @@
</property>
</action>
</widget>
- <customwidgets>
- <customwidget>
- <class>QWebView</class>
- <extends>QWidget</extends>
- <header>QtWebKitWidgets/QWebView</header>
- </customwidget>
- </customwidgets>
<tabstops>
<tabstop>listWidget_2</tabstop>
</tabstops>