Hello community, here is the log from the commit of package kdeclarative for openSUSE:Factory checked in at 2015-10-19 22:23:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kdeclarative (Old) and /work/SRC/openSUSE:Factory/.kdeclarative.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kdeclarative" Changes: -------- --- /work/SRC/openSUSE:Factory/kdeclarative/kdeclarative.changes 2015-09-24 07:10:46.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kdeclarative.new/kdeclarative.changes 2015-10-19 22:23:36.000000000 +0200 @@ -1,0 +2,11 @@ +Mon Oct 5 17:37:08 UTC 2015 - hrvoje.sen...@gmail.com + +- Update to 5.15.0 + * Small improvements in ColumnProxyModel + * Make it possible for applications to know path to homeDir + * Move EventForge from the desktop containment + * Provide enabled property for QIconItem. + * For more details please see: + https://www.kde.org/announcements/kde-frameworks-5.15.0.php + +------------------------------------------------------------------- Old: ---- kdeclarative-5.14.0.tar.xz New: ---- kdeclarative-5.15.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kdeclarative.spec ++++++ --- /var/tmp/diff_new_pack.IY4HI0/_old 2015-10-19 22:23:37.000000000 +0200 +++ /var/tmp/diff_new_pack.IY4HI0/_new 2015-10-19 22:23:37.000000000 +0200 @@ -18,9 +18,9 @@ %bcond_without lang %define lname libKF5Declarative5 -%define _tar_path 5.14 +%define _tar_path 5.15 Name: kdeclarative -Version: 5.14.0 +Version: 5.15.0 Release: 0 %define kf5_version %{version} BuildRequires: cmake >= 2.8.12 ++++++ kdeclarative-5.14.0.tar.xz -> kdeclarative-5.15.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/CMakeLists.txt new/kdeclarative-5.15.0/CMakeLists.txt --- old/kdeclarative-5.14.0/CMakeLists.txt 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/CMakeLists.txt 2015-10-05 09:58:02.000000000 +0200 @@ -4,15 +4,15 @@ # Dependencies include(FeatureSummary) -find_package(ECM 5.14.0 NO_MODULE) +find_package(ECM 5.15.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) set(REQUIRED_QT_VERSION "5.3.0") -set(KF5_VERSION "5.14.0") # handled by release scripts -set(KF5_DEP_VERSION "5.14.0") # handled by release scripts +set(KF5_VERSION "5.15.0") # handled by release scripts +set(KF5_DEP_VERSION "5.15.0") # handled by release scripts find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Qml Quick Gui) include(KDEInstallDirs) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/autotests/columnproxymodeltest.cpp new/kdeclarative-5.15.0/autotests/columnproxymodeltest.cpp --- old/kdeclarative-5.14.0/autotests/columnproxymodeltest.cpp 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/autotests/columnproxymodeltest.cpp 2015-10-05 09:58:02.000000000 +0200 @@ -63,3 +63,28 @@ delete listifyB; delete listifyC; } + +void ColumnProxyModelTest::testSet() +{ + ColumnProxyModel* listify = new ColumnProxyModel; + QSignalSpy spy(listify, SIGNAL(rowsInserted(QModelIndex, int, int))); + + new ModelTest(listify, listify); + QStandardItemModel* m = new QStandardItemModel(listify); + listify->setRootIndex(QModelIndex()); + listify->setSourceModel(m); + m->appendRow(new QStandardItem("lalalal")); + m->appendRow(new QStandardItem("lalalal")); + m->appendRow(new QStandardItem("lalalal")); + m->appendRow(new QStandardItem("lalalal")); + QStandardItem* item = new QStandardItem("lalalal"); + item->appendRow(new QStandardItem("lelele")); + item->appendRow(new QStandardItem("lelele")); + m->appendRow(item); + item->appendRow(new QStandardItem("lelele")); + + const QString newString = QStringLiteral("fu"); + QModelIndex changeIndex = listify->indexAt(0); + listify->setData(changeIndex, QVariant::fromValue(newString), Qt::DisplayRole); + QCOMPARE(changeIndex.data(Qt::DisplayRole).toString(), newString); +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/autotests/columnproxymodeltest.h new/kdeclarative-5.15.0/autotests/columnproxymodeltest.h --- old/kdeclarative-5.14.0/autotests/columnproxymodeltest.h 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/autotests/columnproxymodeltest.h 2015-10-05 09:58:02.000000000 +0200 @@ -27,6 +27,7 @@ private Q_SLOTS: void testInit(); + void testSet(); }; -#endif \ No newline at end of file +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/po/nb/kdeclarative5.po new/kdeclarative-5.15.0/po/nb/kdeclarative5.po --- old/kdeclarative-5.14.0/po/nb/kdeclarative5.po 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/po/nb/kdeclarative5.po 2015-10-05 09:58:02.000000000 +0200 @@ -1,5 +1,3 @@ -# Translation of kdeclarative5 to Norwegian Bokmål -# # Knut Yrvin <knut.yr...@gmail.com>, 2002, 2003, 2004, 2005. # Bjørn Steensrud <bjor...@skogkatt.homelinux.org>, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015. # Eskild Hustvedt <zerod...@skolelinux.no>, 2004, 2005. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/po/se/kdeclarative5.po new/kdeclarative-5.15.0/po/se/kdeclarative5.po --- old/kdeclarative-5.14.0/po/se/kdeclarative5.po 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/po/se/kdeclarative5.po 2015-10-05 09:58:02.000000000 +0200 @@ -1,5 +1,3 @@ -# Translation of kdeclarative5 to Northern Sami -# # Børre Gaup <boe...@skolelinux.no>, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012. msgid "" msgstr "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/kpackagelauncherqml/main.cpp new/kdeclarative-5.15.0/src/kpackagelauncherqml/main.cpp --- old/kdeclarative-5.14.0/src/kpackagelauncherqml/main.cpp 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/src/kpackagelauncherqml/main.cpp 2015-10-05 09:58:02.000000000 +0200 @@ -77,6 +77,7 @@ paths["music"] = QStandardPaths::writableLocation(QStandardPaths::MusicLocation); paths["movies"] = QStandardPaths::writableLocation(QStandardPaths::MoviesLocation); paths["pictures"] = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation); + paths["home"] = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); obj.engine()->rootContext()->setContextProperty("userPaths", paths); obj.completeInitialization(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/CMakeLists.txt new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/CMakeLists.txt --- old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/CMakeLists.txt 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/CMakeLists.txt 2015-10-05 09:58:02.000000000 +0200 @@ -8,6 +8,7 @@ mouseeventlistener.cpp columnproxymodel.cpp clipboard.cpp + eventgenerator.cpp mimedatabase.cpp kcmshell.cpp icondialog.cpp diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/columnproxymodel.cpp new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/columnproxymodel.cpp --- old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/columnproxymodel.cpp 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/columnproxymodel.cpp 2015-10-05 09:58:02.000000000 +0200 @@ -115,6 +115,10 @@ void ColumnProxyModel::setRootIndex(const QModelIndex& index) { + if (index == m_index) { + return; + } + if(index.isValid()) { setSourceModel(const_cast<QAbstractItemModel*>(index.model())); } @@ -236,3 +240,7 @@ return m_sourceModel ? m_sourceModel->roleNames() : QHash<int, QByteArray>(); } +bool ColumnProxyModel::setData(const QModelIndex &index, const QVariant &value, int role) +{ + return m_sourceModel && m_sourceModel->setData(sourceIndex(index), value, role); +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/columnproxymodel.h new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/columnproxymodel.h --- old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/columnproxymodel.h 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/columnproxymodel.h 2015-10-05 09:58:02.000000000 +0200 @@ -48,6 +48,8 @@ QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE; + bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE; + Q_SIGNALS: void rootIndexChanged(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/eventgenerator.cpp new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/eventgenerator.cpp --- old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/eventgenerator.cpp 1970-01-01 01:00:00.000000000 +0100 +++ new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/eventgenerator.cpp 2015-10-05 09:58:02.000000000 +0200 @@ -0,0 +1,124 @@ +/*************************************************************************** + * Copyright (C) 2015 by Eike Hein <h...@kde.org> + * Copyright (C) 2015 Marco Martin <notm...@gmail.com> + * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + +#include "eventgenerator.h" + +#include <QGuiApplication> +#include <QQuickItem> +#include <QQuickWindow> + +EventGenerator::EventGenerator(QObject *parent) : QObject(parent) +{ +} + +EventGenerator::~EventGenerator() +{ +} + +void EventGenerator::sendMouseEvent(QQuickItem *item, EventGenerator::MouseEvent type, int x, int y, int button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) +{ + if (!item) { + return; + } + + QEvent::Type eventType; + switch (type) { + case MouseButtonPress: + eventType = QEvent::MouseButtonPress; + break; + case MouseButtonRelease: + eventType = QEvent::MouseButtonRelease; + break; + case MouseMove: + eventType = QEvent::MouseMove; + break; + default: + return; + } + QMouseEvent ev(eventType, QPointF(x, y), (Qt::MouseButton)button, buttons, modifiers); + + QGuiApplication::sendEvent(item, &ev); +} + +void EventGenerator::sendMouseEventRecursive(QQuickItem *parentItem, EventGenerator::MouseEvent type, int x, int y, int button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) +{ + if (!parentItem) { + return; + } + + const QList<QQuickItem *> items = allChildItemsRecursive(parentItem); + + foreach(QQuickItem *item, items) { + sendMouseEvent(item, type, x, y, button, buttons, modifiers); + } +} + +void EventGenerator::sendGrabEvent(QQuickItem *item, EventGenerator::GrabEvent type) +{ + if (!item) { + return; + } + + QQuickWindow *win = item->window(); + + if (!win) { + return; + } + + switch (type) { + case GrabMouse: + item->grabMouse(); + break; + case UngrabMouse: { + QEvent ev(QEvent::UngrabMouse); + win->sendEvent(item, &ev); + return; + } + default: + return; + } +} + +void EventGenerator::sendGrabEventRecursive(QQuickItem *parentItem, EventGenerator::GrabEvent type) +{ + if (!parentItem) { + return; + } + + const QList<QQuickItem *> items = allChildItemsRecursive(parentItem); + + foreach(QQuickItem *item, items) { + sendGrabEvent(item, type); + } +} + +QList<QQuickItem *> EventGenerator::allChildItemsRecursive(QQuickItem *parentItem) +{ + QList<QQuickItem *> itemList; + + itemList.append(parentItem->childItems()); + + foreach(QQuickItem *childItem, parentItem->childItems()) { + itemList.append(allChildItemsRecursive(childItem)); + } + + return itemList; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/eventgenerator.h new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/eventgenerator.h --- old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/eventgenerator.h 1970-01-01 01:00:00.000000000 +0100 +++ new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/eventgenerator.h 2015-10-05 09:58:02.000000000 +0200 @@ -0,0 +1,74 @@ +/*************************************************************************** + * Copyright (C) 2015 by Eike Hein <h...@kde.org> + * Copyright (C) 2015 Marco Martin <notm...@gmail.com> + * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + +#ifndef EventGenerator_H +#define EventGenerator_H + +#include <QObject> + +class QQuickItem; + +class EventGenerator : public QObject +{ + Q_OBJECT + + public: + enum MouseEvent { + MouseButtonPress, + MouseButtonRelease, + MouseMove + }; + Q_ENUMS(MouseEvent) + + enum GrabEvent { + GrabMouse, + UngrabMouse + }; + Q_ENUMS(GrabEvent) + + EventGenerator(QObject *parent = 0); + ~EventGenerator(); + + /** + * Send a mouse event of @type to the given @item + */ + Q_INVOKABLE void sendMouseEvent(QQuickItem *item, EventGenerator::MouseEvent type, int x, int y, int button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); + + /** + * Send a mouse event of @type to the given @item, all its children and descendants + */ + Q_INVOKABLE void sendMouseEventRecursive(QQuickItem *item, EventGenerator::MouseEvent type, int x, int y, int button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); + + /** + * Send a mouse grab event of @type (grab or ungrab) to the given @item + */ + Q_INVOKABLE void sendGrabEvent(QQuickItem *item, EventGenerator::GrabEvent type); + + /** + * Send a mouse grab event of @type (grab or ungrab) to the given @item, all its children and descendants + */ + Q_INVOKABLE void sendGrabEventRecursive(QQuickItem *item, EventGenerator::GrabEvent type); + + private: + static QList<QQuickItem *> allChildItemsRecursive(QQuickItem *parentItem); +}; + +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/kquickcontrolsaddonsplugin.cpp new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/kquickcontrolsaddonsplugin.cpp --- old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/kquickcontrolsaddonsplugin.cpp 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/kquickcontrolsaddonsplugin.cpp 2015-10-05 09:58:02.000000000 +0200 @@ -33,6 +33,7 @@ #include "mimedatabase.h" #include "kcmshell.h" #include "icondialog.h" +#include "eventgenerator.h" #ifndef Q_OS_WIN #include "plotter.h" @@ -59,6 +60,7 @@ qmlRegisterType<MimeDatabase>(uri, 2, 0, "MimeDatabase"); qmlRegisterSingletonType<KCMShell>(uri, 2, 0, "KCMShell", kcmshell_singleton_provider); qmlRegisterType<IconDialog>(uri, 2, 0, "IconDialog"); + qmlRegisterType<EventGenerator>(uri, 2, 0, "EventGenerator"); //TODO: make this work under Windows #ifndef Q_OS_WIN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/qiconitem.cpp new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/qiconitem.cpp --- old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/qiconitem.cpp 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/qiconitem.cpp 2015-10-05 09:58:02.000000000 +0200 @@ -77,6 +77,20 @@ update(); } +bool QIconItem::enabled() const +{ + return (m_state == DefaultState); +} + +void QIconItem::setEnabled(bool enabled) +{ + if (enabled) { + setState(DefaultState); + } else { + setState(DisabledState); + } +} + int QIconItem::implicitWidth() const { return 32; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/qiconitem.h new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/qiconitem.h --- old/kdeclarative-5.14.0/src/qmlcontrols/kquickcontrolsaddons/qiconitem.h 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/src/qmlcontrols/kquickcontrolsaddons/qiconitem.h 2015-10-05 09:58:02.000000000 +0200 @@ -32,6 +32,7 @@ Q_PROPERTY(int implicitWidth READ implicitWidth CONSTANT) Q_PROPERTY(int implicitHeight READ implicitHeight CONSTANT) Q_PROPERTY(State state READ state WRITE setState NOTIFY stateChanged) + Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY stateChanged) Q_ENUMS(State) @@ -58,6 +59,9 @@ void setSmooth(const bool smooth); bool smooth() const; + void setEnabled(bool enabled = true); + bool enabled() const; + QSGNode* updatePaintNode(QSGNode* node, UpdatePaintNodeData* data) Q_DECL_OVERRIDE; Q_SIGNALS: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/src/quickaddons/quickviewsharedengine.cpp new/kdeclarative-5.15.0/src/quickaddons/quickviewsharedengine.cpp --- old/kdeclarative-5.14.0/src/quickaddons/quickviewsharedengine.cpp 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/src/quickaddons/quickviewsharedengine.cpp 2015-10-05 09:58:02.000000000 +0200 @@ -45,6 +45,7 @@ public: QuickViewSharedEnginePrivate(QuickViewSharedEngine *module) : q(module), + resizeMode(QuickViewSharedEngine::ResizeMode::SizeRootObjectToView), initialSize(0, 0) { qmlObject = new KDeclarative::QmlObjectSharedEngine(q); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/tests/eventgenerator.qml new/kdeclarative-5.15.0/tests/eventgenerator.qml --- old/kdeclarative-5.14.0/tests/eventgenerator.qml 1970-01-01 01:00:00.000000000 +0100 +++ new/kdeclarative-5.15.0/tests/eventgenerator.qml 2015-10-05 09:58:02.000000000 +0200 @@ -0,0 +1,69 @@ +/* + * Copyright 2011 Marco Martin <m...@gmail.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * You should have received a copy of the GNU Library General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import QtQuick 2.1 +import org.kde.kquickcontrolsaddons 2.0 + +Rectangle { + width: 500 + height: 500 + color: "red" + + EventGenerator { + id: eventGenerator + } + + MouseArea { + id: parentMouseArea + anchors.fill: parent + drag.filterChildren: true + + onPressed: { + print("Parent Mouse Pressed"); + } + onPositionChanged: { + print("Parent Position changed " + mouse.x + " " + mouse.y); + } + onReleased: { + print("Parent Mouse Released"); + } + + onPressAndHold: { + print("Parent press and hold"); + + eventGenerator.sendGrabEvent(childMouseArea, EventGenerator.UngrabMouse); + eventGenerator.sendGrabEvent(parentMouseArea, EventGenerator.GrabMouse); + eventGenerator.sendMouseEvent(parentMouseArea, EventGenerator.MouseButtonPress, mouse.x, mouse.y, Qt.LeftButton, Qt.LeftButton, 0); + + print("Now Child Position changed events shouldn't appear anymore") + } + + MouseArea { + id: childMouseArea + width: 300 + height: 300 + Rectangle { + anchors.fill: parent + } + onPressed: print("Child Mouse Pressed"); + onPositionChanged: print("Child Position changed " + mouse.x + " " + mouse.y); + onReleased: print("Child Mouse Released"); + } + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/tests/helloworld/metadata.desktop new/kdeclarative-5.15.0/tests/helloworld/metadata.desktop --- old/kdeclarative-5.14.0/tests/helloworld/metadata.desktop 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/tests/helloworld/metadata.desktop 2015-10-05 09:58:02.000000000 +0200 @@ -6,11 +6,13 @@ Name[ca]=hola món Name[cs]=hello world Name[de]=Hallo Welt +Name[el]=hello world Name[en_GB]=hello world Name[es]=hola mundo Name[fi]=hei maailma Name[gl]=Ola, mundo! Name[he]=שלום עולם +Name[hu]=Helló világ! Name[it]=ciao mondo Name[ko]=hello world Name[nb]=hallo verden diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdeclarative-5.14.0/tests/helloworldnowindow/metadata.desktop new/kdeclarative-5.15.0/tests/helloworldnowindow/metadata.desktop --- old/kdeclarative-5.14.0/tests/helloworldnowindow/metadata.desktop 2015-09-05 10:55:35.000000000 +0200 +++ new/kdeclarative-5.15.0/tests/helloworldnowindow/metadata.desktop 2015-10-05 09:58:02.000000000 +0200 @@ -6,11 +6,13 @@ Name[ca]=hola món Name[cs]=hello world Name[de]=Hallo Welt +Name[el]=hello world Name[en_GB]=hello world Name[es]=hola mundo Name[fi]=hei maailma Name[gl]=Ola, mundo! Name[he]=שלום עולם +Name[hu]=Helló világ! Name[it]=ciao mondo Name[ko]=hello world Name[nb]=hallo verden