r24903 by jghali - Qt6: remove useless casts
scribus-commit
scribus-commit at lists.scribus.net
Fri Feb 4 22:40:47 UTC 2022
Author: jghali
Date: Fri Feb 4 22:40:47 2022
New Revision: 24903
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24903
Log:
Qt6: remove useless casts
Modified:
trunk/Scribus/scribus/navigator.cpp
Modified: trunk/Scribus/scribus/navigator.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24903&path=/trunk/Scribus/scribus/navigator.cpp
==============================================================================
--- trunk/Scribus/scribus/navigator.cpp (original)
+++ trunk/Scribus/scribus/navigator.cpp Fri Feb 4 22:40:47 2022
@@ -55,21 +55,21 @@
void Navigator::mouseMoveEvent(QMouseEvent *m)
{
drawMark(m->position().x(), m->position().y());
- emit Coords(static_cast<double>(m->position().x()) / static_cast<double>(pmx.width()),
- static_cast<double>(m->position().y()) / static_cast<double>(pmx.height()));
+ emit Coords(m->position().x() / static_cast<double>(pmx.width()),
+ m->position().y() / static_cast<double>(pmx.height()));
}
void Navigator::mousePressEvent(QMouseEvent *m)
{
drawMark(m->position().x(), m->position().y());
- emit Coords(static_cast<double>(m->position().x()) / static_cast<double>(pmx.width()),
- static_cast<double>(m->position().y()) / static_cast<double>(pmx.height()));
+ emit Coords(m->position().x() / static_cast<double>(pmx.width()),
+ m->position().y() / static_cast<double>(pmx.height()));
}
void Navigator::mouseReleaseEvent(QMouseEvent *m)
{
- emit Coords(static_cast<double>(m->position().x()) / static_cast<double>(pmx.width()),
- static_cast<double>(m->position().y()) / static_cast<double>(pmx.height()));
+ emit Coords(m->position().x() / static_cast<double>(pmx.width()),
+ m->position().y() / static_cast<double>(pmx.height()));
}
void Navigator::paintEvent(QPaintEvent *e)
More information about the scribus-commit
mailing list