mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-29 05:44:14 +02:00
Fix cast which becomes a warning in C++20.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user