From 7facb1cbf8619e2ca3c46fc145acc0684c0a93c3 Mon Sep 17 00:00:00 2001 From: Andre Rummler Date: Mon, 28 Sep 2026 23:00:58 +0200 Subject: [PATCH] Fix cast which becomes a warning in C++20. --- sources/materiallist/materialselectiondialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/materiallist/materialselectiondialog.cpp b/sources/materiallist/materialselectiondialog.cpp index d7265de7e..ba1aabfb5 100644 --- a/sources/materiallist/materialselectiondialog.cpp +++ b/sources/materiallist/materialselectiondialog.cpp @@ -373,7 +373,7 @@ bool MaterialSelectionDialog::eventFilter(QObject *watched, QEvent *event) static int wheelAmount(int delta, bool counting_items) { if (counting_items) { - return 3 * qRound(double(delta) / QWheelEvent::DefaultDeltasPerStep); + return 3 * qRound(static_cast(delta) / static_cast(QWheelEvent::DefaultDeltasPerStep)); } return delta; }