[yast-commit] r55650 - in /trunk/qt: package/yast2-qt.changes src/YQWizard.cc
Author: tgoettlicher Date: Fri Feb 20 16:19:59 2009 New Revision: 55650 URL: http://svn.opensuse.org/viewcvs/yast?rev=55650&view=rev Log: - Fixed menubar spacing in wizard (bnc #464088) Modified: trunk/qt/package/yast2-qt.changes trunk/qt/src/YQWizard.cc Modified: trunk/qt/package/yast2-qt.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/package/yast2-qt.changes?rev=55650&r1=55649&r2=55650&view=diff ============================================================================== --- trunk/qt/package/yast2-qt.changes (original) +++ trunk/qt/package/yast2-qt.changes Fri Feb 20 16:19:59 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Fri Feb 20 16:18:37 CET 2009 - tgoettlicher@suse.de + +- Fixed menubar spacing in wizard (bnc #464088) + +------------------------------------------------------------------- Thu Feb 19 17:21:48 CET 2009 - tgoettlicher@suse.de - Fixed bnc #464152: save file dialog asks twice to replace file Modified: trunk/qt/src/YQWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQWizard.cc?rev=55650&r1=55649&r2=55650&view=diff ============================================================================== --- trunk/qt/src/YQWizard.cc (original) +++ trunk/qt/src/YQWizard.cc Fri Feb 20 16:19:59 2009 @@ -687,6 +687,11 @@ QY2Styler::styler()->registerChildWidget( this, _workArea ); QVBoxLayout *vbox = new QVBoxLayout( _workArea ); + YUI_CHECK_NEW( vbox ); + + // + // Menu bar + // _menuBar = new QMenuBar( _workArea ); YUI_CHECK_NEW( _menuBar ); @@ -694,6 +699,16 @@ _menuBar->hide(); // will be made visible when menus are added vbox->addWidget( _menuBar ); + + QVBoxLayout *innerbox = new QVBoxLayout( _workArea ); + YUI_CHECK_NEW( innerbox ); + + innerbox->setMargin ( YQWidgetMargin ); + + vbox->addLayout(innerbox); + vbox->setMargin( 0 ); + + // // Dialog icon and heading // @@ -701,7 +716,7 @@ QHBoxLayout * headingHBox = new QHBoxLayout(); YUI_CHECK_NEW( headingHBox ); //headingHBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ) ); // hor/vert - vbox->addLayout( headingHBox ); + innerbox->addLayout( headingHBox ); _dialogIcon = new QLabel( _workArea ); YUI_CHECK_NEW( _dialogIcon ); @@ -723,14 +738,14 @@ // layoutClientArea( _workArea ); - vbox->addWidget( _clientArea ); + innerbox->addWidget( _clientArea ); // // Button box // QLayout *bb = layoutButtonBox( _workArea ); - vbox->addLayout( bb ); + innerbox->addLayout( bb ); return _workArea; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn.opensuse.org