Hello community, here is the log from the commit of package kbreakout for openSUSE:Factory checked in at 2016-05-29 03:09:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kbreakout (Old) and /work/SRC/openSUSE:Factory/.kbreakout.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kbreakout" Changes: -------- --- /work/SRC/openSUSE:Factory/kbreakout/kbreakout.changes 2016-03-29 09:57:42.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kbreakout.new/kbreakout.changes 2016-05-29 03:09:42.000000000 +0200 @@ -1,0 +2,24 @@ +Sat May 7 10:19:02 UTC 2016 - tittiatc...@gmail.com + +- Update to KDE Applications 16.04.1 + * KDE Applications 16.04.1 + * https://www.kde.org/announcements/announce-applications-16.04.1.php + + +------------------------------------------------------------------- +Sun Apr 17 05:57:41 UTC 2016 - tittiatc...@gmail.com + +- Update to KDE Applications 16.04.0 + * KDE Applications 16.04.0 + * https://www.kde.org/announcements/announce-applications-16.04.0.php + + +------------------------------------------------------------------- +Mon Apr 11 06:35:04 UTC 2016 - tittiatc...@gmail.com + +- Update to KDE Applications 16.03.90 + * KDE Applications 16.04.0 RC + * https://www.kde.org/announcements/announce-applications-16.04-rc.php + + +------------------------------------------------------------------- Old: ---- kbreakout-15.12.3.tar.xz New: ---- kbreakout-16.04.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kbreakout.spec ++++++ --- /var/tmp/diff_new_pack.GlPhR6/_old 2016-05-29 03:09:43.000000000 +0200 +++ /var/tmp/diff_new_pack.GlPhR6/_new 2016-05-29 03:09:43.000000000 +0200 @@ -45,7 +45,7 @@ License: GPL-2.0+ Group: Amusements/Games/Action/Breakout Url: http://www.kde.org -Version: 15.12.3 +Version: 16.04.1 Release: 0 Source0: kbreakout-%{version}.tar.xz Obsoletes: %{name}5 < %{version} ++++++ kbreakout-15.12.3.tar.xz -> kbreakout-16.04.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/CMakeLists.txt new/kbreakout-16.04.1/CMakeLists.txt --- old/kbreakout-15.12.3/CMakeLists.txt 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/CMakeLists.txt 2016-04-22 14:50:26.000000000 +0200 @@ -2,14 +2,16 @@ cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR) set (QT_MIN_VERSION "5.3.0") +set (KF5_MIN_VERSION "5.15.0") find_package(ECM 1.7.0 REQUIRED CONFIG) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets) -find_package(KF5 REQUIRED COMPONENTS +find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Config + Crash WidgetsAddons Config DBusAddons @@ -28,13 +30,20 @@ include(KDECMakeSettings) include(ECMAddAppIcon) -add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) -add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII") +add_definitions( + -DQT_USE_FAST_CONCATENATION + -DQT_USE_FAST_OPERATOR_PLUS + -DQT_NO_CAST_FROM_ASCII + -DQT_NO_CAST_TO_ASCII + -DQT_NO_CAST_FROM_BYTEARRAY + -DQT_NO_URL_CAST_FROM_STRING + -DQT_USE_QSTRINGBUILDER +) -add_subdirectory( src ) -add_subdirectory( pics ) -add_subdirectory( themes ) -add_subdirectory( levelsets ) +add_subdirectory(src) +add_subdirectory(pics) +add_subdirectory(themes) +add_subdirectory(levelsets) add_subdirectory(doc) -install( PROGRAMS org.kde.kbreakout.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) +install(PROGRAMS org.kde.kbreakout.desktop DESTINATION ${KDE_INSTALL_APPDIR}) feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/levelsets/CMakeLists.txt new/kbreakout-16.04.1/levelsets/CMakeLists.txt --- old/kbreakout-15.12.3/levelsets/CMakeLists.txt 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/levelsets/CMakeLists.txt 2016-04-22 14:50:26.000000000 +0200 @@ -1 +1,2 @@ -install( FILES default.levelset DESTINATION ${KDE_INSTALL_DATADIR}/kbreakout/levelsets ) \ No newline at end of file +install( FILES default.levelset DESTINATION ${KDE_INSTALL_DATADIR}/kbreakout/levelsets ) + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/CMakeLists.txt new/kbreakout-16.04.1/src/CMakeLists.txt --- old/kbreakout-15.12.3/src/CMakeLists.txt 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/CMakeLists.txt 2016-04-22 14:50:26.000000000 +0200 @@ -1,4 +1,4 @@ -include_directories( ${CMAKE_SOURCE_DIR}/libKF5KDEGames ) +include_directories(${CMAKE_SOURCE_DIR}/libKF5KDEGames) set(kbreakout_SRCS main.cpp @@ -18,7 +18,14 @@ add_executable(kbreakout ${kbreakout_SRCS}) -target_link_libraries(kbreakout KF5KDEGames KF5KDEGamesPrivate Qt5::Xml KF5::DBusAddons KF5::XmlGui) +target_link_libraries(kbreakout + KF5KDEGames + KF5KDEGamesPrivate + Qt5::Xml + KF5::DBusAddons + KF5::XmlGui + KF5::Crash +) install(TARGETS kbreakout ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) install(FILES kbreakoutui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kbreakout) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/canvaswidget.cpp new/kbreakout-16.04.1/src/canvaswidget.cpp --- old/kbreakout-15.12.3/src/canvaswidget.cpp 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/canvaswidget.cpp 2016-04-22 14:50:26.000000000 +0200 @@ -21,7 +21,6 @@ #include <QGraphicsObject> #include <QAction> -#include <QKeyEvent> #include <QCursor> #include <QStandardPaths> #include <QQuickItem> @@ -148,60 +147,6 @@ cursor().setPos(p.x(), cursor().pos().y()); } -void CanvasWidget::keyPressEvent(QKeyEvent *event) -{ - if (event->isAutoRepeat()) { - QQuickWidget::keyPressEvent(event); - return; - } - int key = event->key(); - switch (key) { - case Qt::Key_Right: - m_rightPressed = true; - m_barDirection = 1; - break; - case Qt::Key_Left: - m_leftPressed = true; - m_barDirection = -1; - break; - default: - QQuickWidget::keyPressEvent(event); - return; - } - - updateBarDirection(); -} - -void CanvasWidget::keyReleaseEvent(QKeyEvent *event) -{ - if (event->isAutoRepeat()) { - QQuickWidget::keyReleaseEvent(event); - return; - } - int key = event->key(); - switch (key) { - case Qt::Key_Right: - m_rightPressed = false; - break; - case Qt::Key_Left: - m_leftPressed = false; - break; - default: - QQuickWidget::keyReleaseEvent(event); - return; - } - - if (!m_rightPressed && !m_leftPressed) { - m_barDirection = 0; - } else if (m_rightPressed && !m_leftPressed) { - m_barDirection = 1; - } else if (!m_rightPressed && m_leftPressed) { - m_barDirection = -1; - } - - updateBarDirection(); -} - void CanvasWidget::focusOutEvent(QFocusEvent *event) { emit focusLost(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/canvaswidget.h new/kbreakout-16.04.1/src/canvaswidget.h --- old/kbreakout-15.12.3/src/canvaswidget.h 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/canvaswidget.h 2016-04-22 14:50:26.000000000 +0200 @@ -24,7 +24,7 @@ { Q_OBJECT public: - CanvasWidget(QWidget *parent = 0); + explicit CanvasWidget(QWidget *parent = 0); virtual ~CanvasWidget(); KgThemeProvider *getProvider() { @@ -55,8 +55,6 @@ void resetMousePosition(); protected: - void keyPressEvent(QKeyEvent *event); - void keyReleaseEvent(QKeyEvent *event); void focusOutEvent(QFocusEvent *event); void resizeEvent(QResizeEvent *event); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/gameengine.h new/kbreakout-16.04.1/src/gameengine.h --- old/kbreakout-15.12.3/src/gameengine.h 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/gameengine.h 2016-04-22 14:50:26.000000000 +0200 @@ -26,7 +26,7 @@ { Q_OBJECT public: - GameEngine(QObject *parent = 0); + explicit GameEngine(QObject *parent = 0); ~GameEngine(); public slots: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/kbreakout.kcfg new/kbreakout-16.04.1/src/kbreakout.kcfg --- old/kbreakout-15.12.3/src/kbreakout.kcfg 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/kbreakout.kcfg 2016-04-22 14:50:26.000000000 +0200 @@ -2,7 +2,7 @@ <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 - http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > + http://www.kde.org/standards/kcfg/1.0/kcfg.xsd"> <kcfgfile name="kbreakoutrc"/> <group name="General"> <entry name="FireOnClick" type="Bool"> @@ -10,6 +10,4 @@ <default>false</default> </entry> </group> - <group name="Preferences"> - </group> </kcfg> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/levelloader.cpp new/kbreakout-16.04.1/src/levelloader.cpp --- old/kbreakout-15.12.3/src/levelloader.cpp 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/levelloader.cpp 2016-04-22 14:50:26.000000000 +0200 @@ -156,7 +156,7 @@ // Load one gift type loadGift(info); } else { - qCritical() << "Invalid tag name " << info.tagName() << " has occured in level " + qCritical() << "Invalid tag name " << info.tagName() << " has occurred in level " << levelName << " in levelset " << m_levelname << endl; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/levelloader.h new/kbreakout-16.04.1/src/levelloader.h --- old/kbreakout-15.12.3/src/levelloader.h 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/levelloader.h 2016-04-22 14:50:26.000000000 +0200 @@ -27,7 +27,7 @@ { Q_OBJECT public: - LevelLoader(QObject *parent = 0); + explicit LevelLoader(QObject *parent = 0); ~LevelLoader(); int level() const; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/main.cpp new/kbreakout-16.04.1/src/main.cpp --- old/kbreakout-15.12.3/src/main.cpp 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/main.cpp 2016-04-22 14:50:26.000000000 +0200 @@ -16,6 +16,7 @@ */ #include <KAboutData> +#include <KCrash> #include <QApplication> #include <KLocalizedString> @@ -60,6 +61,7 @@ QCommandLineParser parser; KAboutData::setApplicationData(aboutData); + KCrash::initialize(); parser.addVersionOption(); parser.addHelpOption(); aboutData.setupCommandLine(&parser); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/mainwindow.h new/kbreakout-16.04.1/src/mainwindow.h --- old/kbreakout-15.12.3/src/mainwindow.h 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/mainwindow.h 2016-04-22 14:50:26.000000000 +0200 @@ -29,7 +29,7 @@ { Q_OBJECT public: - MainWindow(QWidget *parent = 0); + explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.12.3/src/qml/main.qml new/kbreakout-16.04.1/src/qml/main.qml --- old/kbreakout-15.12.3/src/qml/main.qml 2015-11-11 09:12:15.000000000 +0100 +++ new/kbreakout-16.04.1/src/qml/main.qml 2016-04-22 14:50:26.000000000 +0200 @@ -261,4 +261,23 @@ } onClicked: canvas.mousePressed() } + + Item { + id: keyEventHandler + focus: true + anchors.fill: parent + Keys.onPressed: { + if (event.key == Qt.Key_Right) { + updateBarDirection(1); + } else if (event.key == Qt.Key_Left) { + updateBarDirection(-1); + } + } + + Keys.onReleased: { + if (event.key == Qt.Key_Right || event.key == Qt.Key_Left) { + updateBarDirection(0); + } + } + } }