Hello community, here is the log from the commit of package kparts for openSUSE:Factory checked in at 2016-07-15 12:38:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kparts (Old) and /work/SRC/openSUSE:Factory/.kparts.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kparts" Changes: -------- --- /work/SRC/openSUSE:Factory/kparts/kparts.changes 2016-07-03 12:24:21.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kparts.new/kparts.changes 2016-07-15 12:38:29.000000000 +0200 @@ -1,0 +2,9 @@ +Wed Jul 6 15:05:39 UTC 2016 - [email protected] + +- Update to 5.24.0 + * Add switch to disable KParts' handling of window titles + * Add donate menu item to help menu of our apps + * For more details please see: + https://www.kde.org/announcements/kde-frameworks-5.24.0.php + +------------------------------------------------------------------- Old: ---- kparts-5.23.0.tar.xz New: ---- kparts-5.24.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kparts.spec ++++++ --- /var/tmp/diff_new_pack.kvtnFm/_old 2016-07-15 12:38:31.000000000 +0200 +++ /var/tmp/diff_new_pack.kvtnFm/_new 2016-07-15 12:38:31.000000000 +0200 @@ -18,9 +18,9 @@ %bcond_without lang %define lname libKF5Parts5 -%define _tar_path 5.23 +%define _tar_path 5.24 Name: kparts -Version: 5.23.0 +Version: 5.24.0 Release: 0 %define kf5_version %{version} BuildRequires: cmake >= 2.8.12 ++++++ kparts-5.23.0.tar.xz -> kparts-5.24.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.23.0/CMakeLists.txt new/kparts-5.24.0/CMakeLists.txt --- old/kparts-5.23.0/CMakeLists.txt 2016-06-06 13:43:40.000000000 +0200 +++ new/kparts-5.24.0/CMakeLists.txt 2016-07-03 11:21:10.000000000 +0200 @@ -3,7 +3,7 @@ project(KParts) include(FeatureSummary) -find_package(ECM 5.23.0 NO_MODULE) +find_package(ECM 5.24.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) @@ -21,8 +21,8 @@ include(ECMSetupVersion) -set(KF5_VERSION "5.23.0") # handled by release scripts -set(KF5_DEP_VERSION "5.23.0") # handled by release scripts +set(KF5_VERSION "5.24.0") # handled by release scripts +set(KF5_DEP_VERSION "5.24.0") # handled by release scripts ecm_setup_version(${KF5_VERSION} VARIABLE_PREFIX KPARTS VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kparts_version.h" PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5PartsConfigVersion.cmake" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.23.0/metainfo.yaml new/kparts-5.24.0/metainfo.yaml --- old/kparts-5.23.0/metainfo.yaml 2016-06-06 13:43:40.000000000 +0200 +++ new/kparts-5.24.0/metainfo.yaml 2016-07-03 11:21:10.000000000 +0200 @@ -3,7 +3,9 @@ tier: 3 type: solution platforms: - - name: All + - name: Linux + - name: Windows + - name: MacOSX portingAid: false deprecated: false release: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.23.0/po/it/kparts5.po new/kparts-5.24.0/po/it/kparts5.po --- old/kparts-5.23.0/po/it/kparts5.po 2016-06-06 13:43:40.000000000 +0200 +++ new/kparts-5.24.0/po/it/kparts5.po 2016-07-03 11:21:10.000000000 +0200 @@ -23,7 +23,7 @@ "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 1.5\n" msgctxt "NAME OF TRANSLATORS" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.23.0/src/mainwindow.cpp new/kparts-5.24.0/src/mainwindow.cpp --- old/kparts-5.23.0/src/mainwindow.cpp 2016-06-06 13:43:40.000000000 +0200 +++ new/kparts-5.24.0/src/mainwindow.cpp 2016-07-03 11:21:10.000000000 +0200 @@ -49,7 +49,8 @@ MainWindowPrivate() : m_activePart(0), m_bShellGUIActivated(false), - m_helpMenu(0) + m_helpMenu(0), + m_manageWindowTitle(true) { } ~MainWindowPrivate() @@ -59,6 +60,7 @@ QPointer<Part> m_activePart; bool m_bShellGUIActivated; KHelpMenu *m_helpMenu; + bool m_manageWindowTitle; }; } @@ -110,8 +112,10 @@ if (part) { // do this before sending the activate event - connect(part, &Part::setWindowCaption, - this, static_cast<void (MainWindow::*)(const QString &)>(&MainWindow::setCaption)); + if (d->m_manageWindowTitle) { + connect(part, &Part::setWindowCaption, + this, static_cast<void (MainWindow::*)(const QString &)>(&MainWindow::setCaption)); + } connect(part, &Part::setStatusBarText, this, &MainWindow::slotSetStatusBarText); @@ -144,6 +148,7 @@ QAction *switchLanguageAction = d->m_helpMenu->action(KHelpMenu::menuSwitchLanguage); QAction *aboutAppAction = d->m_helpMenu->action(KHelpMenu::menuAboutApp); QAction *aboutKdeAction = d->m_helpMenu->action(KHelpMenu::menuAboutKDE); + QAction *donateAction = d->m_helpMenu->action(KHelpMenu::menuDonate); if (helpContentsAction) { actions->addAction(helpContentsAction->objectName(), helpContentsAction); @@ -163,6 +168,9 @@ if (aboutKdeAction) { actions->addAction(aboutKdeAction->objectName(), aboutKdeAction); } + if (donateAction) { + actions->addAction(donateAction->objectName(), donateAction); + } } QString f = xmlFile(); @@ -186,6 +194,11 @@ } } +void KParts::MainWindow::setWindowTitleHandling(bool enabled) +{ + d->m_manageWindowTitle = enabled; +} + void KParts::MainWindow::saveNewToolbarConfig() { createGUI(d->m_activePart); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.23.0/src/mainwindow.h new/kparts-5.24.0/src/mainwindow.h --- old/kparts-5.23.0/src/mainwindow.h 2016-06-06 13:43:40.000000000 +0200 +++ new/kparts-5.24.0/src/mainwindow.h 2016-07-03 11:21:10.000000000 +0200 @@ -34,12 +34,24 @@ /** * A KPart-aware main window, whose user interface is described in XML. * - * Inherit your main window from this class - * and don't forget to call setXMLFile() in the inherited constructor. - * * It implements all internal interfaces in the case of a * KMainWindow as host: the builder and servant interface (for menu * merging). + * + * Inherit your main window from this class + * and don't forget to call setupGUI() before you call createGUI() + * on the KPart. For example: + * + * \code + * setCentralWidget(m_part->widget()); + * setupGUI(ToolBar | Keys | StatusBar | Save, "appui.rc"); + * createGUI(m_part); + * \endcode + * + * @warning you should not pass the Default flag to setupGUI(), since it contains + * the Create flag that is not supposed to be used from this class. + * @see setupGUI, @see createGUI + * */ class KPARTS_EXPORT MainWindow : public KXmlGuiWindow, virtual public PartBase { @@ -72,6 +84,16 @@ void createGUI(KParts::Part *part); /** + * Enable or disable the automatic setting of window titles by the part's document title. + * By default, a part always changes the window title when the document changes. + * @note This value must be set before calling @see createGUI. + * + * @param enabled boolean to enable or disable the window title handling + * @since 5.24 + */ + void setWindowTitleHandling(bool enabled); + + /** * Called when the active part wants to change the statusbar message * Reimplement if your mainwindow has a complex statusbar * (with several items) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kparts-5.23.0/src/part.h new/kparts-5.24.0/src/part.h --- old/kparts-5.23.0/src/part.h 2016-06-06 13:43:40.000000000 +0200 +++ new/kparts-5.24.0/src/part.h 2016-07-03 11:21:10.000000000 +0200 @@ -165,6 +165,9 @@ /** * Emitted by the part, to set the caption of the window(s) * hosting this part + * + * @note this signal has only an effect on the window title if window title + * handling is enabled @see KParts::MainWindow::setWindowTitleHandling */ void setWindowCaption(const QString &caption); /**
