Skip to content

Commit 76b4225

Browse files
committed
set QT_VERSION_CHECK to under 6.10.0 for invalidateFilter()
1 parent 88008a2 commit 76b4225

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/LevelViewList.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ bool LevelListProxy::getInstalled(const QModelIndex &i) const {
195195
}
196196

197197
void LevelListProxy::setClassFilter(const QString &c) {
198-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
198+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
199199
#else
200200
beginFilterChange();
201201
#endif
@@ -204,15 +204,15 @@ void LevelListProxy::setClassFilter(const QString &c) {
204204
} else {
205205
m_class = StaticData::getClassID().at(c);
206206
}
207-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
207+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
208208
invalidateFilter();
209209
#else
210210
endFilterChange();
211211
#endif
212212
}
213213

214214
void LevelListProxy::setTypeFilter(const QString &t) {
215-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
215+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
216216
#else
217217
beginFilterChange();
218218
#endif
@@ -221,15 +221,15 @@ void LevelListProxy::setTypeFilter(const QString &t) {
221221
} else {
222222
m_type = StaticData::getTypeID().at(t);
223223
}
224-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
224+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
225225
invalidateFilter();
226226
#else
227227
endFilterChange();
228228
#endif
229229
}
230230

231231
void LevelListProxy::setDifficultyFilter(const QString &d) {
232-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
232+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
233233
#else
234234
beginFilterChange();
235235
#endif
@@ -238,15 +238,15 @@ void LevelListProxy::setDifficultyFilter(const QString &d) {
238238
} else {
239239
m_difficulty = StaticData::getDifficultyID().at(d);
240240
}
241-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
241+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
242242
invalidateFilter();
243243
#else
244244
endFilterChange();
245245
#endif
246246
}
247247

248248
void LevelListProxy::setDurationFilter(const QString &d) {
249-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
249+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
250250
#else
251251
beginFilterChange();
252252
#endif
@@ -255,28 +255,28 @@ void LevelListProxy::setDurationFilter(const QString &d) {
255255
} else {
256256
m_duration = StaticData::getDurationID().at(d);
257257
}
258-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
258+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
259259
invalidateFilter();
260260
#else
261261
endFilterChange();
262262
#endif
263263
}
264264

265265
void LevelListProxy::setSearchFilter(const QString &s) {
266-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
266+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
267267
#else
268268
beginFilterChange();
269269
#endif
270270
m_search = s;
271-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
271+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
272272
invalidateFilter();
273273
#else
274274
endFilterChange();
275275
#endif
276276
}
277277

278278
void LevelListProxy::setSearchType(const QString &t) {
279-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
279+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
280280
#else
281281
beginFilterChange();
282282
#endif
@@ -285,20 +285,20 @@ void LevelListProxy::setSearchType(const QString &t) {
285285
} else if (t == "Author") {
286286
m_searchType = 1;
287287
}
288-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
288+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
289289
invalidateFilter();
290290
#else
291291
endFilterChange();
292292
#endif
293293
}
294294

295295
void LevelListProxy::setInstalledFilter(bool on) {
296-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
296+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
297297
#else
298298
beginFilterChange();
299299
#endif
300300
m_installed = on;
301-
#if QT_VERSION <= QT_VERSION_CHECK(6, 4, 2)
301+
#if QT_VERSION < QT_VERSION_CHECK(6, 10, 0)
302302
invalidateFilter();
303303
#else
304304
endFilterChange();

0 commit comments

Comments
 (0)