summaryrefslogtreecommitdiff
path: root/libre-testing/akonadi-contacts/libre.patch
blob: 54b5baa029cef7aaa6d9e748d59cb86789f7e1f4 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6fdb0a723..3bb5ea6d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,7 +34,7 @@ ecm_setup_version(${AKONADI_CONTACTS_VERSION} VARIABLE_PREFIX AKONADICONTACT
     )
 
 set(QT_REQUIRED_VERSION "5.6.0")
-find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test WebEngine WebEngineWidgets)
+find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test)
 ########### Find packages ###########
 find_package(KF5KIO ${KF5_VERSION} CONFIG REQUIRED)
 find_package(KF5I18n ${KF5_VERSION} CONFIG REQUIRED)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c26423397..291fe3d39 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -78,10 +78,6 @@ set(akonadicontact_editor_generalinfo_SRCS
     ${akonadicontact_editor_generalinfo_mail_SRCS}
     )
 
-set(akonadicontact_addresslocation_web_editor_SRCS
-    editor/addresseditor/webengine/addresseslocationengineviewer.cpp
-    editor/addresseditor/webengine/addresseslocationenginepage.cpp
-    )
 
 set(akonadicontact_addresslocation_editor_SRCS
     ${akonadicontact_addresslocation_web_editor_SRCS}
@@ -215,8 +211,6 @@ target_link_libraries(KF5AkonadiContact
     KF5::WidgetsAddons
     KF5::XmlGui
     Grantlee5::Templates
-    Qt5::WebEngine
-    Qt5::WebEngineWidgets
     )
 
 if(KF5Prison_FOUND)
diff --git a/src/editor/addresseditor/addresseslocationwidget.cpp b/src/editor/addresseditor/addresseslocationwidget.cpp
index d76d8f692..ae718aff8 100644
--- a/src/editor/addresseditor/addresseslocationwidget.cpp
+++ b/src/editor/addresseditor/addresseslocationwidget.cpp
@@ -21,7 +21,6 @@
 */
 
 #include "addresseslocationwidget.h"
-#include "webengine/addresseslocationengineviewer.h"
 #include "addresslocationwidget.h"
 using namespace Akonadi;
 
@@ -32,13 +31,6 @@ AddressesLocationWidget::AddressesLocationWidget(QWidget *parent)
     mAddressLocationWidget = new AddressLocationWidget(this);
     addWidget(mAddressLocationWidget);
     mAddressLocationWidget->setObjectName(QStringLiteral("addresslocationwidget"));
-    mAddressesLocationViewer = new AddressesLocationEngineViewer(this);
-    mAddressesLocationViewer->setObjectName(QStringLiteral("addresseslocationviewer"));
-    addWidget(mAddressesLocationViewer);
-    connect(mAddressesLocationViewer, &AddressesLocationEngineViewer::modifyAddress, mAddressLocationWidget, &AddressLocationWidget::slotModifyAddress);
-    connect(mAddressLocationWidget, &AddressLocationWidget::addNewAddress, mAddressesLocationViewer, &AddressesLocationEngineViewer::addAddress);
-    connect(mAddressLocationWidget, &AddressLocationWidget::updateAddressCanceled, mAddressesLocationViewer, &AddressesLocationEngineViewer::updateAddressCanceled);
-    connect(mAddressLocationWidget, &AddressLocationWidget::updateAddress, mAddressesLocationViewer, &AddressesLocationEngineViewer::replaceAddress);
     setSizes(QList<int>() << 400 << 300);
 }
 
@@ -49,7 +41,6 @@ AddressesLocationWidget::~AddressesLocationWidget()
 
 void AddressesLocationWidget::loadContact(const KContacts::Addressee &contact)
 {
-    mAddressesLocationViewer->setAddresses(contact.addresses());
 }
 
 void AddressesLocationWidget::storeContact(KContacts::Addressee &contact) const
@@ -60,20 +51,9 @@ void AddressesLocationWidget::storeContact(KContacts::Addressee &contact) const
     for (int i = 0; i < numberOfOldAddresses; ++i) {
         contact.removeAddress(oldAddresses.at(i));
     }
-
-    const KContacts::Address::List addressList = mAddressesLocationViewer->addresses();
-    // insert the new ones
-    const int numberOfAddress(addressList.count());
-    for (int i = 0; i < numberOfAddress; ++i) {
-        const KContacts::Address address(addressList.at(i));
-        if (!address.isEmpty()) {
-            contact.insertAddress(address);
-        }
-    }
 }
 
 void AddressesLocationWidget::setReadOnly(bool readOnly)
 {
-    mAddressesLocationViewer->setReadOnly(readOnly);
     mAddressLocationWidget->setReadOnly(readOnly);
 }
diff --git a/src/editor/addresseditor/addresseslocationwidget.h b/src/editor/addresseditor/addresseslocationwidget.h
index 61697482f..9614f5a5d 100644
--- a/src/editor/addresseditor/addresseslocationwidget.h
+++ b/src/editor/addresseditor/addresseslocationwidget.h
@@ -29,7 +29,6 @@
 namespace Akonadi
 {
 class AddressLocationWidget;
-class AddressesLocationEngineViewer;
 class AddressesLocationWidget : public QSplitter
 {
     Q_OBJECT
@@ -42,7 +41,6 @@ public:
 
     void setReadOnly(bool readOnly);
 private:
-    AddressesLocationEngineViewer *mAddressesLocationViewer;
     AddressLocationWidget *mAddressLocationWidget;
 };
 }
diff --git a/src/editor/addresseditor/autotests/CMakeLists.txt b/src/editor/addresseditor/autotests/CMakeLists.txt
index 0a224925b..a17962210 100644
--- a/src/editor/addresseditor/autotests/CMakeLists.txt
+++ b/src/editor/addresseditor/autotests/CMakeLists.txt
@@ -1,11 +1,5 @@
 include(ECMMarkAsTest)
 
-set(akonadicontact_addresslocation_web_editor_SRCS
-    ../webengine/addresseslocationengineviewer.cpp
-    ../webengine/addresseslocationenginepage.cpp
-    )
-set(akonadicontact_webengine_LIB Qt5::WebEngine Qt5::WebEngineWidgets)
-
 ecm_qt_declare_logging_category(akonadicontact_addresslocation_web_editor_SRCS HEADER akonadi_contact_debug.h IDENTIFIER AKONADICONTACT_LOG CATEGORY_NAME org.kde.pim.akonadi_contact)
 
 set(addresseslocationviewer_SRCS addresseslocationviewertest.cpp ${akonadicontact_addresslocation_web_editor_SRCS} ../addresseslocationgrantleeformater.cpp
@@ -13,7 +7,7 @@ set(addresseslocationviewer_SRCS addresseslocationviewertest.cpp ${akonadicontac
 add_executable(addresseslocationviewer ${addresseslocationviewer_SRCS})
 add_test(addresseslocationviewer addresseslocationviewer)
 ecm_mark_as_test(addresseslocationviewer)
-target_link_libraries(addresseslocationviewer Qt5::Test  Qt5::Widgets KF5::AkonadiContact KF5::Contacts KF5::I18n ${akonadicontact_webengine_LIB} Grantlee5::Templates
+target_link_libraries(addresseslocationviewer Qt5::Test  Qt5::Widgets KF5::AkonadiContact KF5::Contacts KF5::I18n Grantlee5::Templates
     KF5::IconThemes KF5::WidgetsAddons)
 
 set(addresslocationwidget_SRCS addresslocationwidgettest.cpp ../addresslocationwidget.cpp ../selectaddresstypecombobox.cpp ../addresstypedialog.cpp)
@@ -27,5 +21,5 @@ set(addresseslocationwidget_SRCS addresseslocationwidgettest.cpp ../addressesloc
 add_executable(addresseslocationwidget ${addresseslocationwidget_SRCS})
 add_test(addresseslocationwidget addresseslocationwidget)
 ecm_mark_as_test(addresseslocationwidget)
-target_link_libraries(addresseslocationwidget Qt5::Test  Qt5::Widgets KF5::AkonadiContact KF5::Contacts KF5::I18n KF5::Completion ${akonadicontact_webengine_LIB}
+target_link_libraries(addresseslocationwidget Qt5::Test  Qt5::Widgets KF5::AkonadiContact KF5::Contacts KF5::I18n KF5::Completion
     Grantlee5::Templates KF5::IconThemes KF5::WidgetsAddons)
diff --git a/src/editor/addresseditor/autotests/addresseslocationviewertest.cpp b/src/editor/addresseditor/autotests/addresseslocationviewertest.cpp
index e10b85d2d..4f509d841 100644
--- a/src/editor/addresseditor/autotests/addresseslocationviewertest.cpp
+++ b/src/editor/addresseditor/autotests/addresseslocationviewertest.cpp
@@ -22,7 +22,6 @@
 
 #include "addresseslocationviewertest.h"
 #include "config-akonadi-contact.h"
-#include "../webengine/addresseslocationengineviewer.h"
 #include <QTest>
 using namespace Akonadi;
 AddressesLocationViewerTest::AddressesLocationViewerTest(QObject *parent)
diff --git a/src/editor/addresseditor/autotests/addresseslocationwidgettest.cpp b/src/editor/addresseditor/autotests/addresseslocationwidgettest.cpp
index 1bd29a7a3..4339db282 100644
--- a/src/editor/addresseditor/autotests/addresseslocationwidgettest.cpp
+++ b/src/editor/addresseditor/autotests/addresseslocationwidgettest.cpp
@@ -22,7 +22,6 @@
 
 #include "addresseslocationwidgettest.h"
 #include "config-akonadi-contact.h"
-#include "../webengine/addresseslocationengineviewer.h"
 
 #include "../addresseslocationwidget.h"
 #include <QTest>
diff --git a/src/editor/addresseditor/tests/CMakeLists.txt b/src/editor/addresseditor/tests/CMakeLists.txt
index 3cdee489e..7b7531e53 100644
--- a/src/editor/addresseditor/tests/CMakeLists.txt
+++ b/src/editor/addresseditor/tests/CMakeLists.txt
@@ -1,9 +1,3 @@
-set(akonadicontact_addresslocation_web_editor_SRCS
-    ../webengine/addresseslocationengineviewer.cpp
-    ../webengine/addresseslocationenginepage.cpp
-    )
-set(akonadicontact_webengine_LIB Qt5::WebEngine Qt5::WebEngineWidgets)
-
 ecm_qt_declare_logging_category(akonadicontact_addresslocation_web_editor_SRCS HEADER akonadi_contact_debug.h IDENTIFIER AKONADICONTACT_LOG CATEGORY_NAME org.kde.pim.akonadi_contact)
 
 set(addresseditor_SRCS
@@ -29,6 +23,5 @@ target_link_libraries(addresseditortest
     Grantlee5::Templates
     KF5::IconThemes
     KF5::WidgetsAddons
-    ${akonadicontact_webengine_LIB}
     )