Hello community, here is the log from the commit of package kparts for openSUSE:Factory checked in at 2019-10-14 13:38:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kparts (Old) and /work/SRC/openSUSE:Factory/.kparts.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kparts" Mon Oct 14 13:38:03 2019 rev:70 rq:738049 version:5.63.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kparts/kparts.changes 2019-09-23 12:25:18.781729195 +0200 +++ /work/SRC/openSUSE:Factory/.kparts.new.2352/kparts.changes 2019-10-14 13:38:06.157929057 +0200 @@ -1,0 +2,10 @@ +Sun Oct 6 13:26:50 UTC 2019 - Christophe Giboudeaux <[email protected]> + +- Update to 5.63.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/kde-frameworks-5.63.0.php +- Changes since 5.62.0: + * Port away from deprecated QString::sprintf + +------------------------------------------------------------------- Old: ---- kparts-5.62.0.tar.xz kparts-5.62.0.tar.xz.sig New: ---- kparts-5.63.0.tar.xz kparts-5.63.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kparts.spec ++++++ --- /var/tmp/diff_new_pack.kPxXsi/_old 2019-10-14 13:38:06.917927076 +0200 +++ /var/tmp/diff_new_pack.kPxXsi/_new 2019-10-14 13:38:06.917927076 +0200 @@ -17,14 +17,14 @@ %define lname libKF5Parts5 -%define _tar_path 5.62 +%define _tar_path 5.63 # Full KF5 version (e.g. 5.33.0) %{!?_kf5_version: %global _kf5_version %{version}} # Last major and minor KF5 version (e.g. 5.33) %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} %bcond_without lang Name: kparts -Version: 5.62.0 +Version: 5.63.0 Release: 0 Summary: Plugin framework for user interface components License: LGPL-2.1-or-later @@ -55,11 +55,11 @@ BuildRequires: cmake(KF5WidgetsAddons) >= %{_kf5_bugfix_version} BuildRequires: cmake(KF5WindowSystem) >= %{_kf5_bugfix_version} BuildRequires: cmake(KF5XmlGui) >= %{_kf5_bugfix_version} -BuildRequires: cmake(Qt5Core) >= 5.6.0 -BuildRequires: cmake(Qt5Network) >= 5.6.0 -BuildRequires: cmake(Qt5Test) >= 5.6.0 -BuildRequires: cmake(Qt5Widgets) >= 5.6.0 -BuildRequires: cmake(Qt5Xml) >= 5.6.0 +BuildRequires: cmake(Qt5Core) >= 5.11.0 +BuildRequires: cmake(Qt5Network) >= 5.11.0 +BuildRequires: cmake(Qt5Test) >= 5.11.0 +BuildRequires: cmake(Qt5Widgets) >= 5.11.0 +BuildRequires: cmake(Qt5Xml) >= 5.11.0 %description This library implements the framework for KDE parts, which are ++++++ kparts-5.62.0.tar.xz -> kparts-5.63.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/CMakeLists.txt new/kparts-5.63.0/CMakeLists.txt --- old/kparts-5.62.0/CMakeLists.txt 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/CMakeLists.txt 2019-10-06 11:48:47.000000000 +0200 @@ -1,11 +1,11 @@ cmake_minimum_required(VERSION 3.5) -set(KF5_VERSION "5.62.0") # handled by release scripts -set(KF5_DEP_VERSION "5.62.0") # handled by release scripts +set(KF5_VERSION "5.63.0") # handled by release scripts +set(KF5_DEP_VERSION "5.63.0") # handled by release scripts project(KParts VERSION ${KF5_VERSION}) include(FeatureSummary) -find_package(ECM 5.62.0 NO_MODULE) +find_package(ECM 5.63.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) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/po/se/kparts5.po new/kparts-5.63.0/po/se/kparts5.po --- old/kparts-5.62.0/po/se/kparts5.po 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/po/se/kparts5.po 2019-10-06 11:48:47.000000000 +0200 @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: kdelibs4\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" -"POT-Creation-Date: 2019-05-20 02:57+0200\n" +"POT-Creation-Date: 2019-08-10 02:45+0200\n" "PO-Revision-Date: 2012-05-30 23:19+0200\n" "Last-Translator: Børre Gaup <[email protected]>\n" "Language-Team: Northern Sami <[email protected]>\n" @@ -29,17 +29,17 @@ msgid "Your emails" msgstr "[email protected]" -#: browserextension.cpp:241 +#: browserextension.cpp:240 #, kde-format msgid "<qt>Do you want to search the Internet for <b>%1</b>?</qt>" msgstr "<qt>Háliidatgo ohcat <b>%1</b> interneahtas?</qt>" -#: browserextension.cpp:242 +#: browserextension.cpp:241 #, kde-format msgid "Internet Search" msgstr "Oza interneahtas" -#: browserextension.cpp:242 +#: browserextension.cpp:241 #, kde-format msgid "&Search" msgstr "O&za" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/CMakeLists.txt new/kparts-5.63.0/src/CMakeLists.txt --- old/kparts-5.62.0/src/CMakeLists.txt 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/CMakeLists.txt 2019-10-06 11:48:47.000000000 +0200 @@ -77,7 +77,8 @@ generate_export_header(KF5Parts EXPORT_FILE_NAME ${KParts_BINARY_DIR}/kparts/kparts_export.h BASE_NAME KParts) add_library(KF5::Parts ALIAS KF5Parts) -target_include_directories(KF5Parts PUBLIC "$<BUILD_INTERFACE:${KParts_BINARY_DIR};${CMAKE_CURRENT_BINARY_DIR}>") +set(KParts_BUILD_INCLUDE_DIRS ${KParts_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}) +target_include_directories(KF5Parts PUBLIC "$<BUILD_INTERFACE:${KParts_BUILD_INCLUDE_DIRS}>") target_include_directories(KF5Parts INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KParts>" ) target_link_libraries(KF5Parts PUBLIC KF5::KIOWidgets #browserrun.h uses krun.h @@ -125,6 +126,8 @@ KF5KIO_QCH KF5XmlGui_QCH KF5TextWidgets_QCH + INCLUDE_DIRS + ${KParts_BUILD_INCLUDE_DIRS} BLANK_MACROS KPARTS_EXPORT KPARTS_DEPRECATED diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/browseropenorsavequestion.cpp new/kparts-5.63.0/src/browseropenorsavequestion.cpp --- old/kparts-5.62.0/src/browseropenorsavequestion.cpp 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/browseropenorsavequestion.cpp 2019-10-06 11:48:47.000000000 +0200 @@ -267,8 +267,8 @@ KGuiItem::assign(d->openWithButton, openWithItem); d->openWithButton->setMenu(menu); QObject::connect(menu, &QMenu::triggered, d, &BrowserOpenOrSaveQuestionPrivate::slotAppSelected); - for (KService::List::const_iterator it = apps.begin(); it != apps.end(); ++it) { - QAction *act = createAppAction(*it, d); + for (const auto &app : apps) { + QAction *act = createAppAction(app, d); menu->addAction(act); } QAction *openWithDialogAction = new QAction(d); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/htmlsettingsinterface.h new/kparts-5.63.0/src/htmlsettingsinterface.h --- old/kparts-5.62.0/src/htmlsettingsinterface.h 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/htmlsettingsinterface.h 2019-10-06 11:48:47.000000000 +0200 @@ -40,11 +40,11 @@ * using qobject_cast<KParts::HtmlSettingsInterface>. * * Example: - * <code> + * @code * KParts::HTMLExtension* extension = KParts::HTMLExtension::childObject(part); * KParts::HtmlSettingsInterface* settings = qobject_cast<KParts::HtmlSettingsInterface>(extension); * const bool autoLoadImages = settings->attribute(KParts::AutoLoadImages); - * </code> + * @endcode * * @since 4.8.1 */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/partbase.h new/kparts-5.63.0/src/partbase.h --- old/kparts-5.62.0/src/partbase.h 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/partbase.h 2019-10-06 11:48:47.000000000 +0200 @@ -131,9 +131,9 @@ * \code * if( factory() ) * { - * QList<KParts::Plugin *> plugins = KParts::Plugin::pluginObjects( this ); - * for(int i = 0; i != plugins.size(); ++i) { - * factory()->addClient( plugins[i] ); + * const QList<KParts::Plugin *> plugins = KParts::Plugin::pluginObjects(this); + * for (auto *plugin : plugins) { + * factory()->addClient(plugin); * } * } * \endcode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/partmanager.cpp new/kparts-5.63.0/src/partmanager.cpp --- old/kparts-5.62.0/src/partmanager.cpp 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/partmanager.cpp 2019-10-06 11:48:47.000000000 +0200 @@ -315,8 +315,8 @@ Part *PartManager::findPartFromWidget(QWidget *widget, const QPoint &pos) { - for (QList<Part *>::iterator it = d->m_parts.begin(), end = d->m_parts.end(); it != end; ++it) { - Part *part = (*it)->hitTest(widget, pos); + for (auto *p : qAsConst(d->m_parts)) { + Part *part = p->hitTest(widget, pos); if (part && d->m_parts.contains(part)) { return part; } @@ -326,9 +326,9 @@ Part *PartManager::findPartFromWidget(QWidget *widget) { - for (QList<Part *>::iterator it = d->m_parts.begin(), end = d->m_parts.end(); it != end; ++it) { - if (widget == (*it)->widget()) { - return (*it); + for (auto *part : qAsConst(d->m_parts)) { + if (widget == part->widget()) { + return part; } } return nullptr; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/plugin.cpp new/kparts-5.63.0/src/plugin.cpp --- old/kparts-5.62.0/src/plugin.cpp 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/plugin.cpp 2019-10-06 11:48:47.000000000 +0200 @@ -135,21 +135,19 @@ void Plugin::loadPlugins(QObject *parent, const QList<PluginInfo> &pluginInfos, const QString &componentName) { - QList<PluginInfo>::ConstIterator pIt = pluginInfos.begin(); - QList<PluginInfo>::ConstIterator pEnd = pluginInfos.end(); - for (; pIt != pEnd; ++pIt) { - QString library = (*pIt).m_document.documentElement().attribute(QStringLiteral("library")); + for (const auto &pluginInfo : pluginInfos) { + const QString library = pluginInfo.m_document.documentElement().attribute(QStringLiteral("library")); if (library.isEmpty() || hasPlugin(parent, library)) { continue; } - Plugin *plugin = loadPlugin(parent, library, (*pIt).m_document.documentElement().attribute(QStringLiteral("X-KDE-PluginKeyword"))); + Plugin *plugin = loadPlugin(parent, library, pluginInfo.m_document.documentElement().attribute(QStringLiteral("X-KDE-PluginKeyword"))); if (plugin) { plugin->d->m_parentInstance = componentName; - plugin->setXMLFile((*pIt).m_relXMLFileName, false, false); - plugin->setDOMDocument((*pIt).m_document); + plugin->setXMLFile(pluginInfo.m_relXMLFileName, false, false); + plugin->setDOMDocument(pluginInfo.m_document); } } @@ -195,14 +193,10 @@ { const QObjectList plugins = parent->children(); - QObjectList::ConstIterator it = plugins.begin(); - for (; it != plugins.end(); ++it) { - Plugin *plugin = qobject_cast<Plugin *>(*it); - if (plugin && plugin->d->m_library == library) { - return true; - } - } - return false; + return std::any_of(plugins.begin(), plugins.end(), [&library](QObject *p) { + Plugin *plugin = qobject_cast<Plugin *>(p); + return (plugin && plugin->d->m_library == library); + }); } void Plugin::setComponentData(const KAboutData &pluginData) @@ -217,10 +211,8 @@ { KConfigGroup cfgGroup(KSharedConfig::openConfig(componentName + QLatin1String("rc")), "KParts Plugins"); const QList<PluginInfo> plugins = pluginInfos(componentName); - QList<PluginInfo>::ConstIterator pIt = plugins.begin(); - const QList<PluginInfo>::ConstIterator pEnd = plugins.end(); - for (; pIt != pEnd; ++pIt) { - QDomElement docElem = (*pIt).m_document.documentElement(); + for (const auto &pluginInfo : plugins) { + QDomElement docElem = pluginInfo.m_document.documentElement(); QString library = docElem.attribute(QStringLiteral("library")); QString keyword; @@ -235,7 +227,7 @@ if (cfgGroup.hasKey(name + QLatin1String("Enabled"))) { pluginEnabled = cfgGroup.readEntry(name + QLatin1String("Enabled"), false); } else { // no user-setting, load plugin default setting - QString relPath = componentName + QLatin1Char('/') + (*pIt).m_relXMLFileName; + QString relPath = componentName + QLatin1Char('/') + pluginInfo.m_relXMLFileName; relPath.truncate(relPath.lastIndexOf(QLatin1Char('.'))); // remove extension relPath += QLatin1String(".desktop"); //qDebug() << "looking for " << relPath; @@ -263,8 +255,8 @@ const QObjectList pluginList = parent->children(); bool pluginFound = false; - for (QObjectList::ConstIterator it = pluginList.begin(); it != pluginList.end(); ++it) { - Plugin *plugin = qobject_cast<Plugin *>(*it); + for (auto *p : pluginList) { + Plugin *plugin = qobject_cast<Plugin *>(p); if (plugin && plugin->d->m_library == library) { // delete and unload disabled plugins if (!pluginEnabled) { @@ -292,8 +284,8 @@ if (plugin) { plugin->d->m_parentInstance = componentName; - plugin->setXMLFile((*pIt).m_relXMLFileName, false, false); - plugin->setDOMDocument((*pIt).m_document); + plugin->setXMLFile(pluginInfo.m_relXMLFileName, false, false); + plugin->setDOMDocument(pluginInfo.m_document); parentGUIClient->insertChildClient(plugin); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/scriptableextension.cpp new/kparts-5.63.0/src/scriptableextension.cpp --- old/kparts-5.62.0/src/scriptableextension.cpp 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/scriptableextension.cpp 2019-10-06 11:48:47.000000000 +0200 @@ -257,9 +257,9 @@ QStringList qargs; // Convert args to strings for LC use. qargs.reserve(a.size()); - for (int i = 0; i < a.size(); ++i) { + for (const auto &arg : a) { bool ok; - qargs.append(toLC(a[i], &ok)); + qargs.append(toLC(arg, &ok)); if (!ok) { return unimplemented(); } @@ -414,8 +414,7 @@ // Compute a string to evaluate. We need to escape a lot of stuff // since we're composing a bunch of strings into one. - QString script; - script.sprintf("%s(", event.toLatin1().constData()); + QString script = event + QLatin1Char('('); LiveConnectExtension::ArgList::const_iterator i = args.begin(); const LiveConnectExtension::ArgList::const_iterator argsBegin = i; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/selectorinterface.h new/kparts-5.63.0/src/selectorinterface.h --- old/kparts-5.62.0/src/selectorinterface.h 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/selectorinterface.h 2019-10-06 11:48:47.000000000 +0200 @@ -38,9 +38,9 @@ * in order to find specific elements in an HTML document. * * Example: - * <code> + * @code * const QList<SelectorInterface::Element> elements = selectorInterface->querySelectorAll("head > link[rel=\"alternate\"]"); - * </code> + * @endcode */ class KPARTS_EXPORT SelectorInterface { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.62.0/src/statusbarextension.cpp new/kparts-5.63.0/src/statusbarextension.cpp --- old/kparts-5.62.0/src/statusbarextension.cpp 2019-09-07 16:48:32.000000000 +0200 +++ new/kparts-5.63.0/src/statusbarextension.cpp 2019-10-06 11:48:47.000000000 +0200 @@ -136,14 +136,12 @@ d->m_activated = gae->activated(); if (d->m_activated) { - QList<StatusBarItem>::iterator it = d->m_statusBarItems.begin(); - for (; it != d->m_statusBarItems.end(); ++it) { - (*it).ensureItemShown(sb); + for (auto &item : d->m_statusBarItems) { + item.ensureItemShown(sb); } } else { - QList<StatusBarItem>::iterator it = d->m_statusBarItems.begin(); - for (; it != d->m_statusBarItems.end(); ++it) { - (*it).ensureItemHidden(sb); + for (auto &item : d->m_statusBarItems) { + item.ensureItemHidden(sb); } }
