Hello community,
here is the log from the commit of package libyui-qt-graph for openSUSE:Factory
checked in at 2019-09-23 13:16:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-qt-graph (Old)
and /work/SRC/openSUSE:Factory/.libyui-qt-graph.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libyui-qt-graph"
Mon Sep 23 13:16:14 2019 rev:24 rq:731511 version:2.45.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-qt-graph/libyui-qt-graph.changes
2019-06-28 16:34:53.782690008 +0200
+++
/work/SRC/openSUSE:Factory/.libyui-qt-graph.new.7948/libyui-qt-graph.changes
2019-09-23 13:16:15.697117402 +0200
@@ -1,0 +2,6 @@
+Thu Sep 12 14:29:09 UTC 2019 - Martin Vidner <[email protected]>
+
+- Make scroll-up mean zoom-in (bsc#1149158)
+- 2.45.3
+
+-------------------------------------------------------------------
Old:
----
libyui-qt-graph-2.45.2.tar.bz2
New:
----
libyui-qt-graph-2.45.3.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libyui-qt-graph-doc.spec ++++++
--- /var/tmp/diff_new_pack.YfeDmW/_old 2019-09-23 13:16:16.245117303 +0200
+++ /var/tmp/diff_new_pack.YfeDmW/_new 2019-09-23 13:16:16.249117303 +0200
@@ -20,7 +20,7 @@
%define so_version 10
Name: %{parent}-doc
-Version: 2.45.2
+Version: 2.45.3
Release: 0
Source: %{parent}-%{version}.tar.bz2
++++++ libyui-qt-graph.spec ++++++
--- /var/tmp/diff_new_pack.YfeDmW/_old 2019-09-23 13:16:16.265117300 +0200
+++ /var/tmp/diff_new_pack.YfeDmW/_new 2019-09-23 13:16:16.265117300 +0200
@@ -17,7 +17,7 @@
Name: libyui-qt-graph
-Version: 2.45.2
+Version: 2.45.3
Release: 0
Source: %{name}-%{version}.tar.bz2
++++++ libyui-qt-graph-2.45.2.tar.bz2 -> libyui-qt-graph-2.45.3.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-qt-graph-2.45.2/VERSION.cmake
new/libyui-qt-graph-2.45.3/VERSION.cmake
--- old/libyui-qt-graph-2.45.2/VERSION.cmake 2019-05-07 14:17:25.000000000
+0200
+++ new/libyui-qt-graph-2.45.3/VERSION.cmake 2019-09-17 13:26:22.000000000
+0200
@@ -1,6 +1,6 @@
SET(VERSION_MAJOR "2")
SET(VERSION_MINOR "45")
-SET(VERSION_PATCH "2")
+SET(VERSION_PATCH "3")
SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
##### This is need for the libyui core, ONLY.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libyui-qt-graph-2.45.2/package/libyui-qt-graph-doc.spec
new/libyui-qt-graph-2.45.3/package/libyui-qt-graph-doc.spec
--- old/libyui-qt-graph-2.45.2/package/libyui-qt-graph-doc.spec 2019-05-07
14:17:25.000000000 +0200
+++ new/libyui-qt-graph-2.45.3/package/libyui-qt-graph-doc.spec 2019-09-17
13:26:22.000000000 +0200
@@ -20,7 +20,7 @@
%define so_version 10
Name: %{parent}-doc
-Version: 2.45.2
+Version: 2.45.3
Release: 0
Source: %{parent}-%{version}.tar.bz2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libyui-qt-graph-2.45.2/package/libyui-qt-graph.changes
new/libyui-qt-graph-2.45.3/package/libyui-qt-graph.changes
--- old/libyui-qt-graph-2.45.2/package/libyui-qt-graph.changes 2019-05-07
14:17:25.000000000 +0200
+++ new/libyui-qt-graph-2.45.3/package/libyui-qt-graph.changes 2019-09-17
13:26:22.000000000 +0200
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Sep 12 14:29:09 UTC 2019 - Martin Vidner <[email protected]>
+
+- Make scroll-up mean zoom-in (bsc#1149158)
+- 2.45.3
+
+-------------------------------------------------------------------
Tue May 7 12:02:03 UTC 2019 - Stefan Hundhammer <[email protected]>
- Fixed empty labels in graph elements (bsc#1130502):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-qt-graph-2.45.2/package/libyui-qt-graph.spec
new/libyui-qt-graph-2.45.3/package/libyui-qt-graph.spec
--- old/libyui-qt-graph-2.45.2/package/libyui-qt-graph.spec 2019-05-07
14:17:25.000000000 +0200
+++ new/libyui-qt-graph-2.45.3/package/libyui-qt-graph.spec 2019-09-17
13:26:22.000000000 +0200
@@ -17,7 +17,7 @@
Name: libyui-qt-graph
-Version: 2.45.2
+Version: 2.45.3
Release: 0
Source: %{name}-%{version}.tar.bz2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-qt-graph-2.45.2/src/QY2Graph.cc
new/libyui-qt-graph-2.45.3/src/QY2Graph.cc
--- old/libyui-qt-graph-2.45.2/src/QY2Graph.cc 2019-05-07 14:17:25.000000000
+0200
+++ new/libyui-qt-graph-2.45.3/src/QY2Graph.cc 2019-09-17 13:26:22.000000000
+0200
@@ -95,15 +95,21 @@
void
QY2Graph::wheelEvent(QWheelEvent* event)
{
- scaleView(pow(2.0, -event->delta() / 240.0));
+ // 1 step of a typical mouse wheel results in a delta of +-120
+ // so we scale the view 1.41 or 0.71
+ // Scrolling up means zooming in.
+ scaleView(pow(2.0, event->delta() / 240.0));
}
+// scaleFactor should be near 1.0 so that changes are not too abrupt
void
QY2Graph::scaleView(qreal scaleFactor)
{
+ // the *current* scale
qreal f = sqrt(matrix().determinant());
+ // clamp scaleFactor so that the *new* scale will lie between 0.1, 8.0
if (scaleFactor * f > 8.0)
scaleFactor = 8.0 / f;
if (scaleFactor * f < 0.1)