make the layout half way working at least
authorcoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Fri, 7 Dec 2007 11:30:50 +0000 (11:30 +0000)
committercoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Fri, 7 Dec 2007 11:30:50 +0000 (11:30 +0000)
git-svn-id: http://svn.opensuse.org/svn/yast/trunk/qt4@42784 e0cc52ee-31ee-0310-8b87-e83c4596d67c

src/pkg/YQPackageSelectorBase.cc
src/pkg/YQPackageSelectorBase.h
src/pkg/YQPatternSelector.cc

index 74bf98e..cf24e7b 100644 (file)
@@ -51,7 +51,7 @@ using std::string;
 
 YQPackageSelectorBase::YQPackageSelectorBase( YWidget * parent,
                                              long      modeFlags )
-    : QWidget( (QWidget *) parent->widgetRep() )
+    : QFrame( (QWidget *) parent->widgetRep() )
     , YPackageSelector( parent, modeFlags )
 {
     setWidgetRep( this );
index 4ee7b0b..3646056 100644 (file)
@@ -21,6 +21,7 @@
 #define YQPackageSelectorBase_h
 
 #include <QEvent>
+#include <QFrame>
 #include "YPackageSelector.h"
 #include "YQZypp.h"
 
@@ -35,7 +36,7 @@ class YQPkgDiskUsageList;
 /**
  * Abstract base class for package selectors.
  **/
-class YQPackageSelectorBase : public QWidget, public YPackageSelector
+class YQPackageSelectorBase : public QFrame, public YPackageSelector
 {
     Q_OBJECT
 
index 74ad080..fa422c0 100644 (file)
@@ -108,9 +108,13 @@ YQPatternSelector::findWizard() const
 void
 YQPatternSelector::basicLayout()
 {
+    QVBoxLayout *vbox = new QVBoxLayout( this );
+
     QSplitter * outer_splitter = new QSplitter( Qt::Horizontal, this );
     Q_CHECK_PTR( outer_splitter );
 
+    vbox->addWidget( outer_splitter );
+
     QWidget * left_pane         = layoutLeftPane ( outer_splitter );
     QWidget * right_pane = layoutRightPane( outer_splitter );
 
@@ -239,6 +243,7 @@ YQPatternSelector::layoutButtons( QWidget * parent )
     button_box->setMargin ( MARGIN  );
     button_box->setSpacing( SPACING );
 
+    parent->layout()->addWidget( button_box );
 
     QPushButton * details_button = new QPushButton( _( "&Details..." ), button_box );
     Q_CHECK_PTR( details_button );