Hello community, here is the log from the commit of package ksquares for openSUSE:Factory checked in at 2016-05-29 03:07:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ksquares (Old) and /work/SRC/openSUSE:Factory/.ksquares.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ksquares" Changes: -------- --- /work/SRC/openSUSE:Factory/ksquares/ksquares.changes 2016-03-29 10:37:30.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ksquares.new/ksquares.changes 2016-05-29 03:07:50.000000000 +0200 @@ -1,0 +2,24 @@ +Sat May 7 10:37:01 UTC 2016 - [email protected] + +- 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 06:13:02 UTC 2016 - [email protected] + +- 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:48:38 UTC 2016 - [email protected] + +- 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: ---- ksquares-15.12.3.tar.xz New: ---- ksquares-16.04.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ksquares.spec ++++++ --- /var/tmp/diff_new_pack.OugdK7/_old 2016-05-29 03:07:51.000000000 +0200 +++ /var/tmp/diff_new_pack.OugdK7/_new 2016-05-29 03:07:51.000000000 +0200 @@ -43,7 +43,7 @@ License: GPL-2.0+ Group: Amusements/Games/Action/Arcade Url: http://www.kde.org -Version: 15.12.3 +Version: 16.04.1 Release: 0 Source0: ksquares-%{version}.tar.xz Obsoletes: %{name}5 < %{version} ++++++ ksquares-15.12.3.tar.xz -> ksquares-16.04.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ksquares-15.12.3/CMakeLists.txt new/ksquares-16.04.1/CMakeLists.txt --- old/ksquares-15.12.3/CMakeLists.txt 2015-11-11 11:59:11.000000000 +0100 +++ new/ksquares-16.04.1/CMakeLists.txt 2016-03-10 11:18:54.000000000 +0100 @@ -2,27 +2,23 @@ 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 Test) -find_package(KF5 REQUIRED COMPONENTS - CoreAddons - Config +find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets) +find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS + Config + ConfigWidgets + CoreAddons + Crash DBusAddons DocTools - WidgetsAddons - Config - I18n - GuiAddons - ConfigWidgets - ItemViews - IconThemes + I18n + WidgetsAddons XmlGui - KIO - NotifyConfig - ) +) find_package(KF5KDEGames 4.9.0 REQUIRED) @@ -34,9 +30,15 @@ include(KDECMakeSettings) include(ECMAddTests) -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(doc) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ksquares-15.12.3/src/CMakeLists.txt new/ksquares-16.04.1/src/CMakeLists.txt --- old/ksquares-15.12.3/src/CMakeLists.txt 2015-11-11 11:59:11.000000000 +0100 +++ new/ksquares-16.04.1/src/CMakeLists.txt 2016-03-10 11:18:54.000000000 +0100 @@ -1,16 +1,16 @@ set(ksquares_SRCS - main.cpp - ksquareswindow.cpp - gameboardview.cpp - gameboardscene.cpp - ksquaresgame.cpp - aicontroller.cpp - newgamedialog.cpp - ksquaresdemowindow.cpp - themegraphicsitems.cpp - highlightanimation.cpp - scoresdialog.cpp + main.cpp + ksquareswindow.cpp + gameboardview.cpp + gameboardscene.cpp + ksquaresgame.cpp + aicontroller.cpp + newgamedialog.cpp + ksquaresdemowindow.cpp + themegraphicsitems.cpp + highlightanimation.cpp + scoresdialog.cpp ) include_directories(${CMAKE_SOURCE_DIR}/libKF5KDEGames/highscore) @@ -23,14 +23,31 @@ ecm_add_app_icon(ksquares_SRCS ICONS ${ICONS_SRCS}) add_executable(ksquares ${ksquares_SRCS}) -target_link_libraries(ksquares KF5KDEGames KF5::I18n KF5::XmlGui KF5::Completion KF5::DBusAddons) +target_link_libraries(ksquares + KF5::Completion + KF5::Crash + KF5::DBusAddons + KF5::I18n + KF5::XmlGui + KF5KDEGames +) install(TARGETS ksquares ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### -install( PROGRAMS org.kde.ksquares.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) -install( FILES ksquares.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} ) -install( FILES ksquaresui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/ksquares ) -ecm_install_icons(ICONS 128-apps-ksquares.png 16-apps-ksquares.png 22-apps-ksquares.png 32-apps-ksquares.png 48-apps-ksquares.png 64-apps-ksquares.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor ) +install(PROGRAMS org.kde.ksquares.desktop DESTINATION ${KDE_INSTALL_APPDIR}) +install(FILES ksquares.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) +install(FILES ksquaresui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/ksquares) + +ecm_install_icons(ICONS + 128-apps-ksquares.png + 16-apps-ksquares.png + 22-apps-ksquares.png + 32-apps-ksquares.png + 48-apps-ksquares.png + 64-apps-ksquares.png + DESTINATION ${KDE_INSTALL_ICONDIR} + THEME hicolor +) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ksquares-15.12.3/src/aicontroller.cpp new/ksquares-16.04.1/src/aicontroller.cpp --- old/ksquares-15.12.3/src/aicontroller.cpp 2015-11-11 11:59:11.000000000 +0100 +++ new/ksquares-16.04.1/src/aicontroller.cpp 2016-03-10 11:18:54.000000000 +0100 @@ -23,7 +23,7 @@ for (int i = 0; i < linesSize; ++i) { lines[i] = newLines[i]; } - srand((unsigned)time(NULL)); + qsrand((unsigned)time(NULL)); //qDebug() << "AI: Starting AI level" << Settings::difficulty(); } @@ -51,7 +51,7 @@ if (fillLines.isEmpty()) { break; } - int index = rand() % fillLines.size(); + int index = qrand() % fillLines.size(); fillLines.removeAt(index); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ksquares-15.12.3/src/highlightanimation.h new/ksquares-16.04.1/src/highlightanimation.h --- old/ksquares-15.12.3/src/highlightanimation.h 2015-11-11 11:59:11.000000000 +0100 +++ new/ksquares-16.04.1/src/highlightanimation.h 2016-03-10 11:18:54.000000000 +0100 @@ -24,7 +24,7 @@ Q_OBJECT Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity) public: - HighlightAnimation(const QLineF &line); + explicit HighlightAnimation(const QLineF &line); }; #endif // HIGHLIGHTANIMATION_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ksquares-15.12.3/src/ksquareswindow.cpp new/ksquares-16.04.1/src/ksquareswindow.cpp --- old/ksquares-15.12.3/src/ksquareswindow.cpp 2015-11-11 11:59:11.000000000 +0100 +++ new/ksquares-16.04.1/src/ksquareswindow.cpp 2016-03-10 11:18:54.000000000 +0100 @@ -11,19 +11,19 @@ #include "ksquareswindow.h" //qt -#include <QtGui/QStandardItemModel> -#include <QtCore/QTimer> +#include <QAction> +#include <QDebug> +#include <QLabel> +#include <QStandardItemModel> +#include <QStatusBar> +#include <QTimer> //kde #include <KConfigDialog> #include <KActionCollection> -#include <QDebug> #include <KLocalizedString> #include <KScoreDialog> #include <KStandardGameAction> -#include <QStatusBar> -#include <QAction> -#include <QLabel> //generated #include "settings.h" @@ -177,7 +177,7 @@ //start game etc. sGame->createGame(playerList, Settings::boardWidth(), Settings::boardHeight()); connect(m_scene, &GameBoardScene::lineDrawn, sGame, &KSquaresGame::addLineToIndex); - //QT5: VERIFY SIGNAL DOESNT EXIST connect(m_scene,&GameBoardScene::signalMoveRequest,this,&KSquaresWindow::slotMoveRequest); + //QT5: VERIFY SIGNAL DOESN'T EXIST connect(m_scene,&GameBoardScene::signalMoveRequest,this,&KSquaresWindow::slotMoveRequest); connect(sGame, &KSquaresGame::drawLine, m_scene, &GameBoardScene::drawLine); connect(sGame, &KSquaresGame::highlightMove, m_scene, &GameBoardScene::highlightLine); connect(sGame, &KSquaresGame::drawSquare, m_scene, &GameBoardScene::drawSquare); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ksquares-15.12.3/src/main.cpp new/ksquares-16.04.1/src/main.cpp --- old/ksquares-15.12.3/src/main.cpp 2015-11-11 11:59:11.000000000 +0100 +++ new/ksquares-16.04.1/src/main.cpp 2016-03-10 11:18:54.000000000 +0100 @@ -8,7 +8,7 @@ ***************************************************************************/ #include <KAboutData> - +#include <KCrash> #include <KUser> #include <QApplication> #include <KLocalizedString> @@ -44,6 +44,7 @@ QCommandLineParser parser; KAboutData::setApplicationData(about); + KCrash::initialize(); parser.addVersionOption(); parser.addHelpOption(); parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("demo"), i18n("Run game in demo (autoplay) mode"))); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ksquares-15.12.3/src/themegraphicsitems.h new/ksquares-16.04.1/src/themegraphicsitems.h --- old/ksquares-15.12.3/src/themegraphicsitems.h 2015-11-11 11:59:11.000000000 +0100 +++ new/ksquares-16.04.1/src/themegraphicsitems.h 2016-03-10 11:18:54.000000000 +0100 @@ -21,7 +21,7 @@ class KSquaresSquareItem : public QGraphicsRectItem { public: - KSquaresSquareItem(QGraphicsItem *parent = 0); + explicit KSquaresSquareItem(QGraphicsItem *parent = 0); ~KSquaresSquareItem(); void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
