Commit 9bdfdaf4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: time to increase qt version as kf5-5.77 will depend against it.

parent 3b5953fe
Pipeline #44647 skipped
......@@ -54,7 +54,7 @@ set(GRANTLEETHEME_LIB_VERSION "5.16.40")
set(KDEPIM_LIB_VERSION "${PIM_VERSION}")
set(KDEPIM_LIB_SOVERSION "5")
set(QT_REQUIRED_VERSION "5.13.0")
set(QT_REQUIRED_VERSION "5.14.0")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED DBus Gui Network Widgets)
set(CALENDARUTILS_LIB_VERSION "5.16.40")
......
......@@ -661,20 +661,12 @@ void SpinMirror::wheelEvent(QWheelEvent* e)
{
if (mReadOnly)
return;
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QPointF pt = e->posF();
#else
QPointF pt = e->position();
#endif
QGraphicsItem* item = scene()->itemAt(pt, QTransform());
if (item == mButtons)
{
pt = spinboxPoint(pt);
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QApplication::postEvent(mSpinbox, new QWheelEvent(pt, e->globalPosF(), e->pixelDelta(), e->angleDelta(), e->buttons(), e->modifiers(), e->phase(), e->inverted(), e->source()));
#else
QApplication::postEvent(mSpinbox, new QWheelEvent(pt, e->globalPosition(), e->pixelDelta(), e->angleDelta(), e->buttons(), e->modifiers(), e->phase(), e->inverted(), e->source()));
#endif
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment