|
|
|
@ -41,14 +41,14 @@ KLayoutBox_impl::~KLayoutBox_impl() {
|
|
|
|
|
|
|
|
|
|
void KLayoutBox_impl::addWidget( Arts::Widget widget, long stretch, long align ) {
|
|
|
|
|
widget.tqparent( self() );
|
|
|
|
|
this->_addChild( widget, "tqlayoutbox_item" );
|
|
|
|
|
this->_addChild( widget, "layoutbox_item" );
|
|
|
|
|
TQWidget * tmp = KWidgetRepo::the()->lookupTQWidget( widget.widgetID() );
|
|
|
|
|
_layout->addWidget( tmp, stretch, align );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KLayoutBox_impl::insertWidget( long index, Arts::Widget widget, long stretch, long align ) {
|
|
|
|
|
widget.tqparent( self() );
|
|
|
|
|
this->_addChild( widget, "tqlayoutbox_item" );
|
|
|
|
|
this->_addChild( widget, "layoutbox_item" );
|
|
|
|
|
TQWidget * tmp = KWidgetRepo::the()->lookupTQWidget( widget.widgetID() );
|
|
|
|
|
_layout->insertWidget( index, tmp, stretch, align );
|
|
|
|
|
}
|
|
|
|
@ -66,8 +66,8 @@ void KLayoutBox_impl::addLine( long width, long space, long stretch, long align
|
|
|
|
|
long KLayoutBox_impl::spacing() { return _layout->spacing(); }
|
|
|
|
|
void KLayoutBox_impl::spacing( long n ) { _layout->setSpacing( n ); }
|
|
|
|
|
|
|
|
|
|
long KLayoutBox_impl::tqlayoutmargin() { return _layout->margin(); }
|
|
|
|
|
void KLayoutBox_impl::tqlayoutmargin( long n ) { _layout->setMargin( n ); this->margin( n ); }
|
|
|
|
|
long KLayoutBox_impl::layoutmargin() { return _layout->margin(); }
|
|
|
|
|
void KLayoutBox_impl::layoutmargin( long n ) { _layout->setMargin( n ); this->margin( n ); }
|
|
|
|
|
|
|
|
|
|
Direction KLayoutBox_impl::direction() { return Arts::Direction( _layout->direction() ); }
|
|
|
|
|
void KLayoutBox_impl::direction( Direction d ) { _layout->setDirection( TQBoxLayout::Direction( d ) ); }
|
|
|
|
|