Author: coolo
Date: Tue Dec 11 21:31:42 2007
New Revision: 42999
URL: http://svn.opensuse.org/viewcvs/yast?rev=42999&view=rev
Log:
also delete the widgets
Modified:
trunk/qt4/src/YQWizard.cc
trunk/qt4/src/YQWizard.h
Modified: trunk/qt4/src/YQWizard.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQWizard.cc?rev=42999&r1=42998&r2=42999&view=diff
==============================================================================
--- trunk/qt4/src/YQWizard.cc (original)
+++ trunk/qt4/src/YQWizard.cc Tue Dec 11 21:31:42 2007
@@ -301,6 +301,9 @@
for ( QList::iterator i = _stepsList.begin(); i != _stepsList.end(); ++i)
{
YQWizard::Step * step = *i;
+
+ step->deleteLabels();
+
if ( step->isHeading() )
{
//
@@ -1100,6 +1103,16 @@
_treeButton->setText( _( "Tree" ) );
}
+
+void YQWizard::Step::deleteLabels()
+{
+ delete _statusLabel;
+ _statusLabel = 0;
+ delete _nameLabel;
+ _nameLabel = 0;
+}
+
+
void YQWizard::Step::setStatus( Status s )
{
if ( !_statusLabel || !_nameLabel || _status == s )
Modified: trunk/qt4/src/YQWizard.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQWizard.h?rev=42999&r1=42998&r2=42999&view=diff
==============================================================================
--- trunk/qt4/src/YQWizard.h (original)
+++ trunk/qt4/src/YQWizard.h Tue Dec 11 21:31:42 2007
@@ -585,6 +585,8 @@
void setNameLabel ( QLabel * label ) { _nameLabel = label; }
void setEnabled( bool enabled ) { _enabled = enabled; }
+ void deleteLabels();
+
/**
* Set text color and status icon for one wizard step
**/
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org