|
@@ -37,8 +37,10 @@ void DeleteListItem(QListWidget *widget, QListWidgetItem *item)
|
|
|
|
|
|
void ClearListItems(QListWidget *widget)
|
|
|
{
|
|
|
+#if QT_VERSION < QT_VERSION_CHECK(6, 4, 3)
|
|
|
// Workaround for the SceneTree workaround for QTBUG-105870
|
|
|
widget->setProperty("clearing", true);
|
|
|
+#endif
|
|
|
|
|
|
widget->setCurrentItem(nullptr, QItemSelectionModel::Clear);
|
|
|
|
|
@@ -46,5 +48,8 @@ void ClearListItems(QListWidget *widget)
|
|
|
delete widget->itemWidget(widget->item(i));
|
|
|
|
|
|
widget->clear();
|
|
|
+#if QT_VERSION < QT_VERSION_CHECK(6, 4, 3)
|
|
|
+ // Workaround for the SceneTree workaround for QTBUG-105870
|
|
|
widget->setProperty("clearing", false);
|
|
|
+#endif
|
|
|
}
|