Hello community, here is the log from the commit of package libyui-qt for openSUSE:Factory checked in at 2015-05-07 09:21:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 2015-02-12 10:21:22.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libyui-qt.new/libyui-qt.changes 2015-05-07 09:21:51.000000000 +0200 @@ -1,0 +2,10 @@ +Wed May 6 08:29:27 UTC 2015 - [email protected] + +- fixed styling for non-Wizard dialogues (bnc#925882) +- allow styling of the YQMainWinDock object (the main non-Wizard + window) +- the stylesheet editor (Ctrl+Shift+Alt+s) also works for + non-Wizard dialogues now +- 2.46.18 + +------------------------------------------------------------------- Old: ---- libyui-qt-2.46.17.tar.bz2 New: ---- libyui-qt-2.46.18.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libyui-qt-doc.spec ++++++ --- /var/tmp/diff_new_pack.tUAHSD/_old 2015-05-07 09:21:52.000000000 +0200 +++ /var/tmp/diff_new_pack.tUAHSD/_new 2015-05-07 09:21:52.000000000 +0200 @@ -17,7 +17,7 @@ Name: libyui-qt-doc -Version: 2.46.17 +Version: 2.46.18 Release: 0 Source: libyui-qt-%{version}.tar.bz2 ++++++ libyui-qt.spec ++++++ --- /var/tmp/diff_new_pack.tUAHSD/_old 2015-05-07 09:21:52.000000000 +0200 +++ /var/tmp/diff_new_pack.tUAHSD/_new 2015-05-07 09:21:52.000000000 +0200 @@ -17,7 +17,7 @@ Name: libyui-qt -Version: 2.46.17 +Version: 2.46.18 Release: 0 Source: libyui-qt-%{version}.tar.bz2 ++++++ libyui-qt-2.46.17.tar.bz2 -> libyui-qt-2.46.18.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-qt-2.46.17/ChangeLog new/libyui-qt-2.46.18/ChangeLog --- old/libyui-qt-2.46.17/ChangeLog 2015-02-10 14:59:11.000000000 +0100 +++ new/libyui-qt-2.46.18/ChangeLog 2015-05-06 14:39:09.000000000 +0200 @@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Wed May 6 08:29:27 UTC 2015 - [email protected] + +- fixed styling for non-Wizard dialogues (bnc#925882) +- allow styling of the YQMainWinDock object (the main non-Wizard + window) +- the stylesheet editor (Ctrl+Shift+Alt+s) also works for + non-Wizard dialogues now +- 2.46.18 + +------------------------------------------------------------------- Tue Feb 10 11:54:04 UTC 2015 - [email protected] - fix layout of Help and Release Notes buttons (bsc#916814) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-qt-2.46.17/VERSION.cmake new/libyui-qt-2.46.18/VERSION.cmake --- old/libyui-qt-2.46.17/VERSION.cmake 2015-02-10 14:59:11.000000000 +0100 +++ new/libyui-qt-2.46.18/VERSION.cmake 2015-05-06 14:39:09.000000000 +0200 @@ -1,6 +1,6 @@ SET(VERSION_MAJOR "2") SET(VERSION_MINOR "46") -SET(VERSION_PATCH "17") +SET(VERSION_PATCH "18") 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.17/src/QY2Styler.cc new/libyui-qt-2.46.18/src/QY2Styler.cc --- old/libyui-qt-2.46.17/src/QY2Styler.cc 2014-03-12 16:11:26.000000000 +0100 +++ new/libyui-qt-2.46.18/src/QY2Styler.cc 2015-05-06 14:39:09.000000000 +0200 @@ -110,6 +110,9 @@ foreach( childlist, _children ) foreach( child, childlist ) child->setStyleSheet( _style ); + + foreach( QWidget *registered_widget, _registered_widgets ) + registered_widget->setStyleSheet( _style ); } @@ -185,12 +188,14 @@ widget->installEventFilter( this ); widget->setAutoFillBackground( true ); widget->setStyleSheet( _style ); + _registered_widgets.push_back( widget ); } void QY2Styler::unregisterWidget( QWidget *widget ) { _children.remove( widget ); + _registered_widgets.removeOne( widget ); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-qt-2.46.17/src/QY2Styler.h new/libyui-qt-2.46.18/src/QY2Styler.h --- old/libyui-qt-2.46.17/src/QY2Styler.h 2014-02-21 15:05:58.000000000 +0100 +++ new/libyui-qt-2.46.18/src/QY2Styler.h 2015-05-06 14:39:09.000000000 +0200 @@ -89,6 +89,9 @@ QHash<QString,BackgrInfo> _backgrounds; QMap<QWidget*, QList< QWidget* > > _children; + // remember all registered widgets to allow styling not only for + // the explicitly requested children widgets (stored in _children) + QList< QWidget* > _registered_widgets; QString _style; QString _textStyle; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-qt-2.46.17/src/YQDialog.cc new/libyui-qt-2.46.18/src/YQDialog.cc --- old/libyui-qt-2.46.17/src/YQDialog.cc 2014-03-11 11:22:35.000000000 +0100 +++ new/libyui-qt-2.46.18/src/YQDialog.cc 2015-05-06 14:39:09.000000000 +0200 @@ -116,7 +116,10 @@ QObject::connect( _waitForEventTimer, &pclass(_waitForEventTimer)::timeout, this, &pclass(this)::waitForEventTimeout ); - QY2Styler::styler()->registerWidget( this ); + if ( isMainDialog() && QWidget::parent() == YQMainWinDock::mainWinDock() ) + QY2Styler::styler()->registerWidget( YQMainWinDock::mainWinDock() ); + else + QY2Styler::styler()->registerWidget( this ); } @@ -137,7 +140,10 @@ if ( _styleEditor ) delete _styleEditor; - QY2Styler::styler()->unregisterWidget( this ); + if ( isMainDialog() && QWidget::parent() == YQMainWinDock::mainWinDock() ) + QY2Styler::styler()->unregisterWidget( YQMainWinDock::mainWinDock() ); + else + QY2Styler::styler()->unregisterWidget( this ); }
