summarylogtreecommitdiffstats
path: root/olive-0.1.2-QWheelEvent.patch
diff options
context:
space:
mode:
authorTércio Martins2020-06-24 02:48:27 -0300
committerTércio Martins2020-06-24 02:48:27 -0300
commit37b862fc4dfa545e98e29163123cb67a69607cbb (patch)
tree379679b18ea2fa374fbe5b11d3789f5c377daf3e /olive-0.1.2-QWheelEvent.patch
parentbff3fda825f57ccc7adf4e64915dcd79d774363a (diff)
downloadaur-37b862fc4dfa545e98e29163123cb67a69607cbb.tar.gz
Compilation issue resolved, error messages during build treated, updated metadata files.
Diffstat (limited to 'olive-0.1.2-QWheelEvent.patch')
-rw-r--r--olive-0.1.2-QWheelEvent.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/olive-0.1.2-QWheelEvent.patch b/olive-0.1.2-QWheelEvent.patch
new file mode 100644
index 000000000000..ed3ade1a8213
--- /dev/null
+++ b/olive-0.1.2-QWheelEvent.patch
@@ -0,0 +1,25 @@
+Description: Qt (QFontMetrics): This patch changes the references of the function "pos" (deprecated) to "position".
+
+<https://doc.qt.io/qt-5.15/qwheelevent-obsolete.html#pos>
+
+diff --unified --recursive --text olive-0.1.2-orig/ui/graphview.cpp olive-0.1.2-new/ui/graphview.cpp
+--- olive-0.1.2-orig/ui/graphview.cpp 2019-11-11 03:05:02.000000000 -0300
++++ olive-0.1.2-new/ui/graphview.cpp 2020-06-23 17:55:37.852888364 -0300
+@@ -795,7 +795,7 @@
+ new_y_zoom = y_zoom + (zoom_diff * (delta_v / 120.0));
+
+ // Center zoom around the mouse cursor vertically
+- int true_mouse_y = height()-event->pos().y();
++ int true_mouse_y = height()-event->position().y();
+ set_scroll_y(qRound((double(y_scroll + true_mouse_y) / y_zoom) * new_y_zoom) - true_mouse_y);
+
+ redraw = true;
+@@ -807,7 +807,7 @@
+ new_x_zoom = x_zoom + (zoom_diff * (delta_h / 120.0));
+
+ // Center zoom around the mouse cursor horizontally
+- set_scroll_x(qRound((double(x_scroll + event->pos().x()) / x_zoom) * new_x_zoom) - event->pos().x());
++ set_scroll_x(qRound((double(x_scroll + event->position().x()) / x_zoom) * new_x_zoom) - event->position().x());
+
+ redraw = true;
+ }