summaryrefslogtreecommitdiff
path: root/user/kwave/lts.patch
blob: ccac6135940f8297a039f8017c3d31f5728444c3 (plain) (blame)
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
190
191
--- kwave-20.08.1/CMakeLists.txt.old	2020-09-01 06:22:40.000000000 +0000
+++ kwave-20.08.1/CMakeLists.txt	2020-09-17 15:44:17.136338019 +0000
@@ -87,7 +87,7 @@
 ENDIF (POLICY CMP0075)
 
 SET(ECM_MIN_VERSION "1.7.0")
-SET(QT_MIN_VERSION  "5.14.0")
+SET(QT_MIN_VERSION  "5.12.9")
 SET(KF5_MIN_VERSION "5.33.0")
 
 #############################################################################
--- kwave-20.08.1/libkwave/Filter.cpp.old	2020-08-31 18:36:59.000000000 +0000
+++ kwave-20.08.1/libkwave/Filter.cpp	2020-09-17 15:49:02.775161648 +0000
@@ -147,9 +147,9 @@
     file.open(QIODevice::WriteOnly);
     QTextStream out(&file);
 
-    out << ((m_fir) ? "FIR " : "IIR ") << count() << Qt::endl;
+    out << ((m_fir) ? "FIR " : "IIR ") << count() << endl;
     for (unsigned int i = 0; i < count(); i++) {
-	out << m_delay[i] << ' ' << m_coeff[i] << Qt::endl;
+	out << m_delay[i] << ' ' << m_coeff[i] << endl;
     }
 
     file.close();
--- kwave-20.08.1/libkwave/Logger.cpp.old	2020-08-31 18:36:59.000000000 +0000
+++ kwave-20.08.1/libkwave/Logger.cpp	2020-09-17 15:47:40.384154307 +0000
@@ -89,14 +89,14 @@
     QTextStream out(m_logfile);
     const KAboutData about_data = KAboutData::applicationData();
 
-    out << "#Version: 1.0" << Qt::endl;
-    out << "#Fields: x-status date time x-pid x-message" << Qt::endl;
+    out << "#Version: 1.0" << endl;
+    out << "#Fields: x-status date time x-pid x-message" << endl;
     out << "#Software: " << about_data.displayName() << " "
-    << about_data.version() << Qt::endl;
+    << about_data.version() << endl;
     QDateTime now = QDateTime::currentDateTime();
     out << "#Start-Date: "
         << now.toString(_("yyyy-MM-dd hh:mm:ss"))
-        << Qt::endl;
+        << endl;
 
     return true;
 }
@@ -135,7 +135,7 @@
 
 	out << "<" << x_status << "> " <<
 	now.toString(_("yyyy-MM-dd hh:mm:ss.zzz")) << " " <<
-	x_pid << " " << msg << Qt::endl;
+	x_pid << " " << msg << endl;
     }
 
     m_logfile->flush();
--- kwave-20.08.1/libkwave/CodecBase.cpp.old	2020-08-31 18:36:59.000000000 +0000
+++ kwave-20.08.1/libkwave/CodecBase.cpp	2020-09-17 15:48:28.188936600 +0000
@@ -51,7 +51,7 @@
     const QString type_name = _(name);
     if (type_name.contains(_(","))) {
         // list of mime types -> call recursively for each of them
-        QStringList types = type_name.split(_(","), Qt::SkipEmptyParts);
+        QStringList types = type_name.split(_(","), QString::SkipEmptyParts);
         foreach (const QString &mt, types) {
             addMimeType(mt.trimmed().toUtf8().data(), description, patterns);
         }
@@ -66,7 +66,7 @@
 // 	qWarning("mime type '%s' not registered, using built-in!", name);
 	type.name        = type_name;
 	type.description = description;
-	type.patterns    = _(patterns).split(_("; "), Qt::SkipEmptyParts);
+	type.patterns    = _(patterns).split(_("; "), QString::SkipEmptyParts);
     } else {
 	type.description = t.comment();
 	type.patterns    = t.globPatterns();
--- kwave-20.08.1/plugins/codec_mp3/MP3EncoderDialog.cpp.old	2020-08-31 18:36:59.000000000 +0000
+++ kwave-20.08.1/plugins/codec_mp3/MP3EncoderDialog.cpp	2020-09-17 15:55:34.602393880 +0000
@@ -720,7 +720,7 @@
     const QLatin1Char separator = QLatin1Char(':');
 #endif
     QStringList path =
-	_(qgetenv("PATH")).split(separator, Qt::SkipEmptyParts);
+	_(qgetenv("PATH")).split(separator, QString::SkipEmptyParts);
 
     QFileInfo f(program);
     QString d = f.path();
--- kwave-20.08.1/plugins/codec_ascii/AsciiEncoder.cpp.old	2020-08-31 18:36:59.000000000 +0000
+++ kwave-20.08.1/plugins/codec_ascii/AsciiEncoder.cpp	2020-09-17 15:51:18.470350596 +0000
@@ -100,10 +100,10 @@
 
 	// write out the default properties:
 	// sample rate, bits, tracks, length
-	m_dst << META_PREFIX << "'rate'="   << info.rate() << Qt::endl;
-	m_dst << META_PREFIX << "'tracks'=" << tracks << Qt::endl;
-	m_dst << META_PREFIX << "'bits'="   << bits   << Qt::endl;
-	m_dst << META_PREFIX << "'length'=" << length << Qt::endl;
+	m_dst << META_PREFIX << "'rate'="   << info.rate() << endl;
+	m_dst << META_PREFIX << "'tracks'=" << tracks << endl;
+	m_dst << META_PREFIX << "'bits'="   << bits   << endl;
+	m_dst << META_PREFIX << "'length'=" << length << endl;
 
 	// write out all other, non-standard properties that we have
 	QMap<Kwave::FileProperty, QVariant> properties = info.properties();
@@ -121,7 +121,7 @@
 	    // write the property
 	    m_dst << META_PREFIX << "'" << info.name(p) << "'='"
 	          << Kwave::Parser::escape(v.toString()).toUtf8()
-		  << "'" << Qt::endl;
+		  << "'" << endl;
 	}
 
 	// write out all labels
@@ -130,7 +130,7 @@
 	    m_dst << META_PREFIX << "'label["
 	    << QString::number(label.pos()) << "]'='"
 	    << Kwave::Parser::escape(label.name()).toUtf8()
-	    << "'" << Qt::endl;
+	    << "'" << endl;
 	}
 
 	sample_index_t rest = length;
@@ -162,13 +162,13 @@
 	    pos++;
 
 	    // end of line
-	    m_dst << Qt::endl;
+	    m_dst << endl;
 	}
 
     } while (false);
 
     // end of file
-    m_dst << "# EOF " << Qt::endl << Qt::endl;
+    m_dst << "# EOF " << endl << endl;
 
     m_dst.setDevice(Q_NULLPTR);
     dst.close();
--- kwave-20.08.1/plugins/record/RecordDialog.cpp.old	2020-08-31 18:36:59.000000000 +0000
+++ kwave-20.08.1/plugins/record/RecordDialog.cpp	2020-09-17 15:54:28.909564227 +0000
@@ -412,7 +412,7 @@
 	foreach (QString dev_id, devices) {
             QTreeWidgetItem *parent = Q_NULLPTR;
 
-	    QStringList list = dev_id.split(_("||"), Qt::KeepEmptyParts);
+	    QStringList list = dev_id.split(_("||"), QString::KeepEmptyParts);
 	    foreach (QString token, list) {
                 QTreeWidgetItem *item = Q_NULLPTR;
 
--- kwave-20.08.1/plugins/playback/PlayBackDialog.cpp.old	2020-08-31 18:36:59.000000000 +0000
+++ kwave-20.08.1/plugins/playback/PlayBackDialog.cpp	2020-09-17 15:54:58.066381771 +0000
@@ -303,7 +303,7 @@
 	foreach (const QString &dev_id, devices) {
             QTreeWidgetItem *parent = Q_NULLPTR;
 
-	    QStringList list = dev_id.split(_("||"), Qt::KeepEmptyParts);
+	    QStringList list = dev_id.split(_("||"), QString::KeepEmptyParts);
 	    foreach (const QString &t, list) {
 		QString token(t);
                 QTreeWidgetItem *item = Q_NULLPTR;
--- kwave-20.08.1/kwave/MainWidget.cpp.old	2020-08-31 18:36:59.000000000 +0000
+++ kwave-20.08.1/kwave/MainWidget.cpp	2020-09-17 15:53:26.496376603 +0000
@@ -304,8 +304,8 @@
 
     // process only wheel events on the signal and overview frame,
     // not on the channel controls or scrollbars
-    if (!m_scroll_area.geometry().contains(event->position().toPoint()) &&
-	!m_overview->geometry().contains(event->position().toPoint()) )
+    if (!m_scroll_area.geometry().contains(event->pos()) &&
+	!m_overview->geometry().contains(event->pos()) )
     {
 	event->ignore();
 	return;
@@ -331,8 +331,7 @@
 	    break;
 	case Qt::ControlModifier: {
 	    // <Ctrl> + <WheelUp/Down> => zoom in/out
-	    int x = qMax(m_signal_widget.mapToViewPort(
-		event->globalPosition().toPoint()), 0);
+	    int x = qMax(m_signal_widget.mapToViewPort(event->globalPos()), 0);
 	    if (event->angleDelta().ry() > 0)
 		executeCommand(_("view:zoom_in(%1)").arg(x));
 	    else if (event->angleDelta().ry() < 0)
@@ -1017,7 +1016,7 @@
 	const QString name = Kwave::Parser::escape(label.name());
 	out << _("label:add(") << pos;
 	if (name.length()) out << _(", ") << name;
-	out << _(")") << Qt::endl;
+	out << _(")") << endl;
     }
 
     file.close();