1 |
commit: 9cda37b51f896dc527130188156acf4cde829e64 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 3 15:05:01 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 3 15:05:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=9cda37b5 |
7 |
|
8 |
kde-apps: Cleanup unused patches |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../akregator-21.12.3-speech-optional-1.patch | 144 ---------- |
14 |
.../akregator-21.12.3-speech-optional-2.patch | 25 -- |
15 |
.../files/kalarm-21.12.3-speech-optional.patch | 124 --------- |
16 |
.../files/kmail-21.12.3-speech-optional.patch | 69 ----- |
17 |
.../kpimtextedit-21.12.3-speech-optional-1.patch | 289 --------------------- |
18 |
.../kpimtextedit-21.12.3-speech-optional-2.patch | 25 -- |
19 |
.../kpimtextedit-21.12.3-speech-optional-3.patch | 100 ------- |
20 |
.../files/krfb-21.12.2-optional-pipewire.patch | 28 -- |
21 |
.../files/libksieve-21.12.3-speech-optional.patch | 180 ------------- |
22 |
.../messagelib-21.12.3-speech-optional-1.patch | 131 ---------- |
23 |
.../messagelib-21.12.3-speech-optional-2.patch | 95 ------- |
24 |
.../messagelib-21.12.3-speech-optional-3.patch | 56 ---- |
25 |
.../files/okular-21.08.1-optional-options.patch | 109 -------- |
26 |
.../files/umbrello-20.08.3-no-qtwebkit.patch | 111 -------- |
27 |
14 files changed, 1486 deletions(-) |
28 |
|
29 |
diff --git a/kde-apps/akregator/files/akregator-21.12.3-speech-optional-1.patch b/kde-apps/akregator/files/akregator-21.12.3-speech-optional-1.patch |
30 |
deleted file mode 100644 |
31 |
index f8ebe576b8..0000000000 |
32 |
--- a/kde-apps/akregator/files/akregator-21.12.3-speech-optional-1.patch |
33 |
+++ /dev/null |
34 |
@@ -1,144 +0,0 @@ |
35 |
-From cb0ddc563482ccbad9331d944c711cd180f38400 Mon Sep 17 00:00:00 2001 |
36 |
-From: Laurent Montel <montel@×××.org> |
37 |
-Date: Thu, 24 Feb 2022 17:30:26 +0100 |
38 |
-Subject: [PATCH] Make it compile without texttospeach |
39 |
- |
40 |
---- |
41 |
- .../webengine/articleviewerwebengine.cpp | 5 +++++ |
42 |
- .../webengine/articleviewerwebenginewidgetng.cpp | 12 ++++++++---- |
43 |
- .../webengine/articleviewerwebenginewidgetng.h | 4 ++++ |
44 |
- src/frame/webengine/akrwebengineviewer.cpp | 5 +++++ |
45 |
- 4 files changed, 22 insertions(+), 4 deletions(-) |
46 |
- |
47 |
-diff --git a/src/articleviewer-ng/webengine/articleviewerwebengine.cpp b/src/articleviewer-ng/webengine/articleviewerwebengine.cpp |
48 |
-index 787efefc..e308df8a 100644 |
49 |
---- a/src/articleviewer-ng/webengine/articleviewerwebengine.cpp |
50 |
-+++ b/src/articleviewer-ng/webengine/articleviewerwebengine.cpp |
51 |
-@@ -12,7 +12,10 @@ |
52 |
- #include "articleviewerwebenginepage.h" |
53 |
- #include "urlhandler/webengine/urlhandlerwebengine.h" |
54 |
- #include "webengine/urlhandlerwebenginemanager.h" |
55 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
56 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
57 |
- #include <KPIMTextEdit/TextToSpeech> |
58 |
-+#endif |
59 |
- #include <WebEngineViewer/InterceptorManager> |
60 |
- #include <WebEngineViewer/WebEngineAccessKey> |
61 |
- #include <WebEngineViewer/WebEngineManageScript> |
62 |
-@@ -305,10 +308,12 @@ void ArticleViewerWebEngine::slotWebHitFinished(const WebEngineViewer::WebHitTes |
63 |
- popup.addAction(ActionManager::getInstance()->action(QStringLiteral("tab_unmute"))); |
64 |
- popup.addSeparator(); |
65 |
- popup.addAction(ActionManager::getInstance()->action(QStringLiteral("find_in_messages"))); |
66 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
67 |
- if (KPIMTextEdit::TextToSpeech::self()->isReady()) { |
68 |
- popup.addSeparator(); |
69 |
- popup.addAction(ActionManager::getInstance()->action(QStringLiteral("speak_text"))); |
70 |
- } |
71 |
-+#endif |
72 |
- popup.exec(mapToGlobal(result.pos())); |
73 |
- } |
74 |
- |
75 |
-diff --git a/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp b/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp |
76 |
-index e806b343..3784894e 100644 |
77 |
---- a/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp |
78 |
-+++ b/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp |
79 |
-@@ -12,9 +12,9 @@ |
80 |
- #include <KLocalizedString> |
81 |
- #include <QVBoxLayout> |
82 |
- #include <viewerplugintoolmanager.h> |
83 |
-- |
84 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
85 |
- #include <KPIMTextEdit/kpimtextedit/texttospeechwidget.h> |
86 |
-- |
87 |
-+#endif |
88 |
- #include <KPIMTextEdit/SlideContainer> |
89 |
- |
90 |
- #include <WebEngineViewer/FindBarWebEngineView> |
91 |
-@@ -45,7 +45,9 @@ template<typename Arg, typename R, typename C> InvokeWrapper<Arg, R, C> invoke(R |
92 |
- ArticleViewerWebEngineWidgetNg::ArticleViewerWebEngineWidgetNg(ArticleViewerWebEngine *customViewer, KActionCollection *ac, QWidget *parent) |
93 |
- : QWidget(parent) |
94 |
- , mArticleViewerNg(customViewer) |
95 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
96 |
- , mTextToSpeechWidget(new KPIMTextEdit::TextToSpeechWidget(this)) |
97 |
-+#endif |
98 |
- , mSliderContainer(new KPIMTextEdit::SlideContainer(this)) |
99 |
- , mTrackingWarningWidget(new WebEngineViewer::TrackingWarningWidget(this)) |
100 |
- |
101 |
-@@ -62,10 +64,10 @@ void ArticleViewerWebEngineWidgetNg::initializeLayout(KActionCollection *ac) |
102 |
- { |
103 |
- auto layout = new QVBoxLayout(this); |
104 |
- layout->setContentsMargins({}); |
105 |
-- |
106 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
107 |
- mTextToSpeechWidget->setObjectName(QStringLiteral("texttospeechwidget")); |
108 |
- layout->addWidget(mTextToSpeechWidget); |
109 |
-- |
110 |
-+#endif |
111 |
- mTrackingWarningWidget->setObjectName(QStringLiteral("mTrackingWarningWidget")); |
112 |
- layout->addWidget(mTrackingWarningWidget); |
113 |
- |
114 |
-@@ -107,7 +109,9 @@ void ArticleViewerWebEngineWidgetNg::slotFind() |
115 |
- void ArticleViewerWebEngineWidgetNg::slotSpeakText() |
116 |
- { |
117 |
- const QString text = mArticleViewerNg->selectedText(); |
118 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
119 |
- mTextToSpeechWidget->say(text); |
120 |
-+#endif |
121 |
- } |
122 |
- |
123 |
- void ArticleViewerWebEngineWidgetNg::saveCurrentPosition() |
124 |
-diff --git a/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.h b/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.h |
125 |
-index a9ff9eea..f4834d2e 100644 |
126 |
---- a/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.h |
127 |
-+++ b/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.h |
128 |
-@@ -8,6 +8,8 @@ |
129 |
- |
130 |
- #include "akregator_export.h" |
131 |
- #include "articleviewerwebengine.h" |
132 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
133 |
-+ |
134 |
- #include <QWidget> |
135 |
- class QPrinter; |
136 |
- class KActionCollection; |
137 |
-@@ -55,7 +57,9 @@ private: |
138 |
- void printRequested(QWebEnginePage *page); |
139 |
- WebEngineViewer::FindBarWebEngineView *mFindBarWebView = nullptr; |
140 |
- ArticleViewerWebEngine *mArticleViewerNg = nullptr; |
141 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
142 |
- KPIMTextEdit::TextToSpeechWidget *const mTextToSpeechWidget; |
143 |
-+#endif |
144 |
- KPIMTextEdit::SlideContainer *const mSliderContainer; |
145 |
- WebEngineViewer::TrackingWarningWidget *const mTrackingWarningWidget; |
146 |
- QPrinter *mCurrentPrinter = nullptr; |
147 |
-diff --git a/src/frame/webengine/akrwebengineviewer.cpp b/src/frame/webengine/akrwebengineviewer.cpp |
148 |
-index 53b5e5f8..d49e0a8c 100644 |
149 |
---- a/src/frame/webengine/akrwebengineviewer.cpp |
150 |
-+++ b/src/frame/webengine/akrwebengineviewer.cpp |
151 |
-@@ -15,7 +15,10 @@ |
152 |
- #include <KActionCollection> |
153 |
- #include <KActionMenu> |
154 |
- #include <KIO/KUriFilterSearchProviderActions> |
155 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
156 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
157 |
- #include <KPIMTextEdit/TextToSpeech> |
158 |
-+#endif |
159 |
- #include <QContextMenuEvent> |
160 |
- #include <QMenu> |
161 |
- #include <QWebEngineHistory> |
162 |
-@@ -138,11 +141,13 @@ void AkrWebEngineViewer::slotWebHitFinished(const WebEngineViewer::WebHitTestRes |
163 |
- popup.addActions(interceptorUrlActions); |
164 |
- } |
165 |
- popup.addSeparator(); |
166 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
167 |
- popup.addAction(ActionManager::getInstance()->action(QStringLiteral("find_in_messages"))); |
168 |
- if (KPIMTextEdit::TextToSpeech::self()->isReady()) { |
169 |
- popup.addSeparator(); |
170 |
- popup.addAction(ActionManager::getInstance()->action(QStringLiteral("speak_text"))); |
171 |
- } |
172 |
-+#endif |
173 |
- popup.exec(mapToGlobal(result.pos())); |
174 |
- } |
175 |
- |
176 |
--- |
177 |
-GitLab |
178 |
- |
179 |
|
180 |
diff --git a/kde-apps/akregator/files/akregator-21.12.3-speech-optional-2.patch b/kde-apps/akregator/files/akregator-21.12.3-speech-optional-2.patch |
181 |
deleted file mode 100644 |
182 |
index 0f3dfe0594..0000000000 |
183 |
--- a/kde-apps/akregator/files/akregator-21.12.3-speech-optional-2.patch |
184 |
+++ /dev/null |
185 |
@@ -1,25 +0,0 @@ |
186 |
-From 49aa0675d5d84e3286e9879ceb2333cb83f1d824 Mon Sep 17 00:00:00 2001 |
187 |
-From: Laurent Montel <montel@×××.org> |
188 |
-Date: Thu, 24 Feb 2022 17:33:56 +0100 |
189 |
-Subject: [PATCH] Fix include |
190 |
- |
191 |
---- |
192 |
- .../webengine/articleviewerwebenginewidgetng.cpp | 2 +- |
193 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
194 |
- |
195 |
-diff --git a/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp b/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp |
196 |
-index 3784894e..20e33120 100644 |
197 |
---- a/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp |
198 |
-+++ b/src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp |
199 |
-@@ -13,7 +13,7 @@ |
200 |
- #include <MessageViewer/ViewerPluginToolManager> |
201 |
- #include <QVBoxLayout> |
202 |
- #if KPIMTEXTEDIT_TEXT_TO_SPEECH |
203 |
--#include <KPIMTextEdit/kpimtextedit/texttospeechwidget.h> |
204 |
-+#include <kpimtextedit/texttospeechwidget.h> |
205 |
- #endif |
206 |
- #include <KPIMTextEdit/SlideContainer> |
207 |
- |
208 |
--- |
209 |
-GitLab |
210 |
- |
211 |
|
212 |
diff --git a/kde-apps/kalarm/files/kalarm-21.12.3-speech-optional.patch b/kde-apps/kalarm/files/kalarm-21.12.3-speech-optional.patch |
213 |
deleted file mode 100644 |
214 |
index ce4f45c376..0000000000 |
215 |
--- a/kde-apps/kalarm/files/kalarm-21.12.3-speech-optional.patch |
216 |
+++ /dev/null |
217 |
@@ -1,124 +0,0 @@ |
218 |
-From 53a299c513c447afc57c7f520ac35aea2dffc277 Mon Sep 17 00:00:00 2001 |
219 |
-From: Laurent Montel <montel@×××.org> |
220 |
-Date: Fri, 25 Feb 2022 07:29:19 +0100 |
221 |
-Subject: [PATCH] Make build without texttospeech support |
222 |
- |
223 |
---- |
224 |
- src/commandoptions.cpp | 7 +++++++ |
225 |
- src/messagedisplayhelper.cpp | 5 +++++ |
226 |
- src/prefdlg.cpp | 5 +++++ |
227 |
- src/soundpicker.cpp | 5 +++++ |
228 |
- 4 files changed, 22 insertions(+) |
229 |
- |
230 |
-diff --git a/src/commandoptions.cpp b/src/commandoptions.cpp |
231 |
-index a564fbb3..a6bbded1 100644 |
232 |
---- a/src/commandoptions.cpp |
233 |
-+++ b/src/commandoptions.cpp |
234 |
-@@ -14,7 +14,10 @@ |
235 |
- #include "kalarm_debug.h" |
236 |
- |
237 |
- #include <KAlarmCal/Identities> |
238 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
239 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
240 |
- #include <KPIMTextEdit/TextToSpeech> |
241 |
-+#endif |
242 |
- #include <KLocalizedString> |
243 |
- |
244 |
- #include <QCommandLineParser> |
245 |
-@@ -570,7 +573,11 @@ void CommandOptions::process() |
246 |
- { |
247 |
- if (mParser->isSet(*mOptions.at(BEEP))) |
248 |
- setErrorIncompatible(BEEP, SPEAK); |
249 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
250 |
- else if (!KPIMTextEdit::TextToSpeech::self()->isReady()) |
251 |
-+#else |
252 |
-+ else |
253 |
-+#endif |
254 |
- setError(xi18nc("@info:shell", "<icode>%1</icode> requires KAlarm to be compiled with QTextToSpeech support", optionName(SPEAK))); |
255 |
- } |
256 |
- const bool onceOnly = mParser->isSet(*mOptions.at(REMINDER_ONCE)); |
257 |
-diff --git a/src/messagedisplayhelper.cpp b/src/messagedisplayhelper.cpp |
258 |
-index 0f6b9680..6e80e8ca 100644 |
259 |
---- a/src/messagedisplayhelper.cpp |
260 |
-+++ b/src/messagedisplayhelper.cpp |
261 |
-@@ -21,7 +21,10 @@ |
262 |
- #include "lib/synchtimer.h" |
263 |
- #include "kalarm_debug.h" |
264 |
- |
265 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
266 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
267 |
- #include <KPIMTextEdit/TextToSpeech> |
268 |
-+#endif |
269 |
- |
270 |
- #include <KLocalizedString> |
271 |
- #include <KConfig> |
272 |
-@@ -831,6 +834,7 @@ void MessageDisplayHelper::playAudio() |
273 |
- */ |
274 |
- void MessageDisplayHelper::slotSpeak() |
275 |
- { |
276 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
277 |
- KPIMTextEdit::TextToSpeech* tts = KPIMTextEdit::TextToSpeech::self(); |
278 |
- if (!tts->isReady()) |
279 |
- { |
280 |
-@@ -840,6 +844,7 @@ void MessageDisplayHelper::slotSpeak() |
281 |
- } |
282 |
- |
283 |
- tts->say(mMessage); |
284 |
-+#endif |
285 |
- } |
286 |
- |
287 |
- /****************************************************************************** |
288 |
-diff --git a/src/prefdlg.cpp b/src/prefdlg.cpp |
289 |
-index ea32116e..d3cf48ae 100644 |
290 |
---- a/src/prefdlg.cpp |
291 |
-+++ b/src/prefdlg.cpp |
292 |
-@@ -48,7 +48,10 @@ |
293 |
- #include <KHolidays/HolidayRegion> |
294 |
- using namespace KHolidays; |
295 |
- |
296 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
297 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
298 |
- #include <KPIMTextEdit/TextToSpeech> |
299 |
-+#endif |
300 |
- |
301 |
- #include <KLocalizedString> |
302 |
- #include <KShell> |
303 |
-@@ -1355,8 +1358,10 @@ EditPrefTab::EditPrefTab(StackedScrollGroup* scrollGroup) |
304 |
- mSound->addItem(SoundPicker::i18n_combo_None()); // index 0 |
305 |
- mSound->addItem(SoundPicker::i18n_combo_Beep()); // index 1 |
306 |
- mSound->addItem(SoundPicker::i18n_combo_File()); // index 2 |
307 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
308 |
- if (KPIMTextEdit::TextToSpeech::self()->isReady()) |
309 |
- mSound->addItem(SoundPicker::i18n_combo_Speak()); // index 3 |
310 |
-+#endif |
311 |
- mSound->setMinimumSize(mSound->sizeHint()); |
312 |
- mSound->setWhatsThis(defsetting.subs(SoundPicker::i18n_label_Sound()).toString()); |
313 |
- hlayout->addWidget(mSound); |
314 |
-diff --git a/src/soundpicker.cpp b/src/soundpicker.cpp |
315 |
-index 426baf96..f85071ea 100644 |
316 |
---- a/src/soundpicker.cpp |
317 |
-+++ b/src/soundpicker.cpp |
318 |
-@@ -16,7 +16,10 @@ |
319 |
- #include "lib/pushbutton.h" |
320 |
- #include "kalarm_debug.h" |
321 |
- |
322 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
323 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
324 |
- #include <KPIMTextEdit/TextToSpeech> |
325 |
-+#endif |
326 |
- |
327 |
- #include <KLocalizedString> |
328 |
- #include <phonon/backendcapabilities.h> |
329 |
-@@ -130,7 +133,9 @@ void SoundPicker::showFile(bool show) |
330 |
- */ |
331 |
- void SoundPicker::showSpeak(bool show) |
332 |
- { |
333 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
334 |
- if (!KPIMTextEdit::TextToSpeech::self()->isReady()) |
335 |
-+#endif |
336 |
- show = false; // speech capability is not installed or configured |
337 |
- if (show != mSpeakShowing) |
338 |
- { |
339 |
--- |
340 |
-GitLab |
341 |
- |
342 |
|
343 |
diff --git a/kde-apps/kmail/files/kmail-21.12.3-speech-optional.patch b/kde-apps/kmail/files/kmail-21.12.3-speech-optional.patch |
344 |
deleted file mode 100644 |
345 |
index e0c7a4518c..0000000000 |
346 |
--- a/kde-apps/kmail/files/kmail-21.12.3-speech-optional.patch |
347 |
+++ /dev/null |
348 |
@@ -1,69 +0,0 @@ |
349 |
-From 817515f9278f97b3fa32bb434cb2bd26816a7838 Mon Sep 17 00:00:00 2001 |
350 |
-From: Laurent Montel <montel@×××.org> |
351 |
-Date: Thu, 24 Feb 2022 17:28:35 +0100 |
352 |
-Subject: [PATCH] Make it compile without texttospeach |
353 |
- |
354 |
---- |
355 |
- src/kmmainwidget.cpp | 5 +++++ |
356 |
- src/kmreadermainwin.cpp | 5 +++++ |
357 |
- 2 files changed, 10 insertions(+) |
358 |
- |
359 |
-diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp |
360 |
-index d6d0d40ac..37bbe72a2 100644 |
361 |
---- a/src/kmmainwidget.cpp |
362 |
-+++ b/src/kmmainwidget.cpp |
363 |
-@@ -36,7 +36,10 @@ |
364 |
- #include "widgets/collectionpane.h" |
365 |
- #include "widgets/kactionmenuaccount.h" |
366 |
- #include "widgets/kactionmenutransport.h" |
367 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
368 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
369 |
- #include <KPIMTextEdit/TextToSpeech> |
370 |
-+#endif |
371 |
- #include <KSieveUi/SieveDebugDialog> |
372 |
- #include <MailCommon/FolderTreeView> |
373 |
- #include <MailCommon/MailKernel> |
374 |
-@@ -2707,10 +2710,12 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg, |
375 |
- mMsgActions->addWebShortcutsMenu(&menu, selectedText); |
376 |
- menu.addSeparator(); |
377 |
- menu.addActions(mMsgView->viewerPluginActionList(MessageViewer::ViewerPluginInterface::NeedSelection)); |
378 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
379 |
- if (KPIMTextEdit::TextToSpeech::self()->isReady()) { |
380 |
- menu.addSeparator(); |
381 |
- menu.addAction(mMsgView->speakTextAction()); |
382 |
- } |
383 |
-+#endif |
384 |
- menu.addSeparator(); |
385 |
- menu.addAction(mMsgView->shareTextAction()); |
386 |
- } else if (!urlMenuAdded) { |
387 |
-diff --git a/src/kmreadermainwin.cpp b/src/kmreadermainwin.cpp |
388 |
-index 4967459cc..85c488f97 100644 |
389 |
---- a/src/kmreadermainwin.cpp |
390 |
-+++ b/src/kmreadermainwin.cpp |
391 |
-@@ -54,7 +54,10 @@ |
392 |
- #include <Akonadi/ItemCreateJob> |
393 |
- #include <Akonadi/ItemMoveJob> |
394 |
- #include <Akonadi/KMime/MessageFlags> |
395 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
396 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
397 |
- #include <KPIMTextEdit/TextToSpeech> |
398 |
-+#endif |
399 |
- #include <MailCommon/MailUtil> |
400 |
- #include <MessageViewer/DKIMViewerMenu> |
401 |
- #include <MessageViewer/DKIMWidgetInfo> |
402 |
-@@ -736,10 +739,12 @@ void KMReaderMainWin::showMessagePopup(const Akonadi::Item &msg, |
403 |
- mMsgActions->addWebShortcutsMenu(menu, selectedText); |
404 |
- menu->addSeparator(); |
405 |
- menu->addActions(mReaderWin->viewerPluginActionList(MessageViewer::ViewerPluginInterface::NeedSelection)); |
406 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
407 |
- if (KPIMTextEdit::TextToSpeech::self()->isReady()) { |
408 |
- menu->addSeparator(); |
409 |
- menu->addAction(mReaderWin->speakTextAction()); |
410 |
- } |
411 |
-+#endif |
412 |
- menu->addSeparator(); |
413 |
- menu->addAction(mReaderWin->shareTextAction()); |
414 |
- } else if (!urlMenuAdded) { |
415 |
--- |
416 |
-GitLab |
417 |
- |
418 |
|
419 |
diff --git a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-1.patch b/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-1.patch |
420 |
deleted file mode 100644 |
421 |
index d7fa7474a4..0000000000 |
422 |
--- a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-1.patch |
423 |
+++ /dev/null |
424 |
@@ -1,289 +0,0 @@ |
425 |
-From 53f187315f51e7d53a03c4ed464812b388465c10 Mon Sep 17 00:00:00 2001 |
426 |
-From: Laurent Montel <montel@×××.org> |
427 |
-Date: Mon, 27 Dec 2021 07:53:16 +0100 |
428 |
-Subject: [PATCH] Add support for building without texttospeech as for the |
429 |
- moment we don't |
430 |
- |
431 |
-have it in qt6 |
432 |
---- |
433 |
- CMakeLists.txt | 10 +++++- |
434 |
- src/CMakeLists.txt | 34 ++++++++++++++----- |
435 |
- .../plaintexteditor/plaintexteditor.cpp | 4 +++ |
436 |
- .../plaintexteditor/plaintexteditorwidget.cpp | 10 ++++-- |
437 |
- .../richtexteditor/richtexteditor.cpp | 5 ++- |
438 |
- .../richtexteditor/richtexteditorwidget.cpp | 9 ++++- |
439 |
- 6 files changed, 59 insertions(+), 13 deletions(-) |
440 |
- |
441 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
442 |
-index ae59804..d1a0181 100644 |
443 |
---- a/CMakeLists.txt |
444 |
-+++ b/CMakeLists.txt |
445 |
-@@ -76,7 +76,15 @@ add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f02) |
446 |
- add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055A00) |
447 |
- |
448 |
- |
449 |
--find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS TextToSpeech) |
450 |
-+find_package(Qt5TextToSpeech ${QT_REQUIRED_VERSION} CONFIG) |
451 |
-+set_package_properties(Qt5TextToSpeech PROPERTIES DESCRIPTION |
452 |
-+ "Add support for texttospeed" |
453 |
-+ TYPE OPTIONAL |
454 |
-+) |
455 |
-+if(TARGET Qt5::TextToSpeech) |
456 |
-+ set(HAVE_TEXT_TO_SPEECH_SUPPORT TRUE) |
457 |
-+ add_definitions(-DHAVE_TEXT_TO_SPEECH_SUPPORT) |
458 |
-+endif() |
459 |
- |
460 |
- if(BUILD_TESTING) |
461 |
- find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Test) |
462 |
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
463 |
-index 2720e0a..98e2854 100644 |
464 |
---- a/src/CMakeLists.txt |
465 |
-+++ b/src/CMakeLists.txt |
466 |
-@@ -53,7 +53,7 @@ target_sources(KF5PimTextEdit PRIVATE |
467 |
- composer-ng/richtextcomposeremailquotehighlighter.h |
468 |
- composer-ng/richtextcomposerwidget.h |
469 |
- ) |
470 |
-- |
471 |
-+if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
472 |
- target_sources(KF5PimTextEdit PRIVATE |
473 |
- texttospeech/texttospeech.cpp |
474 |
- texttospeech/texttospeechwidget.cpp |
475 |
-@@ -76,6 +76,7 @@ target_sources(KF5PimTextEdit PRIVATE |
476 |
- texttospeech/texttospeechlanguagecombobox.h |
477 |
- texttospeech/texttospeechactions.h |
478 |
- ) |
479 |
-+endif() |
480 |
- |
481 |
- target_sources(KF5PimTextEdit PRIVATE |
482 |
- grantleebuilder/plaintextmarkupbuilder.cpp |
483 |
-@@ -168,7 +169,12 @@ target_link_libraries(KF5PimTextEdit |
484 |
- KF5::SyntaxHighlighting |
485 |
- Qt::TextToSpeech |
486 |
- ) |
487 |
-- |
488 |
-+if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
489 |
-+ target_link_libraries(KF5PimTextEdit |
490 |
-+ PRIVATE |
491 |
-+ Qt::TextToSpeech |
492 |
-+ ) |
493 |
-+endif() |
494 |
- set_target_properties(KF5PimTextEdit PROPERTIES |
495 |
- VERSION ${KPIMTEXTEDIT_VERSION} |
496 |
- SOVERSION ${KPIMTEXTEDIT_SOVERSION} |
497 |
-@@ -240,7 +246,7 @@ ecm_generate_headers(KPimTextEdit_CamelCasetexteditor_commonwidget_HEADERS |
498 |
- ) |
499 |
- |
500 |
- |
501 |
-- |
502 |
-+if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
503 |
- ecm_generate_headers(KPimTextEdit_CamelCasetexttospeechs_HEADERS |
504 |
- HEADER_NAMES |
505 |
- TextToSpeech |
506 |
-@@ -252,7 +258,7 @@ ecm_generate_headers(KPimTextEdit_CamelCasetexttospeechs_HEADERS |
507 |
- PREFIX KPIMTextEdit |
508 |
- RELATIVE texttospeech |
509 |
- ) |
510 |
-- |
511 |
-+endif() |
512 |
- ecm_generate_headers(KPimTextEdit_Camelcasecomposerng_HEADERS |
513 |
- HEADER_NAMES |
514 |
- RichTextComposer |
515 |
-@@ -269,11 +275,22 @@ ecm_generate_headers(KPimTextEdit_Camelcasecomposerng_HEADERS |
516 |
- |
517 |
- |
518 |
- ########### install files ############### |
519 |
-+if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
520 |
-+ install(FILES |
521 |
-+ ${KPimTextEdit_texttospeechs_HEADERS} |
522 |
-+ DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KPIMTextEdit/kpimtextedit |
523 |
-+ COMPONENT Devel |
524 |
-+ ) |
525 |
-+ install(FILES |
526 |
-+ ${KPimTextEdit_CamelCasetexttospeechs_HEADERS} |
527 |
-+ DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KPIMTextEdit/KPIMTextEdit/ |
528 |
-+ COMPONENT Devel |
529 |
-+ ) |
530 |
-+endif() |
531 |
- |
532 |
- install(FILES |
533 |
- ${CMAKE_CURRENT_BINARY_DIR}/kpimtextedit_export.h |
534 |
- ${kpimtextedit_HEADERS} |
535 |
-- ${KPimTextEdit_texttospeechs_HEADERS} |
536 |
- ${KPimTextEdit_richtexteditor_HEADERS} |
537 |
- ${KPimTextEdit_texteditor_commonwidget_HEADERS} |
538 |
- ${KPimTextEdit_plaintexteditor_HEADERS} |
539 |
-@@ -288,7 +305,6 @@ install(FILES |
540 |
- ${KPimTextEdit_CamelCase_HEADERS} |
541 |
- ${KPimTextEdit_CamelCasetextrichtexteditor_HEADERS} |
542 |
- ${KPimTextEdit_CamelCaseplaintexteditor_HEADERS} |
543 |
-- ${KPimTextEdit_CamelCasetexttospeechs_HEADERS} |
544 |
- ${KPimTextEdit_CamelCasetexteditor_commonwidget_HEADERS} |
545 |
- ${KPimTextEdit_Camelcasecomposerng_HEADERS} |
546 |
- ${KPimTextEdit_CamelCaseemoticon_HEADERS} |
547 |
-@@ -306,8 +322,10 @@ if (BUILD_TESTING) |
548 |
- add_subdirectory(texteditor/commonwidget/autotests) |
549 |
- add_subdirectory(texteditor/plaintexteditor/tests) |
550 |
- add_subdirectory(texteditor/richtexteditor/tests) |
551 |
-- add_subdirectory(texttospeech/autotests) |
552 |
-- add_subdirectory(texttospeech/tests) |
553 |
-+ if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
554 |
-+ add_subdirectory(texttospeech/autotests) |
555 |
-+ add_subdirectory(texttospeech/tests) |
556 |
-+ endif() |
557 |
- add_subdirectory(composer-ng/autotests) |
558 |
- add_subdirectory(composer-ng/tests) |
559 |
- add_subdirectory(grantleebuilder/autotests) |
560 |
-diff --git a/src/texteditor/plaintexteditor/plaintexteditor.cpp b/src/texteditor/plaintexteditor/plaintexteditor.cpp |
561 |
-index cfa0741..4559568 100644 |
562 |
---- a/src/texteditor/plaintexteditor/plaintexteditor.cpp |
563 |
-+++ b/src/texteditor/plaintexteditor/plaintexteditor.cpp |
564 |
-@@ -18,7 +18,9 @@ |
565 |
- #include <QActionGroup> |
566 |
- #include <QIcon> |
567 |
- |
568 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
569 |
- #include "texttospeech/texttospeech.h" |
570 |
-+#endif |
571 |
- #include <Sonnet/Dialog> |
572 |
- #include <sonnet/backgroundchecker.h> |
573 |
- |
574 |
-@@ -181,6 +183,7 @@ void PlainTextEditor::contextMenuEvent(QContextMenuEvent *event) |
575 |
- } |
576 |
- } |
577 |
- if (d->supportFeatures & TextToSpeech) { |
578 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
579 |
- if (KPIMTextEdit::TextToSpeech::self()->isReady()) { |
580 |
- if (!emptyDocument) { |
581 |
- QAction *speakAction = popup->addAction(i18n("Speak Text")); |
582 |
-@@ -188,6 +191,7 @@ void PlainTextEditor::contextMenuEvent(QContextMenuEvent *event) |
583 |
- connect(speakAction, &QAction::triggered, this, &PlainTextEditor::slotSpeakText); |
584 |
- } |
585 |
- } |
586 |
-+#endif |
587 |
- } |
588 |
- if (webShortcutSupport() && textCursor().hasSelection()) { |
589 |
- popup->addSeparator(); |
590 |
-diff --git a/src/texteditor/plaintexteditor/plaintexteditorwidget.cpp b/src/texteditor/plaintexteditor/plaintexteditorwidget.cpp |
591 |
-index 3251ea3..77a9b45 100644 |
592 |
---- a/src/texteditor/plaintexteditor/plaintexteditorwidget.cpp |
593 |
-+++ b/src/texteditor/plaintexteditor/plaintexteditorwidget.cpp |
594 |
-@@ -8,8 +8,9 @@ |
595 |
- #include "plaintexteditfindbar.h" |
596 |
- #include "plaintexteditor.h" |
597 |
- #include "slidecontainer.h" |
598 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
599 |
- #include "texttospeech/texttospeechwidget.h" |
600 |
-- |
601 |
-+#endif |
602 |
- #include <QTextCursor> |
603 |
- #include <QVBoxLayout> |
604 |
- |
605 |
-@@ -21,7 +22,9 @@ public: |
606 |
- |
607 |
- KPIMTextEdit::PlainTextEditFindBar *mFindBar = nullptr; |
608 |
- PlainTextEditor *mEditor = nullptr; |
609 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
610 |
- KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget = nullptr; |
611 |
-+#endif |
612 |
- KPIMTextEdit::SlideContainer *mSliderContainer = nullptr; |
613 |
- }; |
614 |
- |
615 |
-@@ -75,16 +78,19 @@ void PlainTextEditorWidget::init(PlainTextEditor *customEditor) |
616 |
- { |
617 |
- auto lay = new QVBoxLayout(this); |
618 |
- lay->setContentsMargins({}); |
619 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
620 |
- d->mTextToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this); |
621 |
- lay->addWidget(d->mTextToSpeechWidget); |
622 |
-+#endif |
623 |
- if (customEditor) { |
624 |
- d->mEditor = customEditor; |
625 |
- } else { |
626 |
- d->mEditor = new PlainTextEditor; |
627 |
- } |
628 |
- lay->addWidget(d->mEditor); |
629 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
630 |
- connect(d->mEditor, &PlainTextEditor::say, d->mTextToSpeechWidget, &KPIMTextEdit::TextToSpeechWidget::say); |
631 |
-- |
632 |
-+#endif |
633 |
- d->mSliderContainer = new KPIMTextEdit::SlideContainer(this); |
634 |
- |
635 |
- d->mFindBar = new KPIMTextEdit::PlainTextEditFindBar(d->mEditor, this); |
636 |
-diff --git a/src/texteditor/richtexteditor/richtexteditor.cpp b/src/texteditor/richtexteditor/richtexteditor.cpp |
637 |
-index dfdf7c5..a004434 100644 |
638 |
---- a/src/texteditor/richtexteditor/richtexteditor.cpp |
639 |
-+++ b/src/texteditor/richtexteditor/richtexteditor.cpp |
640 |
-@@ -26,7 +26,9 @@ |
641 |
- #include <sonnet/backgroundchecker.h> |
642 |
- #include <sonnet/spellcheckdecorator.h> |
643 |
- #include <sonnet/speller.h> |
644 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
645 |
- #include <texttospeech/texttospeech.h> |
646 |
-+#endif |
647 |
- |
648 |
- #include <QApplication> |
649 |
- #include <QClipboard> |
650 |
-@@ -247,7 +249,7 @@ QMenu *RichTextEditor::mousePopupMenu(QPoint pos) |
651 |
- allowTabAction->setChecked(!tabChangesFocus()); |
652 |
- connect(allowTabAction, &QAction::triggered, this, &RichTextEditor::slotAllowTab); |
653 |
- } |
654 |
-- |
655 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
656 |
- if (KPIMTextEdit::TextToSpeech::self()->isReady()) { |
657 |
- if (!emptyDocument) { |
658 |
- QAction *speakAction = popup->addAction(i18n("Speak Text")); |
659 |
-@@ -255,6 +257,7 @@ QMenu *RichTextEditor::mousePopupMenu(QPoint pos) |
660 |
- connect(speakAction, &QAction::triggered, this, &RichTextEditor::slotSpeakText); |
661 |
- } |
662 |
- } |
663 |
-+#endif |
664 |
- if (webShortcutSupport() && textCursor().hasSelection()) { |
665 |
- popup->addSeparator(); |
666 |
- const QString selectedText = textCursor().selectedText(); |
667 |
-diff --git a/src/texteditor/richtexteditor/richtexteditorwidget.cpp b/src/texteditor/richtexteditor/richtexteditorwidget.cpp |
668 |
-index d0d8e14..d84cf3f 100644 |
669 |
---- a/src/texteditor/richtexteditor/richtexteditorwidget.cpp |
670 |
-+++ b/src/texteditor/richtexteditor/richtexteditorwidget.cpp |
671 |
-@@ -10,8 +10,9 @@ |
672 |
- |
673 |
- #include <QTextCursor> |
674 |
- #include <QVBoxLayout> |
675 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
676 |
- #include <texttospeech/texttospeechwidget.h> |
677 |
-- |
678 |
-+#endif |
679 |
- #include "slidecontainer.h" |
680 |
- |
681 |
- using namespace KPIMTextEdit; |
682 |
-@@ -23,7 +24,9 @@ public: |
683 |
- |
684 |
- KPIMTextEdit::RichTextEditFindBar *mFindBar = nullptr; |
685 |
- RichTextEditor *mEditor = nullptr; |
686 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
687 |
- KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget = nullptr; |
688 |
-+#endif |
689 |
- KPIMTextEdit::SlideContainer *mSliderContainer = nullptr; |
690 |
- }; |
691 |
- |
692 |
-@@ -97,14 +100,18 @@ void RichTextEditorWidget::init(RichTextEditor *customEditor) |
693 |
- { |
694 |
- auto lay = new QVBoxLayout(this); |
695 |
- lay->setContentsMargins({}); |
696 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
697 |
- d->mTextToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this); |
698 |
- lay->addWidget(d->mTextToSpeechWidget); |
699 |
-+#endif |
700 |
- if (customEditor) { |
701 |
- d->mEditor = customEditor; |
702 |
- } else { |
703 |
- d->mEditor = new RichTextEditor; |
704 |
- } |
705 |
-+#ifdef HAVE_TEXT_TO_SPEECH_SUPPORT |
706 |
- connect(d->mEditor, &RichTextEditor::say, d->mTextToSpeechWidget, &KPIMTextEdit::TextToSpeechWidget::say); |
707 |
-+#endif |
708 |
- lay->addWidget(d->mEditor); |
709 |
- |
710 |
- d->mSliderContainer = new KPIMTextEdit::SlideContainer(this); |
711 |
--- |
712 |
-GitLab |
713 |
- |
714 |
|
715 |
diff --git a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-2.patch b/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-2.patch |
716 |
deleted file mode 100644 |
717 |
index a078840af0..0000000000 |
718 |
--- a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-2.patch |
719 |
+++ /dev/null |
720 |
@@ -1,25 +0,0 @@ |
721 |
-From 3596c0a90f590c409654a9aec2b087809cff0a79 Mon Sep 17 00:00:00 2001 |
722 |
-From: David Faure <faure@×××.org> |
723 |
-Date: Tue, 28 Dec 2021 12:26:25 +0100 |
724 |
-Subject: [PATCH] Fix build without TextToSpeech available |
725 |
- |
726 |
-(the linking happens again further down, inside the if) |
727 |
---- |
728 |
- src/CMakeLists.txt | 1 - |
729 |
- 1 file changed, 1 deletion(-) |
730 |
- |
731 |
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
732 |
-index 98e2854..a08978e 100644 |
733 |
---- a/src/CMakeLists.txt |
734 |
-+++ b/src/CMakeLists.txt |
735 |
-@@ -167,7 +167,6 @@ target_link_libraries(KF5PimTextEdit |
736 |
- KF5::XmlGui |
737 |
- KF5::I18n |
738 |
- KF5::SyntaxHighlighting |
739 |
-- Qt::TextToSpeech |
740 |
- ) |
741 |
- if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
742 |
- target_link_libraries(KF5PimTextEdit |
743 |
--- |
744 |
-GitLab |
745 |
- |
746 |
|
747 |
diff --git a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-3.patch b/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-3.patch |
748 |
deleted file mode 100644 |
749 |
index 617864cd7b..0000000000 |
750 |
--- a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-3.patch |
751 |
+++ /dev/null |
752 |
@@ -1,100 +0,0 @@ |
753 |
-From b248e11f0c6f4e389052e616e6dd262135a23f3c Mon Sep 17 00:00:00 2001 |
754 |
-From: Laurent Montel <montel@×××.org> |
755 |
-Date: Mon, 14 Feb 2022 18:58:34 +0100 |
756 |
-Subject: [PATCH] Add info about texttospeech support |
757 |
- |
758 |
---- |
759 |
- CMakeLists.txt | 7 +++++-- |
760 |
- kpimtextedit-texttospeech.h.cmake | 2 ++ |
761 |
- src/CMakeLists.txt | 11 ++++++----- |
762 |
- 3 files changed, 14 insertions(+), 8 deletions(-) |
763 |
- create mode 100644 kpimtextedit-texttospeech.h.cmake |
764 |
- |
765 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
766 |
-index b1c48c8..a00bdeb 100644 |
767 |
---- a/CMakeLists.txt |
768 |
-+++ b/CMakeLists.txt |
769 |
-@@ -82,10 +82,13 @@ set_package_properties(Qt5TextToSpeech PROPERTIES DESCRIPTION |
770 |
- TYPE OPTIONAL |
771 |
- ) |
772 |
- if(TARGET Qt5::TextToSpeech) |
773 |
-- set(HAVE_TEXT_TO_SPEECH_SUPPORT TRUE) |
774 |
-- add_definitions(-DHAVE_TEXT_TO_SPEECH_SUPPORT) |
775 |
-+ add_definitions(-DHAVE_TEXT_TO_SPEECH_SUPPORT) |
776 |
-+ set(KPIMTEXTEDIT_TEXT_TO_SPEECH TRUE) |
777 |
- endif() |
778 |
- |
779 |
-+configure_file(kpimtextedit-texttospeech.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kpimtextedit-texttospeech.h ) |
780 |
-+ |
781 |
-+ |
782 |
- if(BUILD_TESTING) |
783 |
- find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Test) |
784 |
- add_definitions(-DBUILD_TESTING) |
785 |
-diff --git a/kpimtextedit-texttospeech.h.cmake b/kpimtextedit-texttospeech.h.cmake |
786 |
-new file mode 100644 |
787 |
-index 0000000..c82af97 |
788 |
---- /dev/null |
789 |
-+++ b/kpimtextedit-texttospeech.h.cmake |
790 |
-@@ -0,0 +1,2 @@ |
791 |
-+#cmakedefine01 KPIMTEXTEDIT_TEXT_TO_SPEECH |
792 |
-+ |
793 |
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
794 |
-index 3e24a2f..4e02e5f 100644 |
795 |
---- a/src/CMakeLists.txt |
796 |
-+++ b/src/CMakeLists.txt |
797 |
-@@ -53,7 +53,7 @@ target_sources(KF5PimTextEdit PRIVATE |
798 |
- composer-ng/richtextcomposeremailquotehighlighter.h |
799 |
- composer-ng/richtextcomposerwidget.h |
800 |
- ) |
801 |
--if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
802 |
-+if (KPIMTEXTEDIT_TEXT_TO_SPEECH) |
803 |
- target_sources(KF5PimTextEdit PRIVATE |
804 |
- texttospeech/texttospeech.cpp |
805 |
- texttospeech/texttospeechwidget.cpp |
806 |
-@@ -168,7 +168,7 @@ target_link_libraries(KF5PimTextEdit |
807 |
- KF5::I18n |
808 |
- KF5::SyntaxHighlighting |
809 |
- ) |
810 |
--if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
811 |
-+if (KPIMTEXTEDIT_TEXT_TO_SPEECH) |
812 |
- target_link_libraries(KF5PimTextEdit |
813 |
- PRIVATE |
814 |
- Qt5::TextToSpeech |
815 |
-@@ -245,7 +245,7 @@ ecm_generate_headers(KPimTextEdit_CamelCasetexteditor_commonwidget_HEADERS |
816 |
- ) |
817 |
- |
818 |
- |
819 |
--if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
820 |
-+if (KPIMTEXTEDIT_TEXT_TO_SPEECH) |
821 |
- ecm_generate_headers(KPimTextEdit_CamelCasetexttospeechs_HEADERS |
822 |
- HEADER_NAMES |
823 |
- TextToSpeech |
824 |
-@@ -274,7 +274,7 @@ ecm_generate_headers(KPimTextEdit_Camelcasecomposerng_HEADERS |
825 |
- |
826 |
- |
827 |
- ########### install files ############### |
828 |
--if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
829 |
-+if (KPIMTEXTEDIT_TEXT_TO_SPEECH) |
830 |
- install(FILES |
831 |
- ${KPimTextEdit_texttospeechs_HEADERS} |
832 |
- DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KPIMTextEdit/kpimtextedit |
833 |
-@@ -289,6 +289,7 @@ endif() |
834 |
- |
835 |
- install(FILES |
836 |
- ${CMAKE_CURRENT_BINARY_DIR}/kpimtextedit_export.h |
837 |
-+ ${CMAKE_CURRENT_BINARY_DIR}/../kpimtextedit-texttospeech.h |
838 |
- ${kpimtextedit_HEADERS} |
839 |
- ${KPimTextEdit_richtexteditor_HEADERS} |
840 |
- ${KPimTextEdit_texteditor_commonwidget_HEADERS} |
841 |
-@@ -321,7 +322,7 @@ if (BUILD_TESTING) |
842 |
- add_subdirectory(texteditor/commonwidget/autotests) |
843 |
- add_subdirectory(texteditor/plaintexteditor/tests) |
844 |
- add_subdirectory(texteditor/richtexteditor/tests) |
845 |
-- if (HAVE_TEXT_TO_SPEECH_SUPPORT) |
846 |
-+ if (KPIMTEXTEDIT_TEXT_TO_SPEECH) |
847 |
- add_subdirectory(texttospeech/autotests) |
848 |
- add_subdirectory(texttospeech/tests) |
849 |
- endif() |
850 |
--- |
851 |
-GitLab |
852 |
- |
853 |
|
854 |
diff --git a/kde-apps/krfb/files/krfb-21.12.2-optional-pipewire.patch b/kde-apps/krfb/files/krfb-21.12.2-optional-pipewire.patch |
855 |
deleted file mode 100644 |
856 |
index 42efc93ee6..0000000000 |
857 |
--- a/kde-apps/krfb/files/krfb-21.12.2-optional-pipewire.patch |
858 |
+++ /dev/null |
859 |
@@ -1,28 +0,0 @@ |
860 |
-From 1222c2067ccaeef69878bd3101fc579011b3e191 Mon Sep 17 00:00:00 2001 |
861 |
-From: Luke Dashjr <luke-jr+git@×××××××.org> |
862 |
-Date: Mon, 24 Jan 2022 01:35:21 +0000 |
863 |
-Subject: [PATCH] Add CMake option DISABLE_PIPEWIRE to skip dependency check |
864 |
- |
865 |
---- |
866 |
- CMakeLists.txt | 5 ++++- |
867 |
- 1 file changed, 4 insertions(+), 1 deletion(-) |
868 |
- |
869 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
870 |
-index 4f8241f..01e6f57 100644 |
871 |
---- a/CMakeLists.txt |
872 |
-+++ b/CMakeLists.txt |
873 |
-@@ -79,7 +79,10 @@ include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ) |
874 |
- find_package(LibVNCServer REQUIRED) |
875 |
- |
876 |
- |
877 |
--pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3) |
878 |
-+option(DISABLE_PIPEWIRE "Disable PipeWire support." OFF) |
879 |
-+if(NOT DISABLE_PIPEWIRE) |
880 |
-+ pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3) |
881 |
-+endif() |
882 |
- add_feature_info(PipeWire PipeWire_FOUND "Required for pipewire screencast plugin") |
883 |
- find_package(PlasmaWaylandProtocols 1.5.0) |
884 |
- |
885 |
--- |
886 |
-GitLab |
887 |
- |
888 |
|
889 |
diff --git a/kde-apps/libksieve/files/libksieve-21.12.3-speech-optional.patch b/kde-apps/libksieve/files/libksieve-21.12.3-speech-optional.patch |
890 |
deleted file mode 100644 |
891 |
index b77300483a..0000000000 |
892 |
--- a/kde-apps/libksieve/files/libksieve-21.12.3-speech-optional.patch |
893 |
+++ /dev/null |
894 |
@@ -1,180 +0,0 @@ |
895 |
-From dd296ce1c679f73a52b4d501383346f51acccce8 Mon Sep 17 00:00:00 2001 |
896 |
-From: Laurent Montel <montel@×××.org> |
897 |
-Date: Sun, 23 Jan 2022 10:48:47 +0100 |
898 |
-Subject: [PATCH] Fix compile without texttospeech |
899 |
- |
900 |
-(cherry picked from commit 4ff666c61d4c0dde3e96ad7d45c0a81cb58324a0) |
901 |
- |
902 |
-Merged with (and stripped of Qt6 trivia): |
903 |
- |
904 |
-Text to speak is not supported yet in qt6 |
905 |
-(cherry picked from commit 72be23f5c355864a78174f402596d959a5ad4081) |
906 |
- |
907 |
-Fix some qt6 build |
908 |
-(cherry picked from commit b7acbb937cf92d41c955199c31758c5770b08f0e) |
909 |
- |
910 |
-USe upper cas includes |
911 |
-(cherry picked from commit 66a6cd63083a15bb570100c62053c3ac3e292642) |
912 |
---- |
913 |
- src/ksieveui/editor/sieveeditortextmodewidget.cpp | 7 ++++++- |
914 |
- src/ksieveui/editor/sieveeditortextmodewidget.h | 1 + |
915 |
- .../sievescriptdebuggerfrontendwidgettest.cpp | 8 ++++++-- |
916 |
- .../sievescriptdebuggerfrontendwidget.cpp | 10 +++++++--- |
917 |
- src/ksieveui/templates/sievetemplateeditdialog.cpp | 11 +++++++---- |
918 |
- 5 files changed, 27 insertions(+), 10 deletions(-) |
919 |
- |
920 |
-diff --git a/src/ksieveui/editor/sieveeditortextmodewidget.cpp b/src/ksieveui/editor/sieveeditortextmodewidget.cpp |
921 |
-index d5c7c57a..0c10f9fa 100644 |
922 |
---- a/src/ksieveui/editor/sieveeditortextmodewidget.cpp |
923 |
-+++ b/src/ksieveui/editor/sieveeditortextmodewidget.cpp |
924 |
-@@ -21,7 +21,9 @@ |
925 |
- #include <KPIMTextEdit/PlainTextEditorWidget> |
926 |
- #include <KPIMTextEdit/SlideContainer> |
927 |
- #include <KPIMTextEdit/TextGotoLineWidget> |
928 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
929 |
- #include <KPIMTextEdit/TextToSpeechWidget> |
930 |
-+#endif |
931 |
- |
932 |
- #include <ksieve/error.h> |
933 |
- #include <ksieve/parser.h> |
934 |
-@@ -73,9 +75,10 @@ SieveEditorTextModeWidget::SieveEditorTextModeWidget(QWidget *parent) |
935 |
- mTabWidget = new SieveEditorTabWidget; |
936 |
- connect(mTabWidget, &SieveEditorTabWidget::currentChanged, this, &SieveEditorTextModeWidget::sieveEditorTabCurrentChanged); |
937 |
- connect(mTabWidget, &SieveEditorTabWidget::copyAvailable, this, &SieveEditorTextModeWidget::copyAvailable); |
938 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
939 |
- mTextToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this); |
940 |
- editorWidgetLayout->addWidget(mTextToSpeechWidget); |
941 |
-- |
942 |
-+#endif |
943 |
- mTextEdit = new SieveTextEdit; |
944 |
- editorWidgetLayout->addWidget(mTextEdit); |
945 |
- connect(mTextEdit, &SieveTextEdit::textChanged, this, &SieveEditorTextModeWidget::valueChanged); |
946 |
-@@ -83,7 +86,9 @@ SieveEditorTextModeWidget::SieveEditorTextModeWidget(QWidget *parent) |
947 |
- mTabWidget->tabBar()->hide(); |
948 |
- textEditLayout->addWidget(mTabWidget); |
949 |
- connect(mTextEdit, &SieveTextEdit::openHelp, mTabWidget, &SieveEditorTabWidget::slotAddHelpPage); |
950 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
951 |
- connect(mTextEdit, &SieveTextEdit::say, mTextToSpeechWidget, &KPIMTextEdit::TextToSpeechWidget::say); |
952 |
-+#endif |
953 |
- connect(mTextEdit, &SieveTextEdit::editRule, this, &SieveEditorTextModeWidget::slotEditRule); |
954 |
- connect(mTextEdit, &SieveTextEdit::insertRule, this, &SieveEditorTextModeWidget::slotInsertRule); |
955 |
- |
956 |
-diff --git a/src/ksieveui/editor/sieveeditortextmodewidget.h b/src/ksieveui/editor/sieveeditortextmodewidget.h |
957 |
-index 934b3d72..2ef5b824 100644 |
958 |
---- a/src/ksieveui/editor/sieveeditortextmodewidget.h |
959 |
-+++ b/src/ksieveui/editor/sieveeditortextmodewidget.h |
960 |
-@@ -7,6 +7,7 @@ |
961 |
- |
962 |
- #include "ksieveui_export.h" |
963 |
- #include "sieveeditorabstractwidget.h" |
964 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
965 |
- class QSplitter; |
966 |
- namespace KPIMTextEdit |
967 |
- { |
968 |
-diff --git a/src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp b/src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp |
969 |
-index ea66438b..28b2ba08 100644 |
970 |
---- a/src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp |
971 |
-+++ b/src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp |
972 |
-@@ -6,7 +6,10 @@ |
973 |
- |
974 |
- #include "sievescriptdebuggerfrontendwidgettest.h" |
975 |
- #include "../sievescriptdebuggerfrontendwidget.h" |
976 |
--#include <KPIMTextEdit/kpimtextedit/texttospeechwidget.h> |
977 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
978 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
979 |
-+#include <KPIMTextEdit/TextToSpeechWidget> |
980 |
-+#endif |
981 |
- #include <KUrlRequester> |
982 |
- #include <QLabel> |
983 |
- #include <QLineEdit> |
984 |
-@@ -48,9 +51,10 @@ void SieveScriptDebuggerFrontEndWidgetTest::shouldHaveDefaultValue() |
985 |
- QVERIFY(extension); |
986 |
- QVERIFY(extension->text().isEmpty()); |
987 |
- QVERIFY(extension->isClearButtonEnabled()); |
988 |
-- |
989 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
990 |
- auto textToSpeechWidget = w.findChild<KPIMTextEdit::TextToSpeechWidget *>(QStringLiteral("texttospeechwidget")); |
991 |
- QVERIFY(textToSpeechWidget); |
992 |
-+#endif |
993 |
- } |
994 |
- |
995 |
- void SieveScriptDebuggerFrontEndWidgetTest::shouldChangeButtonEnabledState() |
996 |
-diff --git a/src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp b/src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp |
997 |
-index 4543caef..5ff016e4 100644 |
998 |
---- a/src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp |
999 |
-+++ b/src/ksieveui/sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp |
1000 |
-@@ -14,7 +14,10 @@ |
1001 |
- #include <KLineEdit> |
1002 |
- #include <KLocalizedString> |
1003 |
- #include <KPIMTextEdit/PlainTextEditorWidget> |
1004 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
1005 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1006 |
- #include <KPIMTextEdit/TextToSpeechWidget> |
1007 |
-+#endif |
1008 |
- #include <KUrlRequester> |
1009 |
- #include <Libkdepim/LineEditCatchReturnKey> |
1010 |
- #include <QDate> |
1011 |
-@@ -71,18 +74,19 @@ SieveScriptDebuggerFrontEndWidget::SieveScriptDebuggerFrontEndWidget(QWidget *pa |
1012 |
- auto vboxSieveEditorLayout = new QVBoxLayout; |
1013 |
- sieveEditorWidget->setLayout(vboxSieveEditorLayout); |
1014 |
- vboxSieveEditorLayout->setContentsMargins({}); |
1015 |
-- |
1016 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1017 |
- auto textToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this); |
1018 |
- textToSpeechWidget->setObjectName(QStringLiteral("texttospeechwidget")); |
1019 |
- vboxSieveEditorLayout->addWidget(textToSpeechWidget); |
1020 |
-- |
1021 |
-+#endif |
1022 |
- auto textEdit = new KSieveUi::SieveScriptDebuggerTextEdit(this); |
1023 |
- connect(textEdit, &KSieveUi::SieveScriptDebuggerTextEdit::textChanged, this, &SieveScriptDebuggerFrontEndWidget::slotScriptTextChanged); |
1024 |
- mSieveTextEditWidget = new KSieveUi::SieveTextEditWidget(textEdit, this); |
1025 |
- mSieveTextEditWidget->setObjectName(QStringLiteral("sievetexteditwidget")); |
1026 |
- vboxSieveEditorLayout->addWidget(mSieveTextEditWidget); |
1027 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1028 |
- connect(mSieveTextEditWidget->textEdit(), &SieveTextEdit::say, textToSpeechWidget, &KPIMTextEdit::TextToSpeechWidget::say); |
1029 |
-- |
1030 |
-+#endif |
1031 |
- mSplitter->addWidget(sieveEditorWidget); |
1032 |
- mSplitter->setChildrenCollapsible(false); |
1033 |
- |
1034 |
-diff --git a/src/ksieveui/templates/sievetemplateeditdialog.cpp b/src/ksieveui/templates/sievetemplateeditdialog.cpp |
1035 |
-index 8a7127c4..5f039f0d 100644 |
1036 |
---- a/src/ksieveui/templates/sievetemplateeditdialog.cpp |
1037 |
-+++ b/src/ksieveui/templates/sievetemplateeditdialog.cpp |
1038 |
-@@ -24,9 +24,10 @@ |
1039 |
- #include <QVBoxLayout> |
1040 |
- |
1041 |
- #include <editor/sievetexteditwidget.h> |
1042 |
-- |
1043 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
1044 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1045 |
- #include <KPIMTextEdit/TextToSpeechWidget> |
1046 |
-- |
1047 |
-+#endif |
1048 |
- using namespace KSieveUi; |
1049 |
- |
1050 |
- SieveTemplateEditDialog::SieveTemplateEditDialog(QWidget *parent, bool defaultTemplate) |
1051 |
-@@ -62,16 +63,18 @@ SieveTemplateEditDialog::SieveTemplateEditDialog(QWidget *parent, bool defaultTe |
1052 |
- hbox->addWidget(mTemplateNameEdit); |
1053 |
- |
1054 |
- vbox->addLayout(hbox); |
1055 |
-- |
1056 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1057 |
- auto textToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this); |
1058 |
- vbox->addWidget(textToSpeechWidget); |
1059 |
-+#endif |
1060 |
- |
1061 |
- mTextEditWidget = new KSieveUi::SieveTextEditWidget; |
1062 |
- mTextEditWidget->textEdit()->setShowHelpMenu(false); |
1063 |
- mTextEditWidget->setReadOnly(defaultTemplate); |
1064 |
- vbox->addWidget(mTextEditWidget); |
1065 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1066 |
- connect(mTextEditWidget->textEdit(), &SieveTextEdit::say, textToSpeechWidget, &KPIMTextEdit::TextToSpeechWidget::say); |
1067 |
-- |
1068 |
-+#endif |
1069 |
- auto shortcut = new QShortcut(this); |
1070 |
- shortcut->setKey(Qt::Key_F | Qt::CTRL); |
1071 |
- connect(shortcut, &QShortcut::activated, mTextEditWidget, &SieveTextEditWidget::slotFind); |
1072 |
--- |
1073 |
-2.35.1 |
1074 |
- |
1075 |
|
1076 |
diff --git a/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-1.patch b/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-1.patch |
1077 |
deleted file mode 100644 |
1078 |
index 39f48362a4..0000000000 |
1079 |
--- a/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-1.patch |
1080 |
+++ /dev/null |
1081 |
@@ -1,131 +0,0 @@ |
1082 |
-From a8d74999570b1dd6025548593e2d06b37afadce0 Mon Sep 17 00:00:00 2001 |
1083 |
-From: Laurent Montel <montel@×××.org> |
1084 |
-Date: Mon, 14 Feb 2022 19:07:53 +0100 |
1085 |
-Subject: [PATCH] Fix build without texttospeech |
1086 |
- |
1087 |
---- |
1088 |
- .../mailsourceviewtextbrowserwidget.cpp | 19 ++++++++++++++++--- |
1089 |
- .../widgets/mailsourceviewtextbrowserwidget.h | 9 +++++++++ |
1090 |
- 2 files changed, 25 insertions(+), 3 deletions(-) |
1091 |
- |
1092 |
-diff --git a/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp b/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp |
1093 |
-index 5c0050002..0e5b61c1e 100644 |
1094 |
---- a/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp |
1095 |
-+++ b/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp |
1096 |
-@@ -38,16 +38,20 @@ using namespace MessageViewer; |
1097 |
- MailSourceViewTextBrowserWidget::MailSourceViewTextBrowserWidget(const QString &syntax, QWidget *parent) |
1098 |
- : QWidget(parent) |
1099 |
- , mSliderContainer(new KPIMTextEdit::SlideContainer(this)) |
1100 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1101 |
- , mTextToSpeechWidget(new KPIMTextEdit::TextToSpeechWidget(this)) |
1102 |
-+#endif |
1103 |
- { |
1104 |
- auto lay = new QVBoxLayout(this); |
1105 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1106 |
- lay->setContentsMargins({}); |
1107 |
- mTextToSpeechWidget->setObjectName(QStringLiteral("texttospeech")); |
1108 |
- lay->addWidget(mTextToSpeechWidget); |
1109 |
-- |
1110 |
- auto textToSpeechInterface = new KPIMTextEdit::TextToSpeechInterface(mTextToSpeechWidget, this); |
1111 |
-- |
1112 |
- mTextBrowser = new MailSourceViewTextBrowser(textToSpeechInterface); |
1113 |
-+#else |
1114 |
-+ mTextBrowser = new MailSourceViewTextBrowser(this); |
1115 |
-+#endif |
1116 |
- mTextBrowser->setObjectName(QStringLiteral("textbrowser")); |
1117 |
- mTextBrowser->setLineWrapMode(QPlainTextEdit::NoWrap); |
1118 |
- mTextBrowser->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); |
1119 |
-@@ -104,12 +108,17 @@ MessageViewer::MailSourceViewTextBrowser *MailSourceViewTextBrowserWidget::textB |
1120 |
- { |
1121 |
- return mTextBrowser; |
1122 |
- } |
1123 |
-- |
1124 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1125 |
- MailSourceViewTextBrowser::MailSourceViewTextBrowser(KPIMTextEdit::TextToSpeechInterface *textToSpeechInterface, QWidget *parent) |
1126 |
- : QPlainTextEdit(parent) |
1127 |
- , mTextToSpeechInterface(textToSpeechInterface) |
1128 |
- { |
1129 |
- } |
1130 |
-+#endif |
1131 |
-+MailSourceViewTextBrowser::MailSourceViewTextBrowser(QWidget *parent) |
1132 |
-+ : QPlainTextEdit(parent) |
1133 |
-+{ |
1134 |
-+} |
1135 |
- |
1136 |
- void MailSourceViewTextBrowser::contextMenuEvent(QContextMenuEvent *event) |
1137 |
- { |
1138 |
-@@ -117,6 +126,7 @@ void MailSourceViewTextBrowser::contextMenuEvent(QContextMenuEvent *event) |
1139 |
- if (popup) { |
1140 |
- popup->addSeparator(); |
1141 |
- popup->addAction(KStandardAction::find(this, &MailSourceViewTextBrowser::findText, this)); |
1142 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1143 |
- // Code from KTextBrowser |
1144 |
- if (mTextToSpeechInterface->isReady()) { |
1145 |
- popup->addSeparator(); |
1146 |
-@@ -125,6 +135,7 @@ void MailSourceViewTextBrowser::contextMenuEvent(QContextMenuEvent *event) |
1147 |
- this, |
1148 |
- &MailSourceViewTextBrowser::slotSpeakText); |
1149 |
- } |
1150 |
-+#endif |
1151 |
- popup->addSeparator(); |
1152 |
- popup->addAction(KStandardAction::saveAs(this, &MailSourceViewTextBrowser::slotSaveAs, this)); |
1153 |
- |
1154 |
-@@ -140,6 +151,7 @@ void MailSourceViewTextBrowser::slotSaveAs() |
1155 |
- |
1156 |
- void MailSourceViewTextBrowser::slotSpeakText() |
1157 |
- { |
1158 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1159 |
- QString text; |
1160 |
- if (textCursor().hasSelection()) { |
1161 |
- text = textCursor().selectedText(); |
1162 |
-@@ -147,4 +159,5 @@ void MailSourceViewTextBrowser::slotSpeakText() |
1163 |
- text = toPlainText(); |
1164 |
- } |
1165 |
- mTextToSpeechInterface->say(text); |
1166 |
-+#endif |
1167 |
- } |
1168 |
-diff --git a/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.h b/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.h |
1169 |
-index 84f0eb8ae..500402f9a 100644 |
1170 |
---- a/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.h |
1171 |
-+++ b/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.h |
1172 |
-@@ -12,6 +12,8 @@ |
1173 |
- #include <KSyntaxHighlighting/Repository> |
1174 |
- #include <QPlainTextEdit> |
1175 |
- #include <QSyntaxHighlighter> |
1176 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
1177 |
-+ |
1178 |
- namespace KPIMTextEdit |
1179 |
- { |
1180 |
- class SlideContainer; |
1181 |
-@@ -50,14 +52,19 @@ private: |
1182 |
- MailSourceViewTextBrowser *mTextBrowser = nullptr; |
1183 |
- FindBarSourceView *mFindBar = nullptr; |
1184 |
- KPIMTextEdit::SlideContainer *const mSliderContainer; |
1185 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1186 |
- KPIMTextEdit::TextToSpeechWidget *const mTextToSpeechWidget; |
1187 |
-+#endif |
1188 |
- }; |
1189 |
- |
1190 |
- class MailSourceViewTextBrowser : public QPlainTextEdit |
1191 |
- { |
1192 |
- Q_OBJECT |
1193 |
- public: |
1194 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1195 |
- explicit MailSourceViewTextBrowser(KPIMTextEdit::TextToSpeechInterface *textToSpeechInterface, QWidget *parent = nullptr); |
1196 |
-+#endif |
1197 |
-+ explicit MailSourceViewTextBrowser(QWidget *parent); |
1198 |
- |
1199 |
- protected: |
1200 |
- void contextMenuEvent(QContextMenuEvent *event) override; |
1201 |
-@@ -67,6 +74,8 @@ Q_SIGNALS: |
1202 |
- private: |
1203 |
- void slotSpeakText(); |
1204 |
- void slotSaveAs(); |
1205 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1206 |
- KPIMTextEdit::TextToSpeechInterface *mTextToSpeechInterface = nullptr; |
1207 |
-+#endif |
1208 |
- }; |
1209 |
- } |
1210 |
--- |
1211 |
-GitLab |
1212 |
- |
1213 |
|
1214 |
diff --git a/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-2.patch b/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-2.patch |
1215 |
deleted file mode 100644 |
1216 |
index a00fab7d58..0000000000 |
1217 |
--- a/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-2.patch |
1218 |
+++ /dev/null |
1219 |
@@ -1,95 +0,0 @@ |
1220 |
-From da4ba2b7dc18ba20994dad54e754ed1d9d9c7a48 Mon Sep 17 00:00:00 2001 |
1221 |
-From: Laurent Montel <montel@×××.org> |
1222 |
-Date: Mon, 14 Feb 2022 19:16:56 +0100 |
1223 |
-Subject: [PATCH] Compile without text to speech support |
1224 |
- |
1225 |
---- |
1226 |
- messageviewer/src/viewer/viewer_p.cpp | 10 ++++++---- |
1227 |
- messageviewer/src/viewer/viewer_p.h | 8 +++++--- |
1228 |
- 2 files changed, 11 insertions(+), 7 deletions(-) |
1229 |
- |
1230 |
-diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp |
1231 |
-index 5e7af8e01..15e71482f 100644 |
1232 |
---- a/messageviewer/src/viewer/viewer_p.cpp |
1233 |
-+++ b/messageviewer/src/viewer/viewer_p.cpp |
1234 |
-@@ -1403,11 +1403,11 @@ void ViewerPrivate::createWidgets() |
1235 |
- mOpenSavedFileFolderWidget = new OpenSavedFileFolderWidget(readerBox); |
1236 |
- mOpenSavedFileFolderWidget->setObjectName(QStringLiteral("opensavefilefolderwidget")); |
1237 |
- readerBoxVBoxLayout->addWidget(mOpenSavedFileFolderWidget); |
1238 |
-- |
1239 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1240 |
- mTextToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(readerBox); |
1241 |
- mTextToSpeechWidget->setObjectName(QStringLiteral("texttospeechwidget")); |
1242 |
- readerBoxVBoxLayout->addWidget(mTextToSpeechWidget); |
1243 |
-- |
1244 |
-+#endif |
1245 |
- mViewer = new MailWebEngineView(mActionCollection, readerBox); |
1246 |
- mViewer->setViewer(this); |
1247 |
- readerBoxVBoxLayout->addWidget(mViewer); |
1248 |
-@@ -1609,12 +1609,12 @@ void ViewerPrivate::createActions() |
1249 |
- ac->setDefaultShortcut(loadExternalReferenceAction, QKeySequence(Qt::SHIFT | Qt::CTRL | Qt::Key_R)); |
1250 |
- connect(loadExternalReferenceAction, &QAction::triggered, this, &ViewerPrivate::slotLoadExternalReference); |
1251 |
- MessageViewer::Util::addHelpTextAction(loadExternalReferenceAction, i18n("Load external references from the Internet for this message.")); |
1252 |
-- |
1253 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1254 |
- mSpeakTextAction = new QAction(i18n("Speak Text"), this); |
1255 |
- mSpeakTextAction->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-text-to-speech"))); |
1256 |
- ac->addAction(QStringLiteral("speak_text"), mSpeakTextAction); |
1257 |
- connect(mSpeakTextAction, &QAction::triggered, this, &ViewerPrivate::slotSpeakText); |
1258 |
-- |
1259 |
-+#endif |
1260 |
- auto purposeMenuWidget = new MailfilterPurposeMenuWidget(mViewer, this); |
1261 |
- mShareTextAction = new QAction(i18n("Share Text..."), this); |
1262 |
- mShareTextAction->setMenu(purposeMenuWidget->menu()); |
1263 |
-@@ -2605,10 +2605,12 @@ void ViewerPrivate::replyMessage(KMime::Content *atmNode, bool replyToAll) |
1264 |
- |
1265 |
- void ViewerPrivate::slotSpeakText() |
1266 |
- { |
1267 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1268 |
- const QString text = mViewer->selectedText(); |
1269 |
- if (!text.isEmpty()) { |
1270 |
- mTextToSpeechWidget->say(text); |
1271 |
- } |
1272 |
-+#endif |
1273 |
- } |
1274 |
- |
1275 |
- QUrl ViewerPrivate::imageUrl() const |
1276 |
-diff --git a/messageviewer/src/viewer/viewer_p.h b/messageviewer/src/viewer/viewer_p.h |
1277 |
-index 88cb605e5..467163a2a 100644 |
1278 |
---- a/messageviewer/src/viewer/viewer_p.h |
1279 |
-+++ b/messageviewer/src/viewer/viewer_p.h |
1280 |
-@@ -13,18 +13,18 @@ |
1281 |
- #include "messageviewer_private_export.h" |
1282 |
- #include "viewer.h" //not so nice, it is actually for the enums from MailViewer |
1283 |
- #include "widgets/opensavedfilefolderwidget.h" |
1284 |
--#include <PimCommon/ShareServiceUrlManager> |
1285 |
--#include <WebEngineViewer/CheckPhishingUrlUtil> |
1286 |
-- |
1287 |
- #include <Akonadi/Item> |
1288 |
- #include <Akonadi/Monitor> |
1289 |
- #include <Akonadi/Session> |
1290 |
- #include <KIO/Job> |
1291 |
- #include <KMime/Message> |
1292 |
- #include <KService> |
1293 |
-+#include <PimCommon/ShareServiceUrlManager> |
1294 |
- #include <QPointer> |
1295 |
- #include <QUrl> |
1296 |
- #include <QVector> |
1297 |
-+#include <WebEngineViewer/CheckPhishingUrlUtil> |
1298 |
-+#include <kpimtextedit/kpimtextedit-texttospeech.h> |
1299 |
- |
1300 |
- #include <QObject> |
1301 |
- #include <QTimer> |
1302 |
-@@ -695,7 +695,9 @@ public: |
1303 |
- MessageViewer::OpenSavedFileFolderWidget *mOpenSavedFileFolderWidget = nullptr; |
1304 |
- WebEngineViewer::SubmittedFormWarningWidget *mSubmittedFormWarning = nullptr; |
1305 |
- WebEngineViewer::TrackingWarningWidget *mMailTrackingWarning = nullptr; |
1306 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1307 |
- KPIMTextEdit::TextToSpeechWidget *mTextToSpeechWidget = nullptr; |
1308 |
-+#endif |
1309 |
- Viewer::DisplayFormatMessage mDisplayFormatMessageOverwrite; |
1310 |
- KPIMTextEdit::SlideContainer *mSliderContainer = nullptr; |
1311 |
- PimCommon::ShareServiceUrlManager *mShareServiceManager = nullptr; |
1312 |
--- |
1313 |
-GitLab |
1314 |
- |
1315 |
|
1316 |
diff --git a/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-3.patch b/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-3.patch |
1317 |
deleted file mode 100644 |
1318 |
index 092df18f44..0000000000 |
1319 |
--- a/kde-apps/messagelib/files/messagelib-21.12.3-speech-optional-3.patch |
1320 |
+++ /dev/null |
1321 |
@@ -1,56 +0,0 @@ |
1322 |
-From 141b7862a292323fa41c9f863e16f49e548d8bfa Mon Sep 17 00:00:00 2001 |
1323 |
-From: Andreas Sturmlechner <asturm@g.o> |
1324 |
-Date: Thu, 24 Feb 2022 16:04:59 +0100 |
1325 |
-Subject: [PATCH] Fix build without texttospeech |
1326 |
- |
1327 |
-Signed-off-by: Andreas Sturmlechner <asturm@g.o> |
1328 |
---- |
1329 |
- messageviewer/src/utils/messageviewerutil.cpp | 1 - |
1330 |
- messageviewer/src/viewer/viewer_p.cpp | 2 ++ |
1331 |
- messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp | 2 ++ |
1332 |
- 3 files changed, 4 insertions(+), 1 deletion(-) |
1333 |
- |
1334 |
-diff --git a/messageviewer/src/utils/messageviewerutil.cpp b/messageviewer/src/utils/messageviewerutil.cpp |
1335 |
-index 607fa65cb..e2446c13a 100644 |
1336 |
---- a/messageviewer/src/utils/messageviewerutil.cpp |
1337 |
-+++ b/messageviewer/src/utils/messageviewerutil.cpp |
1338 |
-@@ -41,7 +41,6 @@ |
1339 |
- #include "MessageCore/StringUtil" |
1340 |
- #include "messageviewer_debug.h" |
1341 |
- #include "messageviewerutil_p.h" |
1342 |
--#include <KPIMTextEdit/TextToSpeech> |
1343 |
- #include <MimeTreeParser/NodeHelper> |
1344 |
- |
1345 |
- #include <PimCommon/RenameFileDialog> |
1346 |
-diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp |
1347 |
-index b989b294a..22587635c 100644 |
1348 |
---- a/messageviewer/src/viewer/viewer_p.cpp |
1349 |
-+++ b/messageviewer/src/viewer/viewer_p.cpp |
1350 |
-@@ -129,7 +129,9 @@ |
1351 |
- #include <Akonadi/CollectionFetchScope> |
1352 |
- |
1353 |
- #include <KJobWidgets/KJobWidgets> |
1354 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1355 |
- #include <KPIMTextEdit/TextToSpeechWidget> |
1356 |
-+#endif |
1357 |
- #include <QApplication> |
1358 |
- #include <QStandardPaths> |
1359 |
- #include <QWebEngineSettings> |
1360 |
-diff --git a/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp b/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp |
1361 |
-index 0e5b61c1e..67ac5bf1a 100644 |
1362 |
---- a/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp |
1363 |
-+++ b/messageviewer/src/widgets/mailsourceviewtextbrowserwidget.cpp |
1364 |
-@@ -13,8 +13,10 @@ |
1365 |
- #include "messageviewer/messageviewerutil.h" |
1366 |
- #include "messageviewer_debug.h" |
1367 |
- #include <KPIMTextEdit/SlideContainer> |
1368 |
-+#if KPIMTEXTEDIT_TEXT_TO_SPEECH |
1369 |
- #include <KPIMTextEdit/TextToSpeechInterface> |
1370 |
- #include <KPIMTextEdit/TextToSpeechWidget> |
1371 |
-+#endif |
1372 |
- #include <PimCommon/PimUtil> |
1373 |
- |
1374 |
- #include <KSyntaxHighlighting/Definition> |
1375 |
--- |
1376 |
-2.35.1 |
1377 |
- |
1378 |
|
1379 |
diff --git a/kde-apps/okular/files/okular-21.08.1-optional-options.patch b/kde-apps/okular/files/okular-21.08.1-optional-options.patch |
1380 |
deleted file mode 100644 |
1381 |
index 71d8df156e..0000000000 |
1382 |
--- a/kde-apps/okular/files/okular-21.08.1-optional-options.patch |
1383 |
+++ /dev/null |
1384 |
@@ -1,109 +0,0 @@ |
1385 |
-From 54351076f87ce2a43a87427d9c3f3e00539b9fd5 Mon Sep 17 00:00:00 2001 |
1386 |
-From: Andreas Sturmlechner <asturm@g.o> |
1387 |
-Date: Tue, 31 Aug 2021 16:48:42 +0200 |
1388 |
-Subject: [PATCH] Make WITH_KWALLET and WITH_KJS proper cmake options |
1389 |
- |
1390 |
-Since I was asked to implement this, might as well make it real options, |
1391 |
-not just limited to ANDROID. Even though optional find_package() call is |
1392 |
-already being used for KF5Purpose as well. |
1393 |
- |
1394 |
-KF5DocTools is not made required more often than not. |
1395 |
- |
1396 |
-See also: https://invent.kde.org/graphics/okular/-/issues/61 |
1397 |
-Downstream report: https://bugs.gentoo.org/810958 |
1398 |
- |
1399 |
-Signed-off-by: Andreas Sturmlechner <asturm@g.o> |
1400 |
---- |
1401 |
- CMakeLists.txt | 21 ++++++++------------- |
1402 |
- config-okular.h.cmake | 6 ++++++ |
1403 |
- core/generator.cpp | 1 + |
1404 |
- core/scripter.cpp | 1 + |
1405 |
- 4 files changed, 16 insertions(+), 13 deletions(-) |
1406 |
- |
1407 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
1408 |
-index 2506c3cfa..984f3695e 100644 |
1409 |
---- a/CMakeLists.txt |
1410 |
-+++ b/CMakeLists.txt |
1411 |
-@@ -76,12 +76,9 @@ ecm_setup_qtplugin_macro_names( |
1412 |
- PACKAGE_SETUP_AUTOMOC_VARIABLES |
1413 |
- ) |
1414 |
- |
1415 |
--set(optionalComponents) |
1416 |
--if (ANDROID) |
1417 |
--# we want to make sure that generally all components are found |
1418 |
-- |
1419 |
-- set(optionalComponents "OPTIONAL_COMPONENTS") |
1420 |
--endif() |
1421 |
-+# we want to make sure that generally all components are found |
1422 |
-+option(WITH_KWALLET "Build with desktop-wide storage for password support" ON) |
1423 |
-+option(WITH_KJS "Build with scripting support" ON) |
1424 |
- |
1425 |
- find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS |
1426 |
- Archive |
1427 |
-@@ -98,17 +95,15 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS |
1428 |
- TextWidgets |
1429 |
- ThreadWeaver |
1430 |
- WindowSystem |
1431 |
-- ${optionalComponents} |
1432 |
-+ OPTIONAL_COMPONENTS |
1433 |
- DocTools |
1434 |
-- JS |
1435 |
-- Wallet |
1436 |
- ) |
1437 |
- |
1438 |
--if(KF5Wallet_FOUND) |
1439 |
-- add_definitions(-DWITH_KWALLET=1) |
1440 |
-+if(WITH_KWALLET) |
1441 |
-+ find_package(KF5Wallet ${KF5_REQUIRED_VERSION} REQUIRED) |
1442 |
- endif() |
1443 |
--if(KF5JS_FOUND) |
1444 |
-- add_definitions(-DWITH_KJS=1) |
1445 |
-+if(WITH_KJS) |
1446 |
-+ find_package(KF5JS ${KF5_REQUIRED_VERSION} REQUIRED) |
1447 |
- endif() |
1448 |
- |
1449 |
- if(NOT WIN32 AND NOT ANDROID) |
1450 |
-diff --git a/config-okular.h.cmake b/config-okular.h.cmake |
1451 |
-index 905aac9cb..00e45f77c 100644 |
1452 |
---- a/config-okular.h.cmake |
1453 |
-+++ b/config-okular.h.cmake |
1454 |
-@@ -1,6 +1,12 @@ |
1455 |
- /* Defines if force the use DRM in okular */ |
1456 |
- #define OKULAR_FORCE_DRM ${_OKULAR_FORCE_DRM} |
1457 |
- |
1458 |
-+/* Defines if the KJS framework is available */ |
1459 |
-+#cmakedefine WITH_KJS |
1460 |
-+ |
1461 |
-+/* Defines if the kwallet framework is available */ |
1462 |
-+#cmakedefine WITH_KWALLET |
1463 |
-+ |
1464 |
- /* Defines if the purpose framework is available */ |
1465 |
- #define PURPOSE_FOUND ${PURPOSE_FOUND} |
1466 |
- |
1467 |
-diff --git a/core/generator.cpp b/core/generator.cpp |
1468 |
-index 051c2c922..f675ebcb3 100644 |
1469 |
---- a/core/generator.cpp |
1470 |
-+++ b/core/generator.cpp |
1471 |
-@@ -8,6 +8,7 @@ |
1472 |
- SPDX-License-Identifier: GPL-2.0-or-later |
1473 |
- */ |
1474 |
- |
1475 |
-+#include "config-okular.h" |
1476 |
- #include "generator.h" |
1477 |
- #include "generator_p.h" |
1478 |
- #include "observer.h" |
1479 |
-diff --git a/core/scripter.cpp b/core/scripter.cpp |
1480 |
-index c60645895..d5b640dbb 100644 |
1481 |
---- a/core/scripter.cpp |
1482 |
-+++ b/core/scripter.cpp |
1483 |
-@@ -4,6 +4,7 @@ |
1484 |
- SPDX-License-Identifier: GPL-2.0-or-later |
1485 |
- */ |
1486 |
- |
1487 |
-+#include "config-okular.h" |
1488 |
- #include "scripter.h" |
1489 |
- |
1490 |
- #include <QDebug> |
1491 |
--- |
1492 |
-2.33.0 |
1493 |
- |
1494 |
|
1495 |
diff --git a/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch b/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch |
1496 |
deleted file mode 100644 |
1497 |
index 74a1e9b3e6..0000000000 |
1498 |
--- a/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch |
1499 |
+++ /dev/null |
1500 |
@@ -1,111 +0,0 @@ |
1501 |
-From eb753a7eb0f49c6ac5b349f81387ca4b4c64342b Mon Sep 17 00:00:00 2001 |
1502 |
-From: Andreas Sturmlechner <asturm@g.o> |
1503 |
-Date: Mon, 12 Oct 2020 11:46:24 +0200 |
1504 |
-Subject: [PATCH] Make QtWebKit usage in WelcomePage optional, with |
1505 |
- QTextBrowser fallback |
1506 |
- |
1507 |
-Thanks-to: Ralf Habacker <ralf.habacker@×××××××.de> for QTextBrowser fallback code. |
1508 |
- |
1509 |
-Signed-off-by: Andreas Sturmlechner <asturm@g.o> |
1510 |
---- |
1511 |
- CMakeLists.txt | 7 ++++++- |
1512 |
- umbrello/CMakeLists.txt | 4 +++- |
1513 |
- umbrello/umlappprivate.h | 13 +++++++++++++ |
1514 |
- 3 files changed, 22 insertions(+), 2 deletions(-) |
1515 |
- |
1516 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
1517 |
-index 50b0bd163..8673740cc 100644 |
1518 |
---- a/CMakeLists.txt |
1519 |
-+++ b/CMakeLists.txt |
1520 |
-@@ -102,9 +102,14 @@ find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS |
1521 |
- Test |
1522 |
- Widgets |
1523 |
- Xml |
1524 |
-- WebKitWidgets |
1525 |
- ) |
1526 |
- |
1527 |
-+find_package(Qt5WebKitWidgets ${QT_MIN_VERSION}) |
1528 |
-+if(Qt5WebKitWidgets_FOUND) |
1529 |
-+ add_definitions(-DWEBKIT_WELCOMEPAGE) |
1530 |
-+ set(WEBKIT_WELCOMEPAGE 1) |
1531 |
-+endif() |
1532 |
-+ |
1533 |
- # search packages used by KDE |
1534 |
- find_package(KF5 REQUIRED COMPONENTS |
1535 |
- Archive |
1536 |
-diff --git a/umbrello/CMakeLists.txt b/umbrello/CMakeLists.txt |
1537 |
-index 4a2168542..fd5ef8fbf 100644 |
1538 |
---- a/umbrello/CMakeLists.txt |
1539 |
-+++ b/umbrello/CMakeLists.txt |
1540 |
-@@ -549,7 +549,6 @@ else() |
1541 |
- Qt5::Xml |
1542 |
- Qt5::PrintSupport |
1543 |
- Qt5::Svg |
1544 |
-- Qt5::WebKitWidgets |
1545 |
- KF5::Archive |
1546 |
- KF5::Completion |
1547 |
- KF5::CoreAddons |
1548 |
-@@ -565,6 +564,9 @@ else() |
1549 |
- ${LIBXML2_LIBRARIES} |
1550 |
- codeimport |
1551 |
- ) |
1552 |
-+ if(WEBKIT_WELCOMEPAGE) |
1553 |
-+ target_link_libraries(libumbrello Qt5::WebKitWidgets) |
1554 |
-+ endif() |
1555 |
- ecm_add_app_icon(umbrello_SRCS |
1556 |
- ICONS |
1557 |
- ${CMAKE_CURRENT_SOURCE_DIR}/pics/global/16-apps-umbrello.png |
1558 |
-diff --git a/umbrello/umlappprivate.h b/umbrello/umlappprivate.h |
1559 |
-index 0c832048d..ad425a37f 100644 |
1560 |
---- a/umbrello/umlappprivate.h |
1561 |
-+++ b/umbrello/umlappprivate.h |
1562 |
-@@ -37,7 +37,11 @@ |
1563 |
- #include <QFileInfo> |
1564 |
- #include <QListWidget> |
1565 |
- #include <QObject> |
1566 |
-+#ifdef WEBKIT_WELCOMEPAGE |
1567 |
- #include <QWebView> |
1568 |
-+#else |
1569 |
-+#include <QTextBrowser> |
1570 |
-+#endif |
1571 |
- |
1572 |
- class QWidget; |
1573 |
- |
1574 |
-@@ -155,6 +159,7 @@ public slots: |
1575 |
- // qDebug() << html; |
1576 |
- welcomeWindow = new QDockWidget(i18n("Welcome"), parent); |
1577 |
- welcomeWindow->setObjectName(QLatin1String("WelcomeDock")); |
1578 |
-+#ifdef WEBKIT_WELCOMEPAGE |
1579 |
- QWebView *view = new QWebView; |
1580 |
- view->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); |
1581 |
- view->setContextMenuPolicy(Qt::NoContextMenu); |
1582 |
-@@ -162,6 +167,14 @@ public slots: |
1583 |
- view->setHtml(html); |
1584 |
- view->show(); |
1585 |
- welcomeWindow->setWidget(view); |
1586 |
-+#else |
1587 |
-+ QTextBrowser *tb = new QTextBrowser(dynamic_cast<QWidget*>(this)); |
1588 |
-+ tb->setOpenExternalLinks(true); |
1589 |
-+ tb->setOpenLinks(false); |
1590 |
-+ tb->setHtml(html); |
1591 |
-+ connect(tb, SIGNAL(anchorClicked(const QUrl)), this, SLOT(slotWelcomeWindowLinkClicked(const QUrl))); |
1592 |
-+ welcomeWindow->setWidget(tb); |
1593 |
-+#endif |
1594 |
- parent->addDockWidget(Qt::RightDockWidgetArea, welcomeWindow); |
1595 |
- |
1596 |
- viewWelcomeWindow = parent->actionCollection()->add<KToggleAction>(QLatin1String("view_show_welcome")); |
1597 |
-diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt |
1598 |
-index 26bd4b870..9dadb484a 100644 |
1599 |
---- a/unittests/CMakeLists.txt |
1600 |
-+++ b/unittests/CMakeLists.txt |
1601 |
-@@ -59,7 +59,6 @@ else() |
1602 |
- Qt5::Xml |
1603 |
- Qt5::Test |
1604 |
- Qt5::Widgets |
1605 |
-- Qt5::WebKitWidgets |
1606 |
- KF5::I18n |
1607 |
- KF5::Crash |
1608 |
- ${LIBXML2_LIBRARIES} |
1609 |
--- |
1610 |
-2.29.2 |
1611 |
- |