Author: coolo Date: Fri Dec 7 19:02:57 2007 New Revision: 42831 URL: http://svn.opensuse.org/viewcvs/yast?rev=42831&view=rev Log: the help panel should be gone now 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=42831&r1=42830&r2=42831&view=diff ============================================================================== --- trunk/qt4/src/YQWizard.cc (original) +++ trunk/qt4/src/YQWizard.cc Fri Dec 7 19:02:57 2007 @@ -189,8 +189,6 @@ QVBoxLayout *vbox = new QVBoxLayout( ); vbox->addWidget( _sideBar ); - layoutHelpPanel(); - if ( _treeEnabled ) { layoutTreePanel(); @@ -200,7 +198,8 @@ { layoutStepsPanel(); showSteps(); - } + } else + _sideBar->hide(); return vbox; } @@ -420,64 +419,6 @@ } -void YQWizard::layoutHelpPanel() -{ - return; - - // - // Button box with bottom gradient - // - - QLabel * buttonBox = new QLabel( _sideBar ); - YUI_CHECK_NEW( buttonBox ); - - QPushButton * button; - - if ( _treeEnabled ) - { - // "Tree" button - intentionally without keyboard shortcut - button = new QPushButton( _( "Tree" ), buttonBox ); - YUI_CHECK_NEW( button ); - _treeButton = button; - button->setObjectName( "treeButton" ); - } - else - if ( _stepsEnabled ) - { - // "Steps" button - intentionally without keyboard shortcut - button = new QPushButton( _( "Steps" ), buttonBox ); - YUI_CHECK_NEW( button ); - _stepsButton = button; - _stepsButton->hide(); - _stepsButton->setObjectName( "stepsButton" ); - } - else - { - // Create a dummy button just to find out how high it would become - button = new QPushButton( "Dummy", buttonBox ); - YUI_CHECK_NEW( button ); - } - - layoutSideBarButtonBox( buttonBox, button ); - - if ( _treeEnabled ) - { - connect( button, SIGNAL( clicked() ), - this, SLOT ( showTree() ) ); - } - else if ( _stepsEnabled ) - { - connect( button, SIGNAL( clicked() ), - this, SLOT ( showSteps() ) ); - } - else - { - // Hide the dummy button - the button box height is fixed now. - button->hide(); - } -} - - void YQWizard::layoutTreePanel() { _treePanel = new QFrame( _sideBar ); Modified: trunk/qt4/src/YQWizard.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQWizard.h?rev=42831&r1=42830&r2=42831&view=diff ============================================================================== --- trunk/qt4/src/YQWizard.h (original) +++ trunk/qt4/src/YQWizard.h Fri Dec 7 19:02:57 2007 @@ -438,7 +438,6 @@ QLayout *layoutSideBar ( QWidget * parent ); void layoutSideBarButtonBox ( QWidget * parent, QPushButton * button ); void layoutStepsPanel(); - void layoutHelpPanel(); void layoutTreePanel(); QWidget *layoutWorkArea ( QWidget * parent ); void layoutClientArea( QWidget * parent ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org