Hello community,

here is the log from the commit of package libkdecoration2 for openSUSE:Factory 
checked in at 2015-05-11 19:30:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libkdecoration2 (Old)
 and      /work/SRC/openSUSE:Factory/.libkdecoration2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libkdecoration2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libkdecoration2/libkdecoration2.changes  
2015-03-25 09:58:49.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libkdecoration2.new/libkdecoration2.changes     
2015-05-11 19:30:45.000000000 +0200
@@ -1,0 +2,16 @@
+Thu Apr 23 13:27:29 UTC 2015 - [email protected]
+
+- Update to 5.3 Final:
+  * For more details please see:
+    https://www.kde.org/announcements/plasma-5.3.0.php
+
+-------------------------------------------------------------------
+Sat Apr 11 18:53:44 UTC 2015 - [email protected]
+
+- Update to 5.2.95 aka 5.3 beta:
+  * New feature release
+  * For more details please see:
+    https://www.kde.org/announcements/plasma-5.2.95.php
+- Update required Qt version to 5.4.0
+
+-------------------------------------------------------------------

Old:
----
  kdecoration-5.2.2.tar.xz

New:
----
  kdecoration-5.3.0.tar.xz

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

Other differences:
------------------
++++++ libkdecoration2.spec ++++++
--- /var/tmp/diff_new_pack.Sc3urA/_old  2015-05-11 19:30:45.000000000 +0200
+++ /var/tmp/diff_new_pack.Sc3urA/_new  2015-05-11 19:30:45.000000000 +0200
@@ -19,14 +19,14 @@
 %define lname           libkdecorations2-5
 %define lname_private   libkdecorations2private5
 Name:           libkdecoration2
-Version:        5.2.2
+Version:        5.3.0
 Release:        0
 BuildRequires:  cmake >= 2.8.12
 BuildRequires:  extra-cmake-modules >= 0.0.11
 BuildRequires:  kf5-filesystem
-BuildRequires:  pkgconfig(Qt5Core) >= 5.3.0
-BuildRequires:  pkgconfig(Qt5Gui) >= 5.3.0
-BuildRequires:  pkgconfig(Qt5Test) >= 5.3.0
+BuildRequires:  pkgconfig(Qt5Core) >= 5.4.0
+BuildRequires:  pkgconfig(Qt5Gui) >= 5.4.0
+BuildRequires:  pkgconfig(Qt5Test) >= 5.4.0
 Summary:        KDE's window decorations library
 License:        GPL-2.0+
 Group:          System/GUI/KDE
@@ -43,7 +43,7 @@
 Group:          Development/Libraries/C and C++
 Requires:       %{lname_private} = %{version}
 Requires:       %{lname} = %{version}
-Requires:       pkgconfig(Qt5Gui) >= 5.3.0
+Requires:       pkgconfig(Qt5Gui) >= 5.4.0
 Obsoletes:      libkdecorations-devel
 
 %description devel

++++++ kdecoration-5.2.2.tar.xz -> kdecoration-5.3.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdecoration-5.2.2/CMakeLists.txt 
new/kdecoration-5.3.0/CMakeLists.txt
--- old/kdecoration-5.2.2/CMakeLists.txt        2015-03-19 13:31:08.000000000 
+0100
+++ new/kdecoration-5.3.0/CMakeLists.txt        2015-04-23 12:19:02.000000000 
+0200
@@ -1,5 +1,5 @@
 project(decoration-api)
-set(PROJECT_VERSION "5.2.2")
+set(PROJECT_VERSION "5.3.0")
 
 cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
 
@@ -19,7 +19,7 @@
                         SOVERSION 5)
 
 #dependencies
-set(REQUIRED_QT_VERSION 5.3.0)
+set(REQUIRED_QT_VERSION 5.4.0)
 find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED COMPONENTS
     Core
     Gui
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdecoration-5.2.2/src/CMakeLists.txt 
new/kdecoration-5.3.0/src/CMakeLists.txt
--- old/kdecoration-5.2.2/src/CMakeLists.txt    2015-03-19 13:31:08.000000000 
+0100
+++ new/kdecoration-5.3.0/src/CMakeLists.txt    2015-04-23 12:19:02.000000000 
+0200
@@ -50,12 +50,6 @@
     FILES
         ${CMAKE_CURRENT_BINARY_DIR}/kdecoration2/kdecoration2_export.h
         ${KDecoration2_HEADERS}
-        decoratedclient.h
-        decoration.h
-        decorationbutton.h
-        decorationbuttongroup.h
-        decorationsettings.h
-        decorationshadow.h
         decorationdefines.h
     DESTINATION
         ${KDECORATION2_INCLUDEDIR}/kdecoration2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdecoration-5.2.2/src/decoratedclient.cpp 
new/kdecoration-5.3.0/src/decoratedclient.cpp
--- old/kdecoration-5.2.2/src/decoratedclient.cpp       2015-03-19 
13:31:08.000000000 +0100
+++ new/kdecoration-5.3.0/src/decoratedclient.cpp       2015-04-23 
12:19:02.000000000 +0200
@@ -22,6 +22,8 @@
 #include "private/decorationbridge.h"
 #include "decoration.h"
 
+#include <QColor>
+
 namespace KDecoration2
 {
 
@@ -72,4 +74,14 @@
     return QPointer<Decoration>(d->decoration());
 }
 
+QColor DecoratedClient::color(QPalette::ColorGroup group, QPalette::ColorRole 
role) const
+{
+    return d->palette().color(group, role);
+}
+
+QColor DecoratedClient::color(ColorGroup group, ColorRole role) const
+{
+    return d->color(group, role);
+}
+
 } // namespace
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdecoration-5.2.2/src/decoratedclient.h 
new/kdecoration-5.3.0/src/decoratedclient.h
--- old/kdecoration-5.2.2/src/decoratedclient.h 2015-03-19 13:31:08.000000000 
+0100
+++ new/kdecoration-5.3.0/src/decoratedclient.h 2015-04-23 12:19:02.000000000 
+0200
@@ -21,6 +21,7 @@
 #define KDECORATION2_DECORATED_CLIENT_H
 
 #include <kdecoration2/kdecoration2_export.h>
+#include "decorationdefines.h"
 
 #include <QObject>
 #include <QPointer>
@@ -203,6 +204,22 @@
 
     QPointer<Decoration> decoration() const;
     QPalette palette() const;
+    /**
+     * Used to get colors in QPalette.
+     * @param group The color group
+     * @param role The color role
+     * @return palette().color(group, role)
+     * @since 5.3
+     **/
+    QColor color(QPalette::ColorGroup group, QPalette::ColorRole role) const;
+    /**
+     * Used to get additional colors that are not in QPalette.
+     * @param group The color group
+     * @param role The color role
+     * @return The color if provided for combination of group and role, 
otherwise invalid QColor.
+     * @since 5.3
+     **/
+    QColor color(ColorGroup group, ColorRole role) const;
 
 Q_SIGNALS:
     void activeChanged(bool);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdecoration-5.2.2/src/decorationdefines.h 
new/kdecoration-5.3.0/src/decorationdefines.h
--- old/kdecoration-5.2.2/src/decorationdefines.h       2015-03-19 
13:31:08.000000000 +0100
+++ new/kdecoration-5.3.0/src/decorationdefines.h       2015-04-23 
12:19:02.000000000 +0200
@@ -135,6 +135,45 @@
     Oversized
 };
 
+/**
+ * Color groups are used for DecoratedClient::color().
+ * @since 5.3
+ **/
+enum class ColorGroup {
+    /**
+     * Inactive color, used for unfocused windows.
+     **/
+    Inactive,
+    /**
+     * Active color, used for focused windows.
+     **/
+    Active,
+    /**
+     * Warning color, can only be used with ColorRole::Foreground. If used 
with other roles,
+     * a invalid QColor is returned. It can be used for close buttons and is 
typically red.
+     **/
+    Warning
+};
+
+/**
+ * Color roles are used for DecoratedClient::color().
+ * @since 5.3
+ **/
+enum class ColorRole {
+    /**
+     * The decoration's frame background color.
+     **/
+    Frame,
+    /**
+     * The decoration's title bar background color
+     **/
+    TitleBar,
+    /**
+     * The decoration's title bar forground color
+     **/
+    Foreground
+};
+
 }
 
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdecoration-5.2.2/src/private/CMakeLists.txt 
new/kdecoration-5.3.0/src/private/CMakeLists.txt
--- old/kdecoration-5.2.2/src/private/CMakeLists.txt    2015-03-19 
13:31:08.000000000 +0100
+++ new/kdecoration-5.3.0/src/private/CMakeLists.txt    2015-04-23 
12:19:02.000000000 +0200
@@ -48,9 +48,6 @@
     FILES
         
${CMAKE_CURRENT_BINARY_DIR}/kdecoration2/private/kdecoration2_private_export.h
         ${KDecoration2Private_HEADERS}
-        decoratedclientprivate.h
-        decorationbridge.h
-        decorationsettingsprivate.h
     DESTINATION
         ${KDECORATION2_INCLUDEDIR}/kdecoration2/private
     COMPONENT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kdecoration-5.2.2/src/private/decoratedclientprivate.cpp 
new/kdecoration-5.3.0/src/private/decoratedclientprivate.cpp
--- old/kdecoration-5.2.2/src/private/decoratedclientprivate.cpp        
2015-03-19 13:31:08.000000000 +0100
+++ new/kdecoration-5.3.0/src/private/decoratedclientprivate.cpp        
2015-04-23 12:19:02.000000000 +0200
@@ -19,6 +19,8 @@
  */
 #include "decoratedclientprivate.h"
 
+#include <QColor>
+
 namespace KDecoration2
 {
 
@@ -58,4 +60,12 @@
     return d->client;
 }
 
+QColor DecoratedClientPrivate::color(ColorGroup group, ColorRole role) const
+{
+    Q_UNUSED(role)
+    Q_UNUSED(group)
+
+    return QColor();
+}
+
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kdecoration-5.2.2/src/private/decoratedclientprivate.h 
new/kdecoration-5.3.0/src/private/decoratedclientprivate.h
--- old/kdecoration-5.2.2/src/private/decoratedclientprivate.h  2015-03-19 
13:31:08.000000000 +0100
+++ new/kdecoration-5.3.0/src/private/decoratedclientprivate.h  2015-04-23 
12:19:02.000000000 +0200
@@ -21,6 +21,7 @@
 #define KDECORATION2_DECORATED_CLIENT_PRIVATE_H
 
 #include <kdecoration2/private/kdecoration2_private_export.h>
+#include "../decorationdefines.h"
 
 #include <QString>
 #include <QIcon>
@@ -88,6 +89,8 @@
     Decoration *decoration();
     Decoration *decoration() const;
 
+    virtual QColor color(ColorGroup group, ColorRole role) const;
+
 protected:
     explicit DecoratedClientPrivate(DecoratedClient *client, Decoration 
*decoration);
     DecoratedClient *client();


Reply via email to