Author: sh-sh-sh Date: Mon Jun 18 15:34:25 2007 New Revision: 38507 URL: http://svn.opensuse.org/viewcvs/yast?rev=38507&view=rev Log: fixed replaceWidget Modified: branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.cc branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.h Modified: branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.cc?rev=38507&r1=38506&r2=38507&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.cc (original) +++ branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.cc Mon Jun 18 15:34:25 2007 @@ -32,15 +32,15 @@ } -void YQReplacePoint::addChild( YWidget * child ) +void YQReplacePoint::showChild() { + YWidget * child = firstChild(); + if ( child ) { QWidget * qChild = (QWidget *) child->widgetRep(); qChild->show(); } - - YWidget::addChild( child ); } Modified: branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.h?rev=38507&r1=38506&r2=38507&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.h (original) +++ branches/tmp/sh/mod-ui/qt/src/YQReplacePoint.h Mon Jun 18 15:34:25 2007 @@ -39,22 +39,24 @@ YQReplacePoint( YWidget * parent ); /** - * Add a new child. + * Show a newly added child. * - * Reimplemented from YSingleChildContainer. - */ - virtual void addChild( YWidget * child ); + * Reimplemented from YReplacePoint. + **/ + virtual void showChild(); /** - * Inherited from YWidget: Sets the enabled state of the - * widget. All new widgets are enabled per definition. Only - * enabled widgets can take user input. - */ + * Handle enabled/disabled state. + * + * Reimplemented from YWidget. + **/ virtual void setEnabled( bool enabled ); /** - * Sets the size - */ + * Set the size. + * + * Reimplemented from YWidget. + **/ virtual void setSize( long newWidth, long newHeight ); }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org