|
|
@ -281,15 +281,15 @@ void KMyFirewall::slotShowTransactionLog() {
|
|
|
|
void KMyFirewall::setOutputWidget( TQWidget* wid ) {
|
|
|
|
void KMyFirewall::setOutputWidget( TQWidget* wid ) {
|
|
|
|
m_widgetStack->removeWidget( m_outputWidget );
|
|
|
|
m_widgetStack->removeWidget( m_outputWidget );
|
|
|
|
TQWidget* widget = new TQWidget( this , "output" );
|
|
|
|
TQWidget* widget = new TQWidget( this , "output" );
|
|
|
|
TQGridLayout *tqlayout = new TQGridLayout( widget, 1, 1 );
|
|
|
|
TQGridLayout *layout = new TQGridLayout( widget, 1, 1 );
|
|
|
|
wid->reparent( widget, ( unsigned int ) 0 , *( new TQPoint( 0, 0 ) ) );
|
|
|
|
wid->reparent( widget, ( unsigned int ) 0 , *( new TQPoint( 0, 0 ) ) );
|
|
|
|
tqlayout->addWidget( wid, 0, 0 );
|
|
|
|
layout->addWidget( wid, 0, 0 );
|
|
|
|
kdDebug() << "Adding outputwidget: " << wid->className() << endl;
|
|
|
|
kdDebug() << "Adding outputwidget: " << wid->className() << endl;
|
|
|
|
if ( strcmp(wid->className(), "KMFObjectInfo") ) {
|
|
|
|
if ( strcmp(wid->className(), "KMFObjectInfo") ) {
|
|
|
|
KPushButton * close = new KPushButton( i18n( "Return to Editor View" ), widget );
|
|
|
|
KPushButton * close = new KPushButton( i18n( "Return to Editor View" ), widget );
|
|
|
|
connect( close, TQT_SIGNAL( clicked() ),
|
|
|
|
connect( close, TQT_SIGNAL( clicked() ),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT( slotShowEditor() ) );
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT( slotShowEditor() ) );
|
|
|
|
tqlayout->addWidget( close, 1, 0 );
|
|
|
|
layout->addWidget( close, 1, 0 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_outputWidget = widget;
|
|
|
|
m_outputWidget = widget;
|
|
|
|
m_widgetStack->addWidget( widget );
|
|
|
|
m_widgetStack->addWidget( widget );
|
|
|
|