Author: coolo Date: Wed Dec 12 07:53:03 2007 New Revision: 43006 URL: http://svn.opensuse.org/viewcvs/yast?rev=43006&view=rev Log: _much_ nicer without this frame Modified: trunk/qt4/src/YQDumbTab.cc trunk/qt4/src/YQDumbTab.h trunk/qt4/src/YQWizard.cc Modified: trunk/qt4/src/YQDumbTab.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQDumbTab.cc?rev=43006&r1=43005&r2=43006&view=diff ============================================================================== --- trunk/qt4/src/YQDumbTab.cc (original) +++ trunk/qt4/src/YQDumbTab.cc Wed Dec 12 07:53:03 2007 @@ -33,7 +33,7 @@ #include "YEvent.h" #define YQDumbTabSpacing 2 -#define YQDumbTabFrameMargin 4 +#define YQDumbTabFrameMargin 2 YQDumbTab::YQDumbTab( YWidget * parent ) @@ -157,25 +157,6 @@ void -YQDumbTab::paintEvent( QPaintEvent * event ) -{ - QPainter painter( this ); - - int x_offset = 0; - int y_offset = _tabBar->height() + YQDumbTabSpacing; - int frameHeight = height() - y_offset; - int frameWidth = width(); - - qDrawWinPanel( &painter, - x_offset, y_offset, - frameWidth, frameHeight, - palette(), - false, // sunken - (const QBrush *) 0 ); // brush - don't fill interior -} - - -void YQDumbTab::setSize( int newWidth, int newHeight ) { QWidget::resize( newWidth, newHeight ); Modified: trunk/qt4/src/YQDumbTab.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQDumbTab.h?rev=43006&r1=43005&r2=43006&view=diff ============================================================================== --- trunk/qt4/src/YQDumbTab.h (original) +++ trunk/qt4/src/YQDumbTab.h Wed Dec 12 07:53:03 2007 @@ -99,15 +99,6 @@ **/ virtual void setSize( int newWidth, int newHeight ); -protected: - - /** - * Draw widget content. - * - * Reimplemented from QWidget. - **/ - virtual void paintEvent( QPaintEvent * ); - public slots: /** Modified: trunk/qt4/src/YQWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQWizard.cc?rev=43006&r1=43005&r2=43006&view=diff ============================================================================== --- trunk/qt4/src/YQWizard.cc (original) +++ trunk/qt4/src/YQWizard.cc Wed Dec 12 07:53:03 2007 @@ -243,7 +243,7 @@ return; } - if ( _stepsList.last() && _stepsList.last()->name() == fromUTF8( text ) ) + if ( !_stepsList.empty() && _stepsList.last()->name() == fromUTF8( text ) ) { // Consecutive steps with the same name will be shown as one single step. // -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org