https://bugzilla.novell.com/show_bug.cgi?id=427632
User sh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=427632#c3
Stefan Hundhammer changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tgoettlicher@novell.com, coolo@novell.com
Group|SUSE Enterprise Partner |
Component|YaST2 |YaST2
Product|SUSE Linux Enterprise Server 11 |openSUSE 11.1
Summary|Wizard with Steps still doesn't update steps |Wizard with steps doesn't update step status
|(status) |icons
Version|Beta1 |Beta 1
--- Comment #3 from Stefan Hundhammer 2008-09-23 04:37:00 MDT ---
I just saw the same on openSUSE-11.1 Beta1, so it's not just a SLE-11 problem.
The theme is there allright, the installation.qss style sheet is there and
looks good, the icons are referenced by their correct names in that style
sheet, and the icons are there. Everything looks reasonable so far.
My (wild) guess is that the (very fragile IMHO) mechanism to make this work
might not work any more in libqt4:
When the status is to change, YQWizard::Step::setStatus() doesn't change the
pixmap directly (QLabel::setPixmap()). Rather, it changes the widget's Qt class
name via the QProperty mechanism, hoping that Qt will apply all styles defined
in the current style sheet (installation.qss).
http://svn.opensuse.org/svn/yast/trunk/qt/src/YQWizard.cc
void YQWizard::Step::setStatus( Status s )
{
if ( !_statusLabel || !_nameLabel || _status == s )
return;
_status = s;
if ( s == Todo )
{
_statusLabel->setProperty( "class", "todo-step-status QLabel" );
_nameLabel->setProperty( "class", "todo-step-name QLabel" );
}
if ( s == Done )
{
_statusLabel->setProperty( "class", "done-step-status QLabel" );
_nameLabel->setProperty( "class", "done-step-name QLabel" );
}
if ( s == Current )
{
_statusLabel->setProperty( "class", "current-step-status QLabel" );
_nameLabel->setProperty( "class", "current-step-name QLabel" );
}
_statusLabel->style()->polish( _statusLabel );
_nameLabel->style()->polish( _nameLabel );
}
http://svn.opensuse.org/svn/yast/trunk/theme/openSUSE/wizard/installation.qs...
todo-step-status {
qproperty-pixmap: url(white-step-todo.png);
max-width: 14px;
min-width: 14px;
}
done-step-status {
qproperty-pixmap: url(white-step-done.png);
max-width: 14px;
min-width: 14px;
}
current-step-status {
qproperty-pixmap: url(white-step-current.png);
max-width: 14px;
min-width: 14px;
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.