Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package qpwgraph for openSUSE:Factory checked in at 2022-11-19 18:09:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/qpwgraph (Old) and /work/SRC/openSUSE:Factory/.qpwgraph.new.1597 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "qpwgraph" Sat Nov 19 18:09:42 2022 rev:13 rq:1036789 version:0.3.8 Changes: -------- --- /work/SRC/openSUSE:Factory/qpwgraph/qpwgraph.changes 2022-10-23 16:33:22.719296919 +0200 +++ /work/SRC/openSUSE:Factory/.qpwgraph.new.1597/qpwgraph.changes 2022-11-19 18:09:55.598643947 +0100 @@ -1,0 +2,6 @@ +Sat Nov 19 12:09:35 UTC 2022 - Alexei Sorokin <sor.ale...@meowr.ru> + +- Update to version 0.3.8: + * Allow middle mouse button for grabbing and dragging the canvas. + +------------------------------------------------------------------- Old: ---- qpwgraph-v0.3.7.tar.bz2 New: ---- qpwgraph-v0.3.8.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ qpwgraph.spec ++++++ --- /var/tmp/diff_new_pack.bbVZBB/_old 2022-11-19 18:09:56.018646321 +0100 +++ /var/tmp/diff_new_pack.bbVZBB/_new 2022-11-19 18:09:56.022646344 +0100 @@ -17,7 +17,7 @@ Name: qpwgraph -Version: 0.3.7 +Version: 0.3.8 Release: 0 Summary: PipeWire Graph Qt GUI Interface License: GPL-2.0-or-later ++++++ qpwgraph-v0.3.7.tar.bz2 -> qpwgraph-v0.3.8.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.7/CMakeLists.txt new/qpwgraph-v0.3.8/CMakeLists.txt --- old/qpwgraph-v0.3.7/CMakeLists.txt 2022-10-22 10:51:40.000000000 +0200 +++ new/qpwgraph-v0.3.8/CMakeLists.txt 2022-11-19 12:30:04.000000000 +0100 @@ -1,7 +1,7 @@ cmake_minimum_required (VERSION 3.15) project(qpwgraph - VERSION 0.3.7 + VERSION 0.3.8 DESCRIPTION "A PipeWire Graph Qt GUI Interface" HOMEPAGE_URL "https://gitlab.freedesktop.org/rncbc/qpwgraph" LANGUAGES C CXX) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.7/ChangeLog new/qpwgraph-v0.3.8/ChangeLog --- old/qpwgraph-v0.3.7/ChangeLog 2022-10-22 10:51:40.000000000 +0200 +++ new/qpwgraph-v0.3.8/ChangeLog 2022-11-19 12:30:04.000000000 +0100 @@ -2,6 +2,11 @@ -------------------------------------------- +0.3.8 2022-11-19 A mid-autumn'22 release. + +- Allow middle mouse button for grabbing and dragging the canvas. + + 0.3.7 2022-10-22 An autumn'22 release. - Fixed the system-tray icon tooltip to always reflect current diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.7/debian/changelog new/qpwgraph-v0.3.8/debian/changelog --- old/qpwgraph-v0.3.7/debian/changelog 2022-10-22 10:51:40.000000000 +0200 +++ new/qpwgraph-v0.3.8/debian/changelog 2022-11-19 12:30:04.000000000 +0100 @@ -1,3 +1,9 @@ +qpwgraph (0.3.8-20.1) unstable; urgency=low + + * A mid-autumn'22 release. + + -- Rui Nuno Capela <rn...@rncbc.org> Sat, 19 Nov 2022 12:00:00 +0000 + qpwgraph (0.3.7-19.1) unstable; urgency=low * An autumn'22 release. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.7/rpm/qpwgraph.spec new/qpwgraph-v0.3.8/rpm/qpwgraph.spec --- old/qpwgraph-v0.3.7/rpm/qpwgraph.spec 2022-10-22 10:51:40.000000000 +0200 +++ new/qpwgraph-v0.3.8/rpm/qpwgraph.spec 2022-11-19 12:30:04.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package qmidinet +# spec file for package qpwgraph # # Copyright (C) 2021-2022, rncbc aka Rui Nuno Capela. All rights reserved. # @@ -16,8 +16,8 @@ # %define name qpwgraph -%define version 0.3.7 -%define release 19.1 +%define version 0.3.8 +%define release 20.1 %define _prefix /usr @@ -54,35 +54,34 @@ BuildRequires: gcc8-c++ >= 8 %define CXX /usr/bin/g++-8 %endif -%if %{defined fedora} +BuildRequires: cmake >= 3.15 %if 0%{qt_major_version} == 6 -BuildRequires: qt6-qtbase-devel >= 6.1 -BuildRequires: qt6-qttools-devel -BuildRequires: qt6-qtwayland-devel -BuildRequires: qt6-qtsvg-devel -BuildRequires: qt6-linguist +%if 0%{?sle_version} == 150200 && 0%{?is_opensuse} +BuildRequires: qtbase6-static >= 6.1 +BuildRequires: qttools6-static +BuildRequires: qttranslations6-static +BuildRequires: qtsvg6-static %else -BuildRequires: qt5-qtbase-devel >= 5.1 -BuildRequires: qt5-qttools-devel -BuildRequires: qt5-qtwayland-devel -BuildRequires: qt5-qtsvg-devel -BuildRequires: qt5-linguist +BuildRequires: cmake(Qt6LinguistTools) +BuildRequires: pkgconfig(Qt6Core) +BuildRequires: pkgconfig(Qt6Gui) +BuildRequires: pkgconfig(Qt6Widgets) +BuildRequires: pkgconfig(Qt6Svg) +BuildRequires: pkgconfig(Qt6Xml) +BuildRequires: pkgconfig(Qt6Network) %endif -BuildRequires: alsa-lib-devel -%else -%if 0%{qt_major_version} == 6 -BuildRequires: qt6-base-devel >= 6.1 -BuildRequires: qt6-tools-devel -BuildRequires: qt6-wayland-devel -BuildRequires: qt6-svg-devel -BuildRequires: qt6-linguist-devel %else -BuildRequires: libqt5-qtbase-devel >= 5.1 -BuildRequires: libqt5-qttools-devel -BuildRequires: libqt5-qtwayland-devel -BuildRequires: libqt5-qtsvg-devel -BuildRequires: libqt5-linguist-devel +BuildRequires: cmake(Qt5LinguistTools) +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5Svg) +BuildRequires: pkgconfig(Qt5Xml) +BuildRequires: pkgconfig(Qt5Network) %endif +%if %{defined fedora} +BuildRequires: alsa-lib-devel +%else BuildRequires: alsa-devel %endif BuildRequires: pipewire-devel @@ -137,6 +136,8 @@ %changelog +* Sat Nov 19 2022 Rui Nuno Capela <rn...@rncbc.org> 0.3.8 +- A mid-autumn'22 release. * Sat Oct 22 2022 Rui Nuno Capela <rn...@rncbc.org> 0.3.7 - An autumn'22 release. * Sat Sep 24 2022 Rui Nuno Capela <rn...@rncbc.org> 0.3.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.7/src/appdata/org.rncbc.qpwgraph.metainfo.xml new/qpwgraph-v0.3.8/src/appdata/org.rncbc.qpwgraph.metainfo.xml --- old/qpwgraph-v0.3.7/src/appdata/org.rncbc.qpwgraph.metainfo.xml 2022-10-22 10:51:40.000000000 +0200 +++ new/qpwgraph-v0.3.8/src/appdata/org.rncbc.qpwgraph.metainfo.xml 2022-11-19 12:30:04.000000000 +0100 @@ -37,7 +37,7 @@ <developer_name>rncbc aka. Rui Nuno Capela</developer_name> <update_contact>rn...@rncbc.org</update_contact> <releases> - <release version="0.3.7" date="2022-10-22" urgency="low" /> + <release version="0.3.8" date="2022-11-19" urgency="low" /> </releases> <content_rating type="oars-1.0"/> </component> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.7/src/qpwgraph_canvas.cpp new/qpwgraph-v0.3.8/src/qpwgraph_canvas.cpp --- old/qpwgraph-v0.3.7/src/qpwgraph_canvas.cpp 2022-10-22 10:51:40.000000000 +0200 +++ new/qpwgraph-v0.3.8/src/qpwgraph_canvas.cpp 2022-11-19 12:30:04.000000000 +0100 @@ -34,6 +34,7 @@ #include <QGraphicsProxyWidget> #include <QLineEdit> +#include <QScrollBar> #include <QMouseEvent> #include <QWheelEvent> @@ -596,14 +597,16 @@ if (item && item->type() >= QGraphicsItem::UserType) m_item = static_cast<qpwgraph_item *> (item); - if (event->button() == Qt::LeftButton) + if (event->button() == Qt::LeftButton || + event->button() == Qt::MiddleButton) m_state = DragStart; if (m_state == DragStart && m_item == nullptr - && (event->modifiers() & Qt::ControlModifier) + && (((event->button() == Qt::LeftButton) + && (event->modifiers() & Qt::ControlModifier)) + || (event->button() == Qt::MiddleButton)) && m_scene->selectedItems().isEmpty()) { - QGraphicsView::setDragMode(QGraphicsView::ScrollHandDrag); - QGraphicsView::mousePressEvent(event); + QGraphicsView::setCursor(Qt::ClosedHandCursor); m_state = DragScroll; } } @@ -758,9 +761,16 @@ m_connect->setZValue(zval); } break; - case DragScroll: + case DragScroll: { + QScrollBar *hbar = QGraphicsView::horizontalScrollBar(); + QScrollBar *vbar = QGraphicsView::verticalScrollBar(); + const QPoint delta = (pos - m_pos).toPoint(); + hbar->setValue(hbar->value() - delta.x()); + vbar->setValue(vbar->value() - delta.y()); + m_pos = pos; + break; + } default: - QGraphicsView::mouseMoveEvent(event); break; } @@ -865,8 +875,6 @@ break; case DragScroll: default: - QGraphicsView::mouseReleaseEvent(event); - QGraphicsView::setDragMode(QGraphicsView::NoDrag); break; }