Hello community, here is the log from the commit of package kmahjongg for openSUSE:Factory checked in at 2015-01-21 22:10:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kmahjongg (Old) and /work/SRC/openSUSE:Factory/.kmahjongg.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kmahjongg" Changes: -------- --- /work/SRC/openSUSE:Factory/kmahjongg/kmahjongg.changes 2015-01-08 23:17:48.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.kmahjongg.new/kmahjongg.changes 2015-01-21 22:10:55.000000000 +0100 @@ -1,0 +2,7 @@ +Mon Jan 12 20:00:01 UTC 2015 - [email protected] + +- Update to KDE Applications 14.12.1 + * KDE Applications 14.12.1 + * See https://www.kde.org/announcements/announce-applications-14.12.1.php + +------------------------------------------------------------------- Old: ---- kmahjongg-14.12.0.tar.xz New: ---- kmahjongg-14.12.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kmahjongg.spec ++++++ --- /var/tmp/diff_new_pack.VOFJF3/_old 2015-01-21 22:10:56.000000000 +0100 +++ /var/tmp/diff_new_pack.VOFJF3/_new 2015-01-21 22:10:56.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package kmahjongg # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ License: GPL-2.0+ Group: Amusements/Games/Board/Puzzle Url: http://www.kde.org -Version: 14.12.0 +Version: 14.12.1 Release: 0 Source0: kmahjongg-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ kmahjongg-14.12.0.tar.xz -> kmahjongg-14.12.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-14.12.0/boardwidget.cpp new/kmahjongg-14.12.1/boardwidget.cpp --- old/kmahjongg-14.12.0/boardwidget.cpp 2014-10-14 06:57:00.000000000 +0200 +++ new/kmahjongg-14.12.1/boardwidget.cpp 2014-12-23 16:57:38.000000000 +0100 @@ -244,7 +244,7 @@ thissprite->moveTo(sx, sy); } - if (thissprite) { + if (thissprite && !gamePaused) { thissprite->show(); } } @@ -304,7 +304,7 @@ thissprite->moveTo(sx, sy); } - if (thissprite) { + if (thissprite && !gamePaused) { thissprite->show(); } } @@ -361,7 +361,7 @@ thissprite->moveTo(sx, sy); } - if (thissprite) { + if (thissprite && !gamePaused) { thissprite->show(); } } @@ -412,7 +412,7 @@ thissprite->moveTo(sx, sy); } - if (thissprite) { + if (thissprite && !gamePaused) { thissprite->show(); } } @@ -448,7 +448,11 @@ void BoardWidget::pause() { gamePaused = !gamePaused; - drawBoard(!gamePaused); + QListIterator<KGameCanvasItem*> i(m_items); + while (i.hasNext()) + { + i.next()->setVisible(!gamePaused); + } } void BoardWidget::gameLoaded() @@ -789,13 +793,9 @@ } } -void BoardWidget::drawBoard(bool showTiles) +void BoardWidget::drawBoard(bool createTiles) { - if (gamePaused) { - showTiles = false; - } - - if (showTiles) { + if (createTiles) { populateSpriteMap(); drawTileNumber(); } else { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-14.12.0/boardwidget.h new/kmahjongg-14.12.1/boardwidget.h --- old/kmahjongg-14.12.0/boardwidget.h 2014-10-14 06:57:00.000000000 +0200 +++ new/kmahjongg-14.12.1/boardwidget.h 2014-12-23 16:57:38.000000000 +0100 @@ -212,7 +212,7 @@ /** * Slot Description */ - void drawBoard(bool showTiles = true); + void drawBoard(bool createTiles = true); /** * Slot Description */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-14.12.0/kmahjongg.cpp new/kmahjongg-14.12.1/kmahjongg.cpp --- old/kmahjongg-14.12.0/kmahjongg.cpp 2014-10-14 06:57:00.000000000 +0200 +++ new/kmahjongg-14.12.1/kmahjongg.cpp 2014-12-23 16:57:38.000000000 +0100 @@ -339,10 +339,11 @@ void KMahjongg::changeEvent(QEvent *event) { if (event->type() == QEvent::WindowStateChange) { - QWindowStateChangeEvent *stateEvent = (QWindowStateChangeEvent *) event; + const QWindowStateChangeEvent *stateEvent = (QWindowStateChangeEvent *) event; + const Qt::WindowStates oldMinimizedState = stateEvent->oldState() & Qt::WindowMinimized; - if ((isMinimized() && stateEvent->oldState() != Qt::WindowMinimized) - || (!isMinimized() && stateEvent->oldState() == Qt::WindowMinimized)) { + if ((isMinimized() && oldMinimizedState != Qt::WindowMinimized) + || (!isMinimized() && oldMinimizedState == Qt::WindowMinimized)) { pause(); } } -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
