Author: coolo Date: Wed Apr 16 12:52:53 2008 New Revision: 46708 URL: http://svn.opensuse.org/viewcvs/yast?rev=46708&view=rev Log: finally less steps blinking Modified: trunk/qt/src/YQWizard.cc Modified: trunk/qt/src/YQWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQWizard.cc?rev=46708&... ============================================================================== --- trunk/qt/src/YQWizard.cc (original) +++ trunk/qt/src/YQWizard.cc Wed Apr 16 12:52:53 2008 @@ -306,6 +306,8 @@ // Create a grid layout for the steps delete _stepsPanel->layout(); + _stepsPanel->setMaximumWidth( 65000 ); + QVBoxLayout *_stepsVBox = new QVBoxLayout( _stepsPanel ); QGridLayout *_stepsGrid = new QGridLayout( ); @@ -406,7 +408,7 @@ yuiDebug() << "steps dirty: " << _stepsDirty << endl; if ( _stepsDirty ) - updateSteps(); + updateSteps(); YQWizard::Step * currentStep = findStep( _currentStepID ); QListYQWizard::Step*::iterator step = _stepsList.begin(); @@ -456,10 +458,14 @@ { yuiDebug() << "Deleting steps" << endl; + if ( _stepsPanel ) + _stepsPanel->setFixedWidth( _stepsPanel->width() ); + qDeleteAll(_stepsList); _stepsList.clear(); _stepsIDs.clear(); _currentStepID = QString::null; + _stepsDirty = true; } @@ -1073,12 +1079,9 @@ resizeClientArea(); } - - void YQWizard::resizeClientArea() { - yuiDebug() << "resizing client area" << endl; - QRect contentsRect = _clientArea->contentsRect(); + QSize contentsRect = _clientArea->contentsRect().size(); _contents->setSize( contentsRect.width(), contentsRect.height() ); } @@ -1086,8 +1089,8 @@ { if ( ev->type() == QEvent::Resize && obj == _contents ) { - resizeClientArea(); - return true; // Event handled + resizeClientArea(); + return true; // Event handled } if ( ev->type() == QEvent::Resize && obj == _sideBar ) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org