@@ -2919,8 +2919,17 @@ class MockActivityFilterProxyModel : public QSortFilterProxyModel
29192919 void setSearchText (const QString& search_text)
29202920 {
29212921 if (m_search_text == search_text) return ;
2922+
2923+ #if QT_VERSION >= QT_VERSION_CHECK(6, 10, 0)
2924+ beginFilterChange ();
2925+ #endif
29222926 m_search_text = search_text;
2927+
2928+ #if QT_VERSION >= QT_VERSION_CHECK(6, 10, 0)
2929+ endFilterChange (QSortFilterProxyModel::Direction::Rows);
2930+ #else
29232931 invalidateFilter ();
2932+ #endif
29242933 Q_EMIT searchTextChanged ();
29252934 Q_EMIT countChanged ();
29262935 }
@@ -2929,8 +2938,17 @@ class MockActivityFilterProxyModel : public QSortFilterProxyModel
29292938 void setDateFilter (DateFilter date_filter)
29302939 {
29312940 if (m_date_filter == date_filter) return ;
2941+
2942+ #if QT_VERSION >= QT_VERSION_CHECK(6, 10, 0)
2943+ beginFilterChange ();
2944+ #endif
29322945 m_date_filter = date_filter;
2946+
2947+ #if QT_VERSION >= QT_VERSION_CHECK(6, 10, 0)
2948+ endFilterChange (QSortFilterProxyModel::Direction::Rows);
2949+ #else
29332950 invalidateFilter ();
2951+ #endif
29342952 Q_EMIT dateFilterChanged ();
29352953 Q_EMIT countChanged ();
29362954 }
@@ -2939,8 +2957,17 @@ class MockActivityFilterProxyModel : public QSortFilterProxyModel
29392957 void setTypeFilter (TypeFilter type_filter)
29402958 {
29412959 if (m_type_filter == type_filter) return ;
2960+
2961+ #if QT_VERSION >= QT_VERSION_CHECK(6, 10, 0)
2962+ beginFilterChange ();
2963+ #endif
29422964 m_type_filter = type_filter;
2965+
2966+ #if QT_VERSION >= QT_VERSION_CHECK(6, 10, 0)
2967+ endFilterChange (QSortFilterProxyModel::Direction::Rows);
2968+ #else
29432969 invalidateFilter ();
2970+ #endif
29442971 Q_EMIT typeFilterChanged ();
29452972 Q_EMIT countChanged ();
29462973 }
0 commit comments