Hello community,

here is the log from the commit of package libyui-qt for openSUSE:Factory 
checked in at 2016-10-01 23:50:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-qt (Old)
 and      /work/SRC/openSUSE:Factory/.libyui-qt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui-qt"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-qt/libyui-qt.changes      2016-08-26 
23:13:37.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libyui-qt.new/libyui-qt.changes 2016-10-01 
23:50:14.000000000 +0200
@@ -1,0 +2,15 @@
+Sun Sep 25 18:49:32 CEST 2016 - [email protected]
+
+- Fix compilation with Qt 5.7 by using non-deprecated classes
+  (boo#1001141).
+
+-------------------------------------------------------------------
+Wed Sep 21 14:23:21 CEST 2016 - [email protected]
+
+- Force showing widgets that were added after opening a dialog
+  (bsc#998593)
+- Deliver timeout events only if the delivering dialog is still
+  the topmost (can only happen with Ctrl-Shift-Alt key combos)
+- 2.46.25
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ libyui-qt-doc.spec ++++++
--- /var/tmp/diff_new_pack.o4nlXA/_old  2016-10-01 23:50:15.000000000 +0200
+++ /var/tmp/diff_new_pack.o4nlXA/_new  2016-10-01 23:50:15.000000000 +0200
@@ -20,7 +20,7 @@
 %define so_version 7
 
 Name:           %{parent}-doc
-Version:        2.46.24
+Version:        2.46.26
 Release:        0
 Source:         %{parent}-%{version}.tar.bz2
 

++++++ libyui-qt.spec ++++++
--- /var/tmp/diff_new_pack.o4nlXA/_old  2016-10-01 23:50:15.000000000 +0200
+++ /var/tmp/diff_new_pack.o4nlXA/_new  2016-10-01 23:50:15.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           libyui-qt
-Version:        2.46.24
+Version:        2.46.26
 Release:        0
 Source:         %{name}-%{version}.tar.bz2
 

++++++ libyui-qt-2.46.24.tar.bz2 -> libyui-qt-2.46.26.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.46.24/VERSION.cmake 
new/libyui-qt-2.46.26/VERSION.cmake
--- old/libyui-qt-2.46.24/VERSION.cmake 2016-08-22 17:02:49.000000000 +0200
+++ new/libyui-qt-2.46.26/VERSION.cmake 2016-09-26 13:49:10.000000000 +0200
@@ -1,6 +1,6 @@
 SET(VERSION_MAJOR "2")
 SET(VERSION_MINOR "46")
-SET(VERSION_PATCH "24")
+SET(VERSION_PATCH "26")
 SET( VERSION 
"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${GIT_SHA1_VERSION}" )
 
 ##### This is need for the libyui core, ONLY.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.46.24/package/libyui-qt-doc.spec 
new/libyui-qt-2.46.26/package/libyui-qt-doc.spec
--- old/libyui-qt-2.46.24/package/libyui-qt-doc.spec    2016-08-22 
17:11:52.000000000 +0200
+++ new/libyui-qt-2.46.26/package/libyui-qt-doc.spec    2016-09-26 
13:49:10.000000000 +0200
@@ -20,7 +20,7 @@
 %define so_version 7
 
 Name:           %{parent}-doc
-Version:        2.46.24
+Version:        2.46.26
 Release:        0
 Source:         %{parent}-%{version}.tar.bz2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.46.24/package/libyui-qt.changes 
new/libyui-qt-2.46.26/package/libyui-qt.changes
--- old/libyui-qt-2.46.24/package/libyui-qt.changes     2016-08-22 
17:02:49.000000000 +0200
+++ new/libyui-qt-2.46.26/package/libyui-qt.changes     2016-09-26 
13:49:10.000000000 +0200
@@ -1,4 +1,19 @@
 -------------------------------------------------------------------
+Sun Sep 25 18:49:32 CEST 2016 - [email protected]
+
+- Fix compilation with Qt 5.7 by using non-deprecated classes
+  (boo#1001141).
+
+-------------------------------------------------------------------
+Wed Sep 21 14:23:21 CEST 2016 - [email protected]
+
+- Force showing widgets that were added after opening a dialog
+  (bsc#998593)
+- Deliver timeout events only if the delivering dialog is still
+  the topmost (can only happen with Ctrl-Shift-Alt key combos)
+- 2.46.25
+
+-------------------------------------------------------------------
 Mon Aug 22 12:47:32 UTC 2016 - [email protected]
 
 - Do not append new line when content of log view do not change
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.46.24/package/libyui-qt.spec 
new/libyui-qt-2.46.26/package/libyui-qt.spec
--- old/libyui-qt-2.46.24/package/libyui-qt.spec        2016-08-22 
17:11:52.000000000 +0200
+++ new/libyui-qt-2.46.26/package/libyui-qt.spec        2016-09-26 
13:49:10.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           libyui-qt
-Version:        2.46.24
+Version:        2.46.26
 Release:        0
 Source:         %{name}-%{version}.tar.bz2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.46.24/src/YQDialog.cc 
new/libyui-qt-2.46.26/src/YQDialog.cc
--- old/libyui-qt-2.46.24/src/YQDialog.cc       2016-08-22 17:02:49.000000000 
+0200
+++ new/libyui-qt-2.46.26/src/YQDialog.cc       2016-09-26 13:49:10.000000000 
+0200
@@ -824,9 +824,11 @@
 void
 YQDialog::waitForEventTimeout()
 {
-    if ( ! YQUI::ui()->pendingEvent() )
+    if ( ! YQUI::ui()->pendingEvent() && isTopmostDialog() )
     {
        // Don't override a pending event with a timeout event
+        // and don't deliver the timeout event if another dialog opened in the
+        // meantime
 
        YQUI::ui()->sendEvent( new YTimeoutEvent() );
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.46.24/src/YQLayoutBox.cc 
new/libyui-qt-2.46.26/src/YQLayoutBox.cc
--- old/libyui-qt-2.46.24/src/YQLayoutBox.cc    2016-08-22 17:02:49.000000000 
+0200
+++ new/libyui-qt-2.46.26/src/YQLayoutBox.cc    2016-09-26 13:49:10.000000000 
+0200
@@ -32,6 +32,7 @@
                          YUIDimension  dimension )
     : QWidget( (QWidget *) parent->widgetRep() )
     , YLayoutBox( parent, dimension )
+    , _needToEnsureChildrenVisible( false )
 {
     setWidgetRep( this );
 }
@@ -53,8 +54,23 @@
 void YQLayoutBox::setSize( int newWidth, int newHeight )
 {
     // yuiDebug() << "Resizing " << this << " to " << newWidth << " x " << 
newHeight << std::endl;
+
+    if ( _needToEnsureChildrenVisible )
+    {
+        // This is only useful if child widgets were added after the dialog was
+        // initially created: In that case, Qt expects an explicit
+        // widget->show() call.
+        //
+        // Since we don't want to pollute the generic UI layer with such Qt
+        // specific things, we do this here since it's the next best place to
+        // handle it.
+
+        ensureChildrenVisible();
+    }
+
     resize( newWidth, newHeight );
     YLayoutBox::setSize( newWidth, newHeight );
+    _needToEnsureChildrenVisible = true;
 }
 
 
@@ -65,4 +81,24 @@
 }
 
 
+void YQLayoutBox::ensureChildrenVisible()
+{
+    // Iterate over the YWidget children, not over the QWidget children so we
+    // don't accidentially show Qt widgets that were created in addition to our
+    // explicitly created YWidgets. Otherwise, QPopupMenus (e.g. on menu
+    // buttons or on menu bars) might be opened immediately - which is not what
+    // we want here.
+
+    for ( YWidgetChildrenManager::ChildrenList::const_iterator it = 
childrenManager()->begin();
+          it != childrenManager()->end();
+          ++it )
+    {
+        QWidget * child = (QWidget *) (*it)->widgetRep();
+
+        if ( child && ! child->isVisible() )
+            child->show();
+    }
+}
+
+
 #include "YQLayoutBox.moc"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.46.24/src/YQLayoutBox.h 
new/libyui-qt-2.46.26/src/YQLayoutBox.h
--- old/libyui-qt-2.46.24/src/YQLayoutBox.h     2016-08-22 17:02:49.000000000 
+0200
+++ new/libyui-qt-2.46.26/src/YQLayoutBox.h     2016-09-26 13:49:10.000000000 
+0200
@@ -69,6 +69,17 @@
      * Reimplemented from YLayoutBox.
      **/
     virtual void moveChild( YWidget * child, int newX, int newY );
+
+protected:
+
+    /**
+     * Go through the (direct) YWidget children list and make sure the
+     * corresponding QWidget is visible.
+     **/
+    void ensureChildrenVisible();
+
+
+    bool _needToEnsureChildrenVisible;
 };
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-2.46.24/src/YQMultiProgressMeter.cc 
new/libyui-qt-2.46.26/src/YQMultiProgressMeter.cc
--- old/libyui-qt-2.46.24/src/YQMultiProgressMeter.cc   2016-08-22 
17:02:49.000000000 +0200
+++ new/libyui-qt-2.46.26/src/YQMultiProgressMeter.cc   2016-09-26 
13:49:10.000000000 +0200
@@ -28,7 +28,7 @@
 
 #include <qevent.h>
 #include <QPointF>
-#include <QStyleOptionProgressBarV2>
+#include <QStyleOptionProgressBar>
 #include <QDebug>
 #include "YQUI.h"
 #include "YQMultiProgressMeter.h"
@@ -215,7 +215,7 @@
 
     if ( vertical() )  // fill thermometer-like from bottom to top
     {
-        QStyleOptionProgressBarV2 opts;
+        QStyleOptionProgressBar opts;
         opts.initFrom(this);
         opts.progress = scaledMax - scaledProgress;
         opts.minimum = 0;
@@ -229,7 +229,7 @@
     }
     else       // horizontal - fill from left to right like a normal progress 
bar
     {
-        QStyleOptionProgressBarV2 opts;
+        QStyleOptionProgressBar opts;
         opts.initFrom(this);
         opts.progress = scaledProgress;
         opts.minimum = 0;


Reply via email to