Hello community,

here is the log from the commit of package libyui-qt for openSUSE:Factory 
checked in at 2020-10-29 09:21:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-qt (Old)
 and      /work/SRC/openSUSE:Factory/.libyui-qt.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui-qt"

Thu Oct 29 09:21:17 2020 rev:74 rq:843582 version:2.56.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-qt/libyui-qt.changes      2020-10-18 
16:22:29.876519576 +0200
+++ /work/SRC/openSUSE:Factory/.libyui-qt.new.3463/libyui-qt.changes    
2020-10-29 09:21:20.654632414 +0100
@@ -1,0 +2,6 @@
+Thu Oct 15 13:47:14 UTC 2020 - Stefan Hundhammer <shundham...@suse.com>
+
+- Added support for OpenItems property for (nested) tables (bsc#1176402)
+- 2.56.1
+
+-------------------------------------------------------------------

Old:
----
  libyui-qt-2.56.0.tar.bz2

New:
----
  libyui-qt-2.56.1.tar.bz2

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

Other differences:
------------------
++++++ libyui-qt-doc.spec ++++++
--- /var/tmp/diff_new_pack.ZieCXY/_old  2020-10-29 09:21:21.334633065 +0100
+++ /var/tmp/diff_new_pack.ZieCXY/_new  2020-10-29 09:21:21.338633069 +0100
@@ -21,7 +21,7 @@
 
 Name:           %{parent}-doc
 # DO NOT manually bump the version here; instead, use   rake version:bump
-Version:        2.56.0
+Version:        2.56.1
 Release:        0
 Source:         %{parent}-%{version}.tar.bz2
 

++++++ libyui-qt.spec ++++++
--- /var/tmp/diff_new_pack.ZieCXY/_old  2020-10-29 09:21:21.354633085 +0100
+++ /var/tmp/diff_new_pack.ZieCXY/_new  2020-10-29 09:21:21.358633089 +0100
@@ -18,7 +18,7 @@
 
 Name:           libyui-qt
 # DO NOT manually bump the version here; instead, use   rake version:bump
-Version:        2.56.0
+Version:        2.56.1
 Release:        0
 Source:         %{name}-%{version}.tar.bz2
 

++++++ libyui-qt-2.56.0.tar.bz2 -> libyui-qt-2.56.1.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.56.0/VERSION.cmake 
new/libyui-qt-2.56.1/VERSION.cmake
--- old/libyui-qt-2.56.0/VERSION.cmake  2020-10-12 12:17:36.000000000 +0200
+++ new/libyui-qt-2.56.1/VERSION.cmake  2020-10-23 12:06:43.000000000 +0200
@@ -1,6 +1,6 @@
 SET(VERSION_MAJOR "2")
 SET(VERSION_MINOR "56")
-SET(VERSION_PATCH "0")
+SET(VERSION_PATCH "1")
 SET( VERSION 
"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${GIT_SHA1_VERSION}" )
 
 ##### This is needed for the libyui-qt core ONLY.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.56.0/package/libyui-qt-doc.spec 
new/libyui-qt-2.56.1/package/libyui-qt-doc.spec
--- old/libyui-qt-2.56.0/package/libyui-qt-doc.spec     2020-10-12 
12:17:36.000000000 +0200
+++ new/libyui-qt-2.56.1/package/libyui-qt-doc.spec     2020-10-23 
12:06:43.000000000 +0200
@@ -21,7 +21,7 @@
 
 Name:           %{parent}-doc
 # DO NOT manually bump the version here; instead, use   rake version:bump
-Version:        2.56.0
+Version:        2.56.1
 Release:        0
 Source:         %{parent}-%{version}.tar.bz2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.56.0/package/libyui-qt.changes 
new/libyui-qt-2.56.1/package/libyui-qt.changes
--- old/libyui-qt-2.56.0/package/libyui-qt.changes      2020-10-12 
12:17:36.000000000 +0200
+++ new/libyui-qt-2.56.1/package/libyui-qt.changes      2020-10-23 
12:06:43.000000000 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Thu Oct 15 13:47:14 UTC 2020 - Stefan Hundhammer <shundham...@suse.com>
+
+- Added support for OpenItems property for (nested) tables (bsc#1176402)
+- 2.56.1
+
+-------------------------------------------------------------------
 Fri Oct  9 07:41:44 UTC 2020 - José Iván López González <jlo...@suse.com>
 
 - Resolve hotkeys conflicts for widgets with multiple hotkeys
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.56.0/package/libyui-qt.spec 
new/libyui-qt-2.56.1/package/libyui-qt.spec
--- old/libyui-qt-2.56.0/package/libyui-qt.spec 2020-10-12 12:17:36.000000000 
+0200
+++ new/libyui-qt-2.56.1/package/libyui-qt.spec 2020-10-23 12:06:43.000000000 
+0200
@@ -18,7 +18,7 @@
 
 Name:           libyui-qt
 # DO NOT manually bump the version here; instead, use   rake version:bump
-Version:        2.56.0
+Version:        2.56.1
 Release:        0
 Source:         %{name}-%{version}.tar.bz2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.56.0/src/YQTable.cc 
new/libyui-qt-2.56.1/src/YQTable.cc
--- old/libyui-qt-2.56.0/src/YQTable.cc 2020-10-12 12:17:36.000000000 +0200
+++ new/libyui-qt-2.56.1/src/YQTable.cc 2020-10-23 12:06:43.000000000 +0200
@@ -41,6 +41,8 @@
 #include "YQApplication.h"
 
 
+#define INDENTATION_WIDTH 10
+
 using std::endl;
 
 
@@ -62,6 +64,7 @@
     YUI_CHECK_NEW( _qt_listView );
     layout->addWidget( _qt_listView );
     _qt_listView->setAllColumnsShowFocus( true );
+    _qt_listView->setIndentation( INDENTATION_WIDTH );
     _qt_listView->header()->setStretchLastSection( false );
 
     setKeepSorting(  keepSorting() );
@@ -98,6 +101,12 @@
     connect( _qt_listView,      
&pclass(_qt_listView)::customContextMenuRequested,
              this,             &pclass(this)::slotContextMenu );
 
+    connect( _qt_listView,     &pclass(_qt_listView)::itemExpanded,
+            this,              &pclass(this)::slotItemExpanded );
+
+    connect( _qt_listView,     &pclass(_qt_listView)::itemCollapsed,
+            this,              &pclass(this)::slotItemCollapsed );
+
     if ( multiSelectionMode )
     {
        // This is the exceptional case - avoid performance drop in the normal 
case
@@ -246,6 +255,29 @@
 }
 
 
+void
+YQTable::slotItemExpanded( QTreeWidgetItem * qItem )
+{
+    YQTableListViewItem * item = dynamic_cast<YQTableListViewItem *> (qItem);
+
+    if ( item )
+       item->origItem()->setOpen( true );
+
+    _qt_listView->resizeColumnToContents( 0 );
+}
+
+
+void YQTable::slotItemCollapsed( QTreeWidgetItem * qItem )
+{
+    YQTableListViewItem * item = dynamic_cast<YQTableListViewItem *> (qItem);
+
+    if ( item )
+       item->origItem()->setOpen( false );
+
+    _qt_listView->resizeColumnToContents( 0 );
+}
+
+
 void
 YQTable::deselectAllItems()
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.56.0/src/YQTable.h 
new/libyui-qt-2.56.1/src/YQTable.h
--- old/libyui-qt-2.56.0/src/YQTable.h  2020-10-12 12:17:36.000000000 +0200
+++ new/libyui-qt-2.56.1/src/YQTable.h  2020-10-23 12:06:43.000000000 +0200
@@ -162,6 +162,17 @@
     void slotActivated( QTreeWidgetItem * );
 
     /**
+     * Propagate an "item expanded" event to the underlying YTableItem.
+     **/
+    void slotItemExpanded( QTreeWidgetItem * item );
+
+    /**
+     * Propagate an "item collapsed" event to the underlying YTableItem.
+     **/
+    void slotItemCollapsed( QTreeWidgetItem * item );
+
+
+    /**
      * Propagate a context menu selection.
      *
      * This will trigger a 'ContextMenuActivated' event if 'notifyContextMenu' 
is set.


Reply via email to