Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kcompletion for openSUSE:Factory 
checked in at 2021-10-18 21:58:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kcompletion (Old)
 and      /work/SRC/openSUSE:Factory/.kcompletion.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kcompletion"

Mon Oct 18 21:58:27 2021 rev:98 rq:924418 version:5.87.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kcompletion/kcompletion.changes  2021-09-16 
23:15:32.611852472 +0200
+++ /work/SRC/openSUSE:Factory/.kcompletion.new.1890/kcompletion.changes        
2021-10-18 22:00:03.522000970 +0200
@@ -1,0 +2,12 @@
+Sun Oct  3 20:33:36 UTC 2021 - Christophe Giboudeaux <[email protected]>
+
+- Update to 5.87.0
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/frameworks/5/5.87.0
+- Changes since 5.86.0:
+  * Add Gitlab CI configuration
+  * New shouldAutoSuggest property on KCompletion.
+  * Fix typo in argument name (autosubject -> autoSuggest)
+
+-------------------------------------------------------------------

Old:
----
  kcompletion-5.86.0.tar.xz
  kcompletion-5.86.0.tar.xz.sig

New:
----
  kcompletion-5.87.0.tar.xz
  kcompletion-5.87.0.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kcompletion.spec ++++++
--- /var/tmp/diff_new_pack.3SwgMy/_old  2021-10-18 22:00:04.082001375 +0200
+++ /var/tmp/diff_new_pack.3SwgMy/_new  2021-10-18 22:00:04.086001378 +0200
@@ -17,14 +17,14 @@
 
 
 %define lname   libKF5Completion5
-%define _tar_path 5.86
+%define _tar_path 5.87
 # 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:           kcompletion
-Version:        5.86.0
+Version:        5.87.0
 Release:        0
 Summary:        Widgets with advanced completion support
 License:        LGPL-2.1-or-later


++++++ kcompletion-5.86.0.tar.xz -> kcompletion-5.87.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/.gitlab-ci.yml 
new/kcompletion-5.87.0/.gitlab-ci.yml
--- old/kcompletion-5.86.0/.gitlab-ci.yml       1970-01-01 01:00:00.000000000 
+0100
+++ new/kcompletion-5.87.0/.gitlab-ci.yml       2021-10-02 16:23:41.000000000 
+0200
@@ -0,0 +1,5 @@
+# SPDX-FileCopyrightText: 2020 Volker Krause <[email protected]>
+# SPDX-License-Identifier: CC0-1.0
+
+include:
+  - 
https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/.kde-ci.yml 
new/kcompletion-5.87.0/.kde-ci.yml
--- old/kcompletion-5.86.0/.kde-ci.yml  1970-01-01 01:00:00.000000000 +0100
+++ new/kcompletion-5.87.0/.kde-ci.yml  2021-10-02 16:23:41.000000000 +0200
@@ -0,0 +1,9 @@
+Dependencies:
+- 'on': ['@all']
+  'require':
+    'frameworks/extra-cmake-modules': '@same'
+    'frameworks/kconfig' : '@same'
+    'frameworks/kwidgetsaddons' : '@same'
+
+Options:
+  test-before-installing: True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/CMakeLists.txt 
new/kcompletion-5.87.0/CMakeLists.txt
--- old/kcompletion-5.86.0/CMakeLists.txt       2021-09-04 18:56:57.000000000 
+0200
+++ new/kcompletion-5.87.0/CMakeLists.txt       2021-10-02 16:23:41.000000000 
+0200
@@ -1,12 +1,12 @@
 cmake_minimum_required(VERSION 3.16)
 
-set(KF_VERSION "5.86.0") # handled by release scripts
-set(KF_DEP_VERSION "5.86.0") # handled by release scripts
+set(KF_VERSION "5.87.0") # handled by release scripts
+set(KF_DEP_VERSION "5.87.0") # handled by release scripts
 project(KCompletion VERSION ${KF_VERSION})
 
 # ECM setup
 include(FeatureSummary)
-find_package(ECM 5.86.0  NO_MODULE)
+find_package(ECM 5.87.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL "https://commits.kde.org/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/kcompletion-5.86.0/po/zh_CN/kcompletion5_qt.po 
new/kcompletion-5.87.0/po/zh_CN/kcompletion5_qt.po
--- old/kcompletion-5.86.0/po/zh_CN/kcompletion5_qt.po  2021-09-04 
18:56:57.000000000 +0200
+++ new/kcompletion-5.87.0/po/zh_CN/kcompletion5_qt.po  2021-10-02 
16:23:41.000000000 +0200
@@ -13,7 +13,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: kdeorg\n"
-"PO-Revision-Date: 2021-08-30 11:43\n"
+"PO-Revision-Date: 2021-09-27 13:07\n"
 "Language-Team: Chinese Simplified\n"
 "Language: zh_CN\n"
 "MIME-Version: 1.0\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/src/kcombobox.cpp 
new/kcompletion-5.87.0/src/kcombobox.cpp
--- old/kcompletion-5.86.0/src/kcombobox.cpp    2021-09-04 18:56:57.000000000 
+0200
+++ new/kcompletion-5.87.0/src/kcombobox.cpp    2021-10-02 16:23:41.000000000 
+0200
@@ -218,11 +218,11 @@
     QComboBox::setItemText(index, url.toDisplayString());
 }
 
-void KComboBox::setCompletedItems(const QStringList &items, bool autosubject)
+void KComboBox::setCompletedItems(const QStringList &items, bool autoSuggest)
 {
     Q_D(KComboBox);
     if (d->klineEdit) {
-        d->klineEdit->setCompletedItems(items, autosubject);
+        d->klineEdit->setCompletedItems(items, autoSuggest);
     }
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/src/kcombobox.h 
new/kcompletion-5.87.0/src/kcombobox.h
--- old/kcompletion-5.86.0/src/kcombobox.h      2021-09-04 18:56:57.000000000 
+0200
+++ new/kcompletion-5.87.0/src/kcombobox.h      2021-10-02 16:23:41.000000000 
+0200
@@ -492,7 +492,7 @@
      * Sets @p items into the completion box if completionMode() is
      * CompletionPopup. The popup will be shown immediately.
      */
-    void setCompletedItems(const QStringList &items, bool autosubject = true) 
override;
+    void setCompletedItems(const QStringList &items, bool autoSuggest = true) 
override;
 
     /**
      * Selects the first item that matches @p item.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/src/kcompletion.cpp 
new/kcompletion-5.87.0/src/kcompletion.cpp
--- old/kcompletion-5.86.0/src/kcompletion.cpp  2021-09-04 18:56:57.000000000 
+0200
+++ new/kcompletion-5.87.0/src/kcompletion.cpp  2021-10-02 16:23:41.000000000 
+0200
@@ -19,6 +19,7 @@
     beep = true;
     ignoreCase = false;
     hasMultipleMatches = false;
+    shouldAutoSuggest = true;
     rotationIndex = 0;
 }
 
@@ -374,6 +375,18 @@
     return d->completionMode;
 }
 
+void KCompletion::setShouldAutoSuggest(const bool shouldAutoSuggest)
+{
+    Q_D(KCompletion);
+    d->shouldAutoSuggest = shouldAutoSuggest;
+}
+
+bool KCompletion::shouldAutoSuggest() const
+{
+    Q_D(const KCompletion);
+    return d->shouldAutoSuggest;
+}
+
 QStringList KCompletion::allMatches()
 {
     Q_D(KCompletion);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/src/kcompletion.h 
new/kcompletion-5.87.0/src/kcompletion.h
--- old/kcompletion-5.86.0/src/kcompletion.h    2021-09-04 18:56:57.000000000 
+0200
+++ new/kcompletion-5.87.0/src/kcompletion.h    2021-10-02 16:23:41.000000000 
+0200
@@ -280,6 +280,15 @@
     bool ignoreCase() const;
 
     /**
+     * Informs the caller if they should display the auto-suggestion for the 
last completion operation performed.
+     * Applies for CompletionPopupAuto and CompletionAuto modes.
+     * Defaults to true, but deriving classes may set it to false in special 
cases via "setShouldAutoSuggest".
+     * @return true if auto-suggestion should be displayed for the last 
completion operation performed.
+     * @since 5.87
+     */
+    bool shouldAutoSuggest() const;
+
+    /**
      * Returns a list of all items matching the last completed string.
      * It might take some time if you have a @em lot of items.
      * @return a list of all matches for the last completed string.
@@ -558,6 +567,15 @@
      */
     virtual void postProcessMatches(KCompletionMatches *matches) const;
 
+    /**
+     * Deriving classes may set this property and control whether the 
auto-suggestion should be displayed
+     * for the last completion operation performed.
+     *
+     * Applies for CompletionPopupAuto and CompletionAuto modes.
+     * @since 5.87
+     */
+    void setShouldAutoSuggest(bool shouldAutosuggest);
+
 private:
     Q_DISABLE_COPY(KCompletion)
     std::unique_ptr<KCompletionPrivate> const d_ptr;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/src/kcompletion_p.h 
new/kcompletion-5.87.0/src/kcompletion_p.h
--- old/kcompletion-5.86.0/src/kcompletion_p.h  2021-09-04 18:56:57.000000000 
+0200
+++ new/kcompletion-5.87.0/src/kcompletion_p.h  2021-10-02 16:23:41.000000000 
+0200
@@ -332,6 +332,7 @@
     bool hasMultipleMatches;
     bool beep : 1;
     bool ignoreCase : 1;
+    bool shouldAutoSuggest : 1;
     Q_DECLARE_PUBLIC(KCompletion)
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcompletion-5.86.0/src/klineedit.cpp 
new/kcompletion-5.87.0/src/klineedit.cpp
--- old/kcompletion-5.86.0/src/klineedit.cpp    2021-09-04 18:56:57.000000000 
+0200
+++ new/kcompletion-5.87.0/src/klineedit.cpp    2021-10-02 16:23:41.000000000 
+0200
@@ -295,7 +295,7 @@
                 d->completionBox->clear();
             }
         } else {
-            setCompletedItems(comp->allMatches());
+            setCompletedItems(comp->allMatches(), comp->shouldAutoSuggest());
         }
     } else { // Auto,  ShortAuto (Man) and Shell
         // all other completion modes

Reply via email to