summaryrefslogtreecommitdiffstats
path: root/lib/util/kdevshellwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/kdevshellwidget.cpp')
-rw-r--r--lib/util/kdevshellwidget.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/util/kdevshellwidget.cpp b/lib/util/kdevshellwidget.cpp
index b9220250..8cf5e265 100644
--- a/lib/util/kdevshellwidget.cpp
+++ b/lib/util/kdevshellwidget.cpp
@@ -16,7 +16,7 @@
#include <tdeparts/part.h>
#include <klibloader.h>
#include <kde_terminal_interface.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include "kdevshellwidget.h"
@@ -41,18 +41,18 @@ void KDevShellWidget::activate( )
KLibFactory *factory = KLibLoader::self()->factory("libkonsolepart");
if ( !factory ) return;
- m_konsolePart = (KParts::ReadOnlyPart *) factory->create( TQT_TQOBJECT(this), "libkonsolepart", "KParts::ReadOnlyPart" );
+ m_konsolePart = (KParts::ReadOnlyPart *) factory->create( this, "libkonsolepart", "KParts::ReadOnlyPart" );
if ( !m_konsolePart ) return;
- connect( m_konsolePart, TQT_SIGNAL( processExited(TDEProcess *) ), this, TQT_SLOT( processExited(TDEProcess *) ) );
- connect( m_konsolePart, TQT_SIGNAL( receivedData( const TQString& ) ), this, TQT_SIGNAL( receivedData( const TQString& ) ) );
- connect( m_konsolePart, TQT_SIGNAL(destroyed()), this, TQT_SLOT(partDestroyed()) );
+ connect( m_konsolePart, TQ_SIGNAL( processExited(TDEProcess *) ), this, TQ_SLOT( processExited(TDEProcess *) ) );
+ connect( m_konsolePart, TQ_SIGNAL( receivedData( const TQString& ) ), this, TQ_SIGNAL( receivedData( const TQString& ) ) );
+ connect( m_konsolePart, TQ_SIGNAL(destroyed()), this, TQ_SLOT(partDestroyed()) );
- m_konsolePart->widget()->setFocusPolicy( TQ_WheelFocus );
+ m_konsolePart->widget()->setFocusPolicy( TQWidget::WheelFocus );
setFocusProxy( m_konsolePart->widget() );
m_konsolePart->widget()->setFocus();
- if ( m_konsolePart->widget()->inherits(TQFRAME_OBJECT_NAME_STRING) )
+ if ( m_konsolePart->widget()->inherits("TQFrame") )
((TQFrame*)m_konsolePart->widget())->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
m_konsolePart->widget()->show();
@@ -109,7 +109,7 @@ void KDevShellWidget::setAutoReactivateOnClose( bool doAutoActivate )
// reactivating with a non-working setting (the partDestroyed()
// slot will have ran before m_doAutoActivate is set)
if ( doAutoActivate )
- TQTimer::singleShot( 3000, this, TQT_SLOT(setAutoReactivateOnCloseDelayed()) );
+ TQTimer::singleShot( 3000, this, TQ_SLOT(setAutoReactivateOnCloseDelayed()) );
else
m_doAutoActivate = false;
}
@@ -121,5 +121,3 @@ void KDevShellWidget::setAutoReactivateOnCloseDelayed( )
#include "kdevshellwidget.moc"
-
-// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;