Hello community, here is the log from the commit of package kmag for openSUSE:Factory checked in at 2014-10-16 18:13:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kmag (Old) and /work/SRC/openSUSE:Factory/.kmag.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kmag" Changes: -------- --- /work/SRC/openSUSE:Factory/kmag/kmag.changes 2014-09-18 08:00:16.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kmag.new/kmag.changes 2014-10-16 18:14:18.000000000 +0200 @@ -1,0 +2,7 @@ +Sun Oct 12 12:15:30 UTC 2014 - [email protected] + +- Update to 4.14.2 + * KDE 4.14.2 SC Bugfix Release + * See http://www.kde.org/announcements/announce-4.14.2.php + +------------------------------------------------------------------- Old: ---- kmag-4.14.1.tar.xz New: ---- kmag-4.14.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kmag.spec ++++++ --- /var/tmp/diff_new_pack.9ITpiE/_old 2014-10-16 18:14:19.000000000 +0200 +++ /var/tmp/diff_new_pack.9ITpiE/_new 2014-10-16 18:14:19.000000000 +0200 @@ -26,7 +26,7 @@ License: GPL-2.0 Group: System/GUI/KDE Url: http://www.kde.org -Version: 4.14.1 +Version: 4.14.2 Release: 0 Source0: %{name}-%version.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ kmag-4.14.1.tar.xz -> kmag-4.14.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmag-4.14.1/kmagzoomview.cpp new/kmag-4.14.2/kmagzoomview.cpp --- old/kmag-4.14.1/kmagzoomview.cpp 2014-05-01 15:02:13.000000000 +0200 +++ new/kmag-4.14.2/kmagzoomview.cpp 2014-10-03 02:25:09.000000000 +0200 @@ -970,6 +970,29 @@ if (m_colormode != 0) m_coloredPixmap = QPixmap::fromImage(ColorSim::recolor(m_coloredPixmap.toImage(), m_colormode)); + // erase background covered by kmag view ... + QRect viewRect = rect(); + viewRect.translate(mapTo(window(), QPoint(0, 0))); + viewRect.translate(-selRect.topLeft()); + viewRect.translate(window()->geometry().topLeft()); + QRegion region(viewRect); + + // ... but exclude own popups ... + const QList<QWidget *> siblings = QApplication::topLevelWidgets(); + foreach (QWidget *sibling, siblings) { + if (sibling != window() && (sibling->windowType() & Qt::Window) && sibling->isVisible()) { + QRect rect = sibling->frameGeometry(); + rect.translate(-selRect.topLeft()); + region -= rect; + } + } + + QPainter p(&m_coloredPixmap); + foreach (const QRect &rect, region.rects()) { + p.fillRect(rect, palette().dark()); + } + p.end(); + QRect r = m_zoomMatrix.mapRect(m_coloredPixmap.rect()); // call repaint to display the newly grabbed image horizontalScrollBar()->setPageStep(r.width()); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
