Fix cast which becomes a warning in C++20.

This commit is contained in:
Andre Rummler
2026-09-28 23:00:58 +02:00
parent bc5ef180b6
commit 7facb1cbf8
@@ -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<double>(delta) / static_cast<int>(QWheelEvent::DefaultDeltasPerStep));
}
return delta;
}