Hello community,

here is the log from the commit of package kwidgetsaddons for openSUSE:Factory 
checked in at 2016-05-19 12:09:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kwidgetsaddons (Old)
 and      /work/SRC/openSUSE:Factory/.kwidgetsaddons.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kwidgetsaddons"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kwidgetsaddons/kwidgetsaddons.changes    
2016-04-12 19:27:50.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kwidgetsaddons.new/kwidgetsaddons.changes       
2016-05-19 12:09:58.000000000 +0200
@@ -1,0 +2,10 @@
+Sat May  7 18:34:20 UTC 2016 - [email protected]
+
+- Update to 5.22.0 (boo#980066)
+  * KNewPasswordWidget: Remove size hint on spacer, which was
+    leading to some always empty space in the layout
+  * KNewPasswordWidget: fix QPalette when widget is disabled
+  * For more details please see:
+    https://www.kde.org/announcements/kde-frameworks-5.22.0.php
+
+-------------------------------------------------------------------

Old:
----
  kwidgetsaddons-5.21.0.tar.xz

New:
----
  kwidgetsaddons-5.22.0.tar.xz

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

Other differences:
------------------
++++++ kwidgetsaddons.spec ++++++
--- /var/tmp/diff_new_pack.M1M0mw/_old  2016-05-19 12:09:59.000000000 +0200
+++ /var/tmp/diff_new_pack.M1M0mw/_new  2016-05-19 12:09:59.000000000 +0200
@@ -18,9 +18,9 @@
 
 %bcond_without lang
 %define lname   libKF5WidgetsAddons5
-%define _tar_path 5.21
+%define _tar_path 5.22
 Name:           kwidgetsaddons
-Version:        5.21.0
+Version:        5.22.0
 Release:        0
 BuildRequires:  cmake >= 2.8.12
 BuildRequires:  extra-cmake-modules >= %{_tar_path}

++++++ kwidgetsaddons-5.21.0.tar.xz -> kwidgetsaddons-5.22.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwidgetsaddons-5.21.0/CMakeLists.txt 
new/kwidgetsaddons-5.22.0/CMakeLists.txt
--- old/kwidgetsaddons-5.21.0/CMakeLists.txt    2016-04-03 23:05:20.000000000 
+0200
+++ new/kwidgetsaddons-5.22.0/CMakeLists.txt    2016-05-07 17:26:22.000000000 
+0200
@@ -3,7 +3,7 @@
 project(KWidgetsAddons)
 
 include(FeatureSummary)
-find_package(ECM 5.21.0  NO_MODULE)
+find_package(ECM 5.22.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)
 
@@ -24,7 +24,7 @@
 
 include(ECMPoQmTools)
 
-set(KF5_VERSION "5.21.0") # handled by release scripts
+set(KF5_VERSION "5.22.0") # handled by release scripts
 
 ecm_setup_version(${KF5_VERSION} VARIABLE_PREFIX KWIDGETSADDONS
                         VERSION_HEADER 
"${CMAKE_CURRENT_BINARY_DIR}/kwidgetsaddons_version.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kwidgetsaddons-5.21.0/autotests/knewpasswordwidgettest.cpp 
new/kwidgetsaddons-5.22.0/autotests/knewpasswordwidgettest.cpp
--- old/kwidgetsaddons-5.21.0/autotests/knewpasswordwidgettest.cpp      
2016-04-03 23:05:20.000000000 +0200
+++ new/kwidgetsaddons-5.22.0/autotests/knewpasswordwidgettest.cpp      
2016-05-07 17:26:22.000000000 +0200
@@ -226,3 +226,42 @@
     lineVerifyPassword->setText(QStringLiteral("12345"));
     QCOMPARE(lineVerifyPassword->palette().color(QPalette::Base), 
warningColor);
 }
+
+void KNewPasswordWidgetTest::disablingWidgetShouldUseDisabledPalette()
+{
+    KNewPasswordWidget pwdWidget;
+
+    auto linePassword = 
pwdWidget.findChild<QLineEdit*>(QStringLiteral("linePassword"));
+    auto lineVerifyPassword = 
pwdWidget.findChild<QLineEdit*>(QStringLiteral("lineVerifyPassword"));
+
+    QVERIFY(linePassword && linePassword->isEnabled());
+    QVERIFY(lineVerifyPassword && lineVerifyPassword->isEnabled());
+
+    pwdWidget.setEnabled(false);
+
+    QVERIFY(!linePassword->isEnabled());
+    QVERIFY(!lineVerifyPassword->isEnabled());
+
+    QCOMPARE(linePassword->palette(), pwdWidget.palette());
+    QCOMPARE(lineVerifyPassword->palette(), pwdWidget.palette());
+}
+
+void KNewPasswordWidgetTest::disablingParentShouldUseDisabledPalette()
+{
+    auto widget = new QWidget();
+    widget->setEnabled(false);
+
+    auto pwdWidget = new KNewPasswordWidget(widget);
+    QVERIFY(!pwdWidget->isEnabled());
+
+    auto linePassword = 
pwdWidget->findChild<QLineEdit*>(QStringLiteral("linePassword"));
+    auto lineVerifyPassword = 
pwdWidget->findChild<QLineEdit*>(QStringLiteral("lineVerifyPassword"));
+
+    QVERIFY(linePassword && !linePassword->isEnabled());
+    QVERIFY(lineVerifyPassword && !lineVerifyPassword->isEnabled());
+
+    QCOMPARE(linePassword->palette(), widget->palette());
+    QCOMPARE(lineVerifyPassword->palette(), widget->palette());
+
+    delete widget;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kwidgetsaddons-5.21.0/autotests/knewpasswordwidgettest.h 
new/kwidgetsaddons-5.22.0/autotests/knewpasswordwidgettest.h
--- old/kwidgetsaddons-5.21.0/autotests/knewpasswordwidgettest.h        
2016-04-03 23:05:20.000000000 +0200
+++ new/kwidgetsaddons-5.22.0/autotests/knewpasswordwidgettest.h        
2016-05-07 17:26:22.000000000 +0200
@@ -40,6 +40,8 @@
     void testNoWarningColorBeforeMismatch();
     void testWarningColorIfMismatch();
     void testWarningColorPostMatch();
+    void disablingWidgetShouldUseDisabledPalette();
+    void disablingParentShouldUseDisabledPalette();
 };
 
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwidgetsaddons-5.21.0/po/de/kwidgetsaddons5_qt.po 
new/kwidgetsaddons-5.22.0/po/de/kwidgetsaddons5_qt.po
--- old/kwidgetsaddons-5.21.0/po/de/kwidgetsaddons5_qt.po       2016-04-03 
23:05:20.000000000 +0200
+++ new/kwidgetsaddons-5.22.0/po/de/kwidgetsaddons5_qt.po       2016-05-07 
17:26:22.000000000 +0200
@@ -5,7 +5,7 @@
 # Georg Schuster <[email protected]>, 2005.
 # Thomas Reitelbach <[email protected]>, 2005, 2006, 2007, 2008, 2009.
 # Burkhard Lück <[email protected]>, 2006, 2007, 2009, 2010, 2011, 2012, 
2013, 2014, 2015.
-# Frederik Schwarzer <[email protected]>, 2007, 2008, 2009, 2010, 2011, 2012, 
2013, 2014, 2015.
+# Frederik Schwarzer <[email protected]>, 2007, 2008, 2009, 2010, 2011, 2012, 
2013, 2014, 2015, 2016.
 # Johannes Obermayr <[email protected]>, 2010.
 # Panagiotis Papadopoulos <[email protected]>, 2010.
 # Rolf Eike Beer <[email protected]>, 2012.
@@ -14,7 +14,7 @@
 "Project-Id-Version: kdelibs4\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n";
 "POT-Creation-Date: 2014-03-23 01:50+0000\n"
-"PO-Revision-Date: 2015-10-25 00:06+0100\n"
+"PO-Revision-Date: 2016-04-29 14:19+0100\n"
 "Last-Translator: Frederik Schwarzer <[email protected]>\n"
 "Language-Team: German <[email protected]>\n"
 "Language: de\n"
@@ -1470,7 +1470,7 @@
 #: kfontchooser.cpp:182
 msgctxt "KFontChooser|"
 msgid "Requested Font"
-msgstr "Gewünschte Schrift"
+msgstr "Gewünschte Schriftart"
 
 #: kfontchooser.cpp:199
 msgctxt "KFontChooser|@option:check"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwidgetsaddons-5.21.0/po/nl/kwidgetsaddons5_qt.po 
new/kwidgetsaddons-5.22.0/po/nl/kwidgetsaddons5_qt.po
--- old/kwidgetsaddons-5.21.0/po/nl/kwidgetsaddons5_qt.po       2016-04-03 
23:05:20.000000000 +0200
+++ new/kwidgetsaddons-5.22.0/po/nl/kwidgetsaddons5_qt.po       2016-05-07 
17:26:22.000000000 +0200
@@ -13,13 +13,13 @@
 # Kristof Bal <[email protected]>, 2008, 2009.
 # Freek de Kruijf <[email protected]>, 2009, 2010.
 # Freek de Kruijf <[email protected]>, 2010, 2011, 2012.
-# Freek de Kruijf <[email protected]>, 2010, 2011, 2013, 2014, 2015.
+# Freek de Kruijf <[email protected]>, 2010, 2011, 2013, 2014, 2015, 2016.
 msgid ""
 msgstr ""
 "Project-Id-Version: kdelibs4\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n";
 "POT-Creation-Date: 2014-03-23 01:50+0000\n"
-"PO-Revision-Date: 2015-10-14 16:21+0200\n"
+"PO-Revision-Date: 2016-04-13 15:39+0100\n"
 "Last-Translator: Freek de Kruijf <[email protected]>\n"
 "Language-Team: Dutch <[email protected]>\n"
 "Language: nl\n"
@@ -28,7 +28,7 @@
 "Content-Transfer-Encoding: 8bit\n"
 "Files: kfarch.cpp kfdird.cpp kfind.cpp kfindtop.cpp kfoptions.cpp kfsave.cpp "
 "kftabdlg.cpp kftypes.cpp kfwin.cpp main.cpp mkfdird.cpp mkfind.cpp\n"
-"X-Generator: Lokalize 1.5\n"
+"X-Generator: Lokalize 2.0\n"
 "Plural-Forms: nplurals=2; plural=n != 1;\n"
 "X-Qt-Contexts: true\n"
 
@@ -1475,7 +1475,7 @@
 #: kfontchooser.cpp:182
 msgctxt "KFontChooser|"
 msgid "Requested Font"
-msgstr "Lettertype instellen"
+msgstr "Gevraagde lettertype"
 
 #: kfontchooser.cpp:199
 msgctxt "KFontChooser|@option:check"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwidgetsaddons-5.21.0/po/nn/kwidgetsaddons5_qt.po 
new/kwidgetsaddons-5.22.0/po/nn/kwidgetsaddons5_qt.po
--- old/kwidgetsaddons-5.21.0/po/nn/kwidgetsaddons5_qt.po       2016-04-03 
23:05:20.000000000 +0200
+++ new/kwidgetsaddons-5.22.0/po/nn/kwidgetsaddons5_qt.po       2016-05-07 
17:26:22.000000000 +0200
@@ -2,14 +2,14 @@
 #
 # Gaute Hvoslef Kvalnes <[email protected]>, 2003, 2004, 2005, 2006.
 # Håvard Korsvoll <[email protected]>, 2003, 2005.
-# Karl Ove Hufthammer <[email protected]>, 2004, 2007, 2008, 2009, 2010, 2011, 
2012, 2013, 2014, 2015.
+# Karl Ove Hufthammer <[email protected]>, 2004, 2007, 2008, 2009, 2010, 2011, 
2012, 2013, 2014, 2015, 2016.
 # Eirik U. Birkeland <[email protected]>, 2008, 2009, 2010.
 msgid ""
 msgstr ""
 "Project-Id-Version: kdelibs4\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n";
 "POT-Creation-Date: 2014-02-28 03:44+0000\n"
-"PO-Revision-Date: 2015-08-28 19:17+0100\n"
+"PO-Revision-Date: 2016-04-24 21:17+0100\n"
 "Last-Translator: Karl Ove Hufthammer <[email protected]>\n"
 "Language-Team: Norwegian Nynorsk <[email protected]>\n"
 "Language: nn\n"
@@ -1801,26 +1801,32 @@
 "case letters;</li><li>using numbers or symbols, such as #, as well as "
 "letters.</li></ul>"
 msgstr ""
+"Styrkemålaren for passord prøver å visa kor sikkert passordet er. For å laga "
+"eit sikrare passord, kan du bruka:\n"
+"<ul>\n"
+"<li>eit lengre passord</li><li>ei blanding av store og små bokstavar</"
+"li><li>tal eller symbol, som #, i tillegg til bokstavar</li>\n"
+"</ul>"
 
 #: knewpasswordwidget.cpp:77
 msgctxt "KNewPasswordWidget|"
 msgid "Change the visibility of the password"
-msgstr ""
+msgstr "Endra om passordet skal vera synleg"
 
 #: knewpasswordwidget.ui:19
 msgctxt "KNewPasswordWidget|"
 msgid "Password:"
-msgstr ""
+msgstr "Passord:"
 
 #: knewpasswordwidget.ui:29
 msgctxt "KNewPasswordWidget|"
 msgid "&Verify:"
-msgstr ""
+msgstr "&Stadfest:"
 
 #: knewpasswordwidget.ui:60
 msgctxt "KNewPasswordWidget|"
 msgid "Password strength &meter:"
-msgstr ""
+msgstr "Styrke&målar for passord:"
 
 #: kpassworddialog.cpp:71
 msgctxt "KPasswordDialog|"
@@ -1830,7 +1836,7 @@
 #: kpassworddialog.cpp:131
 msgctxt "KPasswordDialog|"
 msgid "Change the visibility of the password"
-msgstr ""
+msgstr "Endra om passordet skal vera synleg"
 
 #: kpassworddialog.ui:25
 msgctxt "KPasswordDialog|"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwidgetsaddons-5.21.0/src/kmessagebox.h 
new/kwidgetsaddons-5.22.0/src/kmessagebox.h
--- old/kwidgetsaddons-5.21.0/src/kmessagebox.h 2016-04-03 23:05:20.000000000 
+0200
+++ new/kwidgetsaddons-5.22.0/src/kmessagebox.h 2016-05-07 17:26:22.000000000 
+0200
@@ -541,7 +541,7 @@
         Options options = Notify);
 
 /**
- * Display an "Sorry" dialog.
+ * Display a "Sorry" dialog.
  *
  * @param parent  Parent widget.
  * @param text    Message string.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwidgetsaddons-5.21.0/src/knewpasswordwidget.cpp 
new/kwidgetsaddons-5.22.0/src/knewpasswordwidget.cpp
--- old/kwidgetsaddons-5.21.0/src/knewpasswordwidget.cpp        2016-04-03 
23:05:20.000000000 +0200
+++ new/kwidgetsaddons-5.22.0/src/knewpasswordwidget.cpp        2016-05-07 
17:26:22.000000000 +0200
@@ -81,7 +81,7 @@
     connect(ui.linePassword, SIGNAL(textChanged(QString)), q, 
SLOT(_k_textChanged()));
     connect(ui.lineVerifyPassword, SIGNAL(textChanged(QString)), q, 
SLOT(_k_textChanged()));
 
-    defaultBackgroundColor = q->palette().color(QPalette::Base);
+    defaultBackgroundColor = q->palette().color(QPalette::Active, 
QPalette::Base);
     backgroundWarningColor = defaultBackgroundColor;
 
     _k_textChanged();
@@ -96,7 +96,7 @@
     const int minPasswordLength = q->minimumPasswordLength();
 
     QPalette palette = q->palette();
-    palette.setColor(QPalette::Base, (match || partialMatch) ? 
defaultBackgroundColor : backgroundWarningColor);
+    palette.setColor(QPalette::Active, QPalette::Base, (match || partialMatch) 
? defaultBackgroundColor : backgroundWarningColor);
     ui.lineVerifyPassword->setPalette(palette);
 
     // Password strength calculator
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwidgetsaddons-5.21.0/src/knewpasswordwidget.ui 
new/kwidgetsaddons-5.22.0/src/knewpasswordwidget.ui
--- old/kwidgetsaddons-5.21.0/src/knewpasswordwidget.ui 2016-04-03 
23:05:20.000000000 +0200
+++ new/kwidgetsaddons-5.22.0/src/knewpasswordwidget.ui 2016-05-07 
17:26:22.000000000 +0200
@@ -81,12 +81,6 @@
      <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>20</width>
-       <height>40</height>
-      </size>
-     </property>
     </spacer>
    </item>
   </layout>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwidgetsaddons-5.21.0/tests/CMakeLists.txt 
new/kwidgetsaddons-5.22.0/tests/CMakeLists.txt
--- old/kwidgetsaddons-5.21.0/tests/CMakeLists.txt      2016-04-03 
23:05:20.000000000 +0200
+++ new/kwidgetsaddons-5.22.0/tests/CMakeLists.txt      2016-05-07 
17:26:22.000000000 +0200
@@ -37,6 +37,7 @@
   kassistantdialogtest
   kmessagewidgettest
   knewpassworddialogtest
+  knewpasswordwidget_test
   kpixmapsequenceoverlaypaintertest
   kmimetypechoosertest
   ksplittercollapserbuttongui_test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kwidgetsaddons-5.21.0/tests/knewpasswordwidget_test.cpp 
new/kwidgetsaddons-5.22.0/tests/knewpasswordwidget_test.cpp
--- old/kwidgetsaddons-5.21.0/tests/knewpasswordwidget_test.cpp 1970-01-01 
01:00:00.000000000 +0100
+++ new/kwidgetsaddons-5.22.0/tests/knewpasswordwidget_test.cpp 2016-05-07 
17:26:22.000000000 +0200
@@ -0,0 +1,55 @@
+/*
+    Copyright (c) 2016 Elvis Angelaccio <[email protected]>
+
+    This library 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 of the License, or (at your option) any later version.
+
+    This library 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
+    Library General Public License for more details.
+
+    You should have received a copy of the GNU Library General Public License
+    along with this library; see the file COPYING.LIB.  If not, write to
+    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+    Boston, MA 02110-1301, USA.
+*/
+
+#include <QApplication>
+#include <QCheckBox>
+#include <QVBoxLayout>
+
+#include <kcollapsiblegroupbox.h>
+#include <knewpasswordwidget.h>
+
+
+int main(int argc, char *argv[])
+{
+    QApplication app(argc, argv);
+    app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
+
+    QWidget mainWindow;
+    QVBoxLayout mainWindowLayout(&mainWindow);
+
+    KCollapsibleGroupBox collapsible(&mainWindow);
+    collapsible.setExpanded(true);
+    collapsible.setTitle(QStringLiteral("A collapsible groupbox"));
+
+    KNewPasswordWidget pwdWidget(&collapsible);
+    pwdWidget.setPasswordStrengthMeterVisible(false);
+
+    QCheckBox checkbox(QStringLiteral("A checkbox"), &collapsible);
+
+    QVBoxLayout *layout = new QVBoxLayout(&collapsible);
+    layout->addWidget(&pwdWidget);
+    layout->addWidget(&checkbox);
+
+    mainWindowLayout.addWidget(&collapsible);
+    mainWindow.setLayout(&mainWindowLayout);
+    mainWindow.show();
+
+    return app.exec();
+}
+


Reply via email to