the help panel should be gone now
authorcoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Fri, 7 Dec 2007 18:02:57 +0000 (18:02 +0000)
committercoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Fri, 7 Dec 2007 18:02:57 +0000 (18:02 +0000)
git-svn-id: http://svn.opensuse.org/svn/yast/trunk/qt4@42831 e0cc52ee-31ee-0310-8b87-e83c4596d67c

src/YQWizard.cc
src/YQWizard.h

index b0f42a5..c6d171a 100644 (file)
@@ -189,8 +189,6 @@ QLayout *YQWizard::layoutSideBar( QWidget * parent )
     QVBoxLayout *vbox = new QVBoxLayout( );
     vbox->addWidget( _sideBar );
 
-    layoutHelpPanel();
-
     if ( _treeEnabled )
     {
        layoutTreePanel();
@@ -200,7 +198,8 @@ QLayout *YQWizard::layoutSideBar( QWidget * parent )
     {
        layoutStepsPanel();
        showSteps();
-    }
+    } else
+        _sideBar->hide();
 
     return vbox;
 }
@@ -420,64 +419,6 @@ YQWizard::Step * YQWizard::findStep( const QString & id )
 }
 
 
-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 );
index deea721..2ea2144 100644 (file)
@@ -438,7 +438,6 @@ protected:
     QLayout *layoutSideBar             ( QWidget * parent );
     void layoutSideBarButtonBox        ( QWidget * parent, QPushButton * button );
     void layoutStepsPanel();
-    void layoutHelpPanel();
     void layoutTreePanel();
     QWidget *layoutWorkArea    ( QWidget * parent );
     void layoutClientArea( QWidget * parent );