Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libyui for openSUSE:Factory checked 
in at 2022-03-05 14:43:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui (Old)
 and      /work/SRC/openSUSE:Factory/.libyui.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui"

Sat Mar  5 14:43:32 2022 rev:76 rq:958713 version:4.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui/libyui.changes    2022-02-11 
23:08:18.870756639 +0100
+++ /work/SRC/openSUSE:Factory/.libyui.new.1958/libyui.changes  2022-03-05 
14:44:18.087714309 +0100
@@ -1,0 +2,7 @@
+Thu Mar  3 07:57:59 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Update also the stylesheet (theme) for the RichText content when
+  changing the UI theme (bsc#1196296)
+- 4.3.2
+
+-------------------------------------------------------------------

Old:
----
  libyui-4.3.1.tar.bz2

New:
----
  libyui-4.3.2.tar.bz2

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

Other differences:
------------------
++++++ libyui-bindings.spec ++++++
--- /var/tmp/diff_new_pack.7wydcc/_old  2022-03-05 14:44:18.659714454 +0100
+++ /var/tmp/diff_new_pack.7wydcc/_new  2022-03-05 14:44:18.663714455 +0100
@@ -20,7 +20,7 @@
 Name:           libyui-bindings
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 Summary:        Bindings for libyui
 License:        LGPL-2.1-only OR LGPL-3.0-only

++++++ libyui-ncurses-pkg.spec ++++++
--- /var/tmp/diff_new_pack.7wydcc/_old  2022-03-05 14:44:18.683714460 +0100
+++ /var/tmp/diff_new_pack.7wydcc/_new  2022-03-05 14:44:18.691714462 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-ncurses-pkg
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16

libyui-ncurses-rest-api.spec: same change
libyui-ncurses.spec: same change
++++++ libyui-qt-graph.spec ++++++
--- /var/tmp/diff_new_pack.7wydcc/_old  2022-03-05 14:44:18.763714480 +0100
+++ /var/tmp/diff_new_pack.7wydcc/_new  2022-03-05 14:44:18.767714481 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-qt-graph
 
 # DO NOT manually bump the version here; instead, use   rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16

++++++ libyui-qt-pkg.spec ++++++
--- /var/tmp/diff_new_pack.7wydcc/_old  2022-03-05 14:44:18.791714487 +0100
+++ /var/tmp/diff_new_pack.7wydcc/_new  2022-03-05 14:44:18.799714489 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-qt-pkg
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16

libyui-qt-rest-api.spec: same change
libyui-qt.spec: same change
libyui-rest-api.spec: same change
libyui.spec: same change
++++++ libyui-4.3.1.tar.bz2 -> libyui-4.3.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/VERSION.cmake 
new/libyui-4.3.2/VERSION.cmake
--- old/libyui-4.3.1/VERSION.cmake      2022-02-10 11:08:08.000000000 +0100
+++ new/libyui-4.3.2/VERSION.cmake      2022-03-03 10:44:51.000000000 +0100
@@ -1,6 +1,6 @@
 SET( VERSION_MAJOR "4")
 SET( VERSION_MINOR "3" )
-SET( VERSION_PATCH "1" )
+SET( VERSION_PATCH "2" )
 SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
 
 SET( SONAME_MAJOR "16" )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/libyui-qt/src/QY2Styler.cc 
new/libyui-4.3.2/libyui-qt/src/QY2Styler.cc
--- old/libyui-4.3.1/libyui-qt/src/QY2Styler.cc 2022-02-10 11:08:08.000000000 
+0100
+++ new/libyui-4.3.2/libyui-qt/src/QY2Styler.cc 2022-03-03 10:44:51.000000000 
+0100
@@ -28,8 +28,10 @@
 #include <yui/YUILog.h>
 #include <yui/YUIException.h>
 #include <yui/YSettings.h>
+#include <yui/YDialog.h>
 
 #include "QY2Styler.h"
+#include "YQRichText.h"
 #include <QApplication>
 #include <QDebug>
 #include <QDir>
@@ -234,6 +236,24 @@
     {
         registered_widget->setStyleSheet( _style );
     }
+
+    setRichTextStyleSheet( YDialog::topmostDialog( false ) );
+}
+
+
+void QY2Styler::setRichTextStyleSheet( YWidget * dialog )
+{
+    if ( ! dialog )
+        return;
+
+    QWidget * parent = (QWidget *) dialog->widgetRep();
+
+    foreach ( YQRichText * richText, parent->findChildren<YQRichText *>() )
+    {
+        richText->setRichTextStyleSheet( _textStyle );
+        // YQRichText does its own logging in that function,
+        // no need to do it here as well
+    }
 }
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/libyui-qt/src/QY2Styler.h 
new/libyui-4.3.2/libyui-qt/src/QY2Styler.h
--- old/libyui-4.3.1/libyui-qt/src/QY2Styler.h  2022-02-10 11:08:08.000000000 
+0100
+++ new/libyui-4.3.2/libyui-qt/src/QY2Styler.h  2022-03-03 10:44:51.000000000 
+0100
@@ -33,6 +33,8 @@
 #include <QImage>
 #include <QMap>
 
+class YWidget;
+
 #define HIGH_CONTRAST_STYLE_SHEET "highcontrast.qss"
 #define DEFAULT_STYLE_SHEET "style.qss"
 
@@ -216,6 +218,13 @@
     QString buildStyleSheetFromFile( const QString & filename,
                                      QStringList   & 
alreadyImportedFilenames_ret );
 
+    /**
+     * Apply the RichText style to all RichText widgets recursively.
+     *
+     * "widget" argument is the starting point, usually the top most dialog
+     */
+    void setRichTextStyleSheet(YWidget *widget);
+
     /*
      * Reimplemented from QObject.
      **/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/libyui-qt/src/YQRichText.cc 
new/libyui-4.3.2/libyui-qt/src/YQRichText.cc
--- old/libyui-4.3.1/libyui-qt/src/YQRichText.cc        2022-02-10 
11:08:08.000000000 +0100
+++ new/libyui-4.3.2/libyui-qt/src/YQRichText.cc        2022-03-03 
10:44:51.000000000 +0100
@@ -41,6 +41,7 @@
 #include "YQRichText.h"
 
 using std::string;
+using std::endl;
 
 
 static const char *colors[] = { "red", "blue", "green", 0};
@@ -102,6 +103,23 @@
 }
 
 
+// Update the style for the RichText *content*
+
+void YQRichText::setRichTextStyleSheet( const QString & style )
+{
+    yuiMilestone() << "Updating RichText stylesheet for " << this << endl;
+    _textBrowser->document()->setDefaultStyleSheet( style );
+
+    // unfortunately simple repaint() does not work here :-(
+    // so clear the content and set it back agin...
+    string scroll = vScrollValue();
+    string text = value();
+    _textBrowser->document()->clear();
+    setValue(text);
+    setVScrollValue( scroll );
+}
+
+
 void YQRichText::setValue( const string & newText )
 {
     if ( _textBrowser->horizontalScrollBar() )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/libyui-qt/src/YQRichText.h 
new/libyui-4.3.2/libyui-qt/src/YQRichText.h
--- old/libyui-4.3.1/libyui-qt/src/YQRichText.h 2022-02-10 11:08:08.000000000 
+0100
+++ new/libyui-4.3.2/libyui-qt/src/YQRichText.h 2022-03-03 10:44:51.000000000 
+0100
@@ -157,6 +157,11 @@
      **/
     virtual void activateLink( const std::string & url );
 
+    /**
+     * Set the stylesheet for the RichText widget *content*.
+     **/
+    virtual void setRichTextStyleSheet( const QString &style );
+
 protected slots:
 
     /**
@@ -193,7 +198,7 @@
  * Helper class - needed to have the benefits of both QVBox as the base class
  * for YQRichText so uniform margins can be implemented (outside, not inside
  * the scroll window as QTextBrowser normally does it) and QTextBrowser's
- * featurs (enable hyperlinks) without removing the text each time the user
+ * feature (enable hyperlinks) without removing the text each time the user
  * clicks.
  *
  * This class is required only to overwrite setSource().
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-bindings.spec 
new/libyui-4.3.2/package/libyui-bindings.spec
--- old/libyui-4.3.1/package/libyui-bindings.spec       2022-02-10 
11:08:08.000000000 +0100
+++ new/libyui-4.3.2/package/libyui-bindings.spec       2022-03-03 
10:44:51.000000000 +0100
@@ -20,7 +20,7 @@
 Name:           libyui-bindings
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 Summary:        Bindings for libyui
 License:        LGPL-2.1-only OR LGPL-3.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-ncurses-pkg.spec 
new/libyui-4.3.2/package/libyui-ncurses-pkg.spec
--- old/libyui-4.3.1/package/libyui-ncurses-pkg.spec    2022-02-10 
11:08:08.000000000 +0100
+++ new/libyui-4.3.2/package/libyui-ncurses-pkg.spec    2022-03-03 
10:44:51.000000000 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-ncurses-pkg
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-ncurses-rest-api.spec 
new/libyui-4.3.2/package/libyui-ncurses-rest-api.spec
--- old/libyui-4.3.1/package/libyui-ncurses-rest-api.spec       2022-02-10 
11:08:08.000000000 +0100
+++ new/libyui-4.3.2/package/libyui-ncurses-rest-api.spec       2022-03-03 
10:44:51.000000000 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-ncurses-rest-api
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-ncurses.spec 
new/libyui-4.3.2/package/libyui-ncurses.spec
--- old/libyui-4.3.1/package/libyui-ncurses.spec        2022-02-10 
11:08:08.000000000 +0100
+++ new/libyui-4.3.2/package/libyui-ncurses.spec        2022-03-03 
10:44:51.000000000 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-ncurses
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-qt-graph.spec 
new/libyui-4.3.2/package/libyui-qt-graph.spec
--- old/libyui-4.3.1/package/libyui-qt-graph.spec       2022-02-10 
11:08:08.000000000 +0100
+++ new/libyui-4.3.2/package/libyui-qt-graph.spec       2022-03-03 
10:44:51.000000000 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-qt-graph
 
 # DO NOT manually bump the version here; instead, use   rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-qt-pkg.spec 
new/libyui-4.3.2/package/libyui-qt-pkg.spec
--- old/libyui-4.3.1/package/libyui-qt-pkg.spec 2022-02-10 11:08:08.000000000 
+0100
+++ new/libyui-4.3.2/package/libyui-qt-pkg.spec 2022-03-03 10:44:51.000000000 
+0100
@@ -19,7 +19,7 @@
 Name:           libyui-qt-pkg
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-qt-rest-api.spec 
new/libyui-4.3.2/package/libyui-qt-rest-api.spec
--- old/libyui-4.3.1/package/libyui-qt-rest-api.spec    2022-02-10 
11:08:08.000000000 +0100
+++ new/libyui-4.3.2/package/libyui-qt-rest-api.spec    2022-03-03 
10:44:51.000000000 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-qt-rest-api
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-qt.spec 
new/libyui-4.3.2/package/libyui-qt.spec
--- old/libyui-4.3.1/package/libyui-qt.spec     2022-02-10 11:08:08.000000000 
+0100
+++ new/libyui-4.3.2/package/libyui-qt.spec     2022-03-03 10:44:51.000000000 
+0100
@@ -19,7 +19,7 @@
 Name:           libyui-qt
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui-rest-api.spec 
new/libyui-4.3.2/package/libyui-rest-api.spec
--- old/libyui-4.3.1/package/libyui-rest-api.spec       2022-02-10 
11:08:08.000000000 +0100
+++ new/libyui-4.3.2/package/libyui-rest-api.spec       2022-03-03 
10:44:51.000000000 +0100
@@ -19,7 +19,7 @@
 Name:           libyui-rest-api
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui.changes 
new/libyui-4.3.2/package/libyui.changes
--- old/libyui-4.3.1/package/libyui.changes     2022-02-10 11:08:08.000000000 
+0100
+++ new/libyui-4.3.2/package/libyui.changes     2022-03-03 10:44:51.000000000 
+0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Thu Mar  3 07:57:59 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Update also the stylesheet (theme) for the RichText content when
+  changing the UI theme (bsc#1196296)
+- 4.3.2
+
+-------------------------------------------------------------------
 Wed Feb  9 13:23:54 UTC 2022 - Stefan Hundhammer <shundham...@suse.com>
 
 - Made widget style sheet (theme) switching discoverable in the Qt UI:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-4.3.1/package/libyui.spec 
new/libyui-4.3.2/package/libyui.spec
--- old/libyui-4.3.1/package/libyui.spec        2022-02-10 11:08:08.000000000 
+0100
+++ new/libyui-4.3.2/package/libyui.spec        2022-03-03 10:44:51.000000000 
+0100
@@ -19,7 +19,7 @@
 Name:           libyui
 
 # DO NOT manually bump the version here; instead, use rake version:bump
-Version:        4.3.1
+Version:        4.3.2
 Release:        0
 
 %define         so_version 16

Reply via email to