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.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/util/kdevshellwidget.cpp b/lib/util/kdevshellwidget.cpp
index f9a61fea..546360c6 100644
--- a/lib/util/kdevshellwidget.cpp
+++ b/lib/util/kdevshellwidget.cpp
@@ -9,8 +9,8 @@
* *
***************************************************************************/
-#include <qtimer.h>
-#include <qframe.h>
+#include <tqtimer.h>
+#include <tqframe.h>
#include <kdebug.h>
#include <kparts/part.h>
@@ -20,8 +20,8 @@
#include "kdevshellwidget.h"
-KDevShellWidget::KDevShellWidget(QWidget *parent, const char *name)
- : QVBox(parent, name), m_doAutoActivate( false ), m_isRunning( false )
+KDevShellWidget::KDevShellWidget(TQWidget *parent, const char *name)
+ : TQVBox(parent, name), m_doAutoActivate( false ), m_isRunning( false )
{
}
@@ -30,7 +30,7 @@ KDevShellWidget::~KDevShellWidget()
{
}
-void KDevShellWidget::setShell( const QString & shell, const QStrList & arguments )
+void KDevShellWidget::setShell( const TQString & shell, const TQStrList & arguments )
{
m_shellName = shell;
m_shellArguments = arguments;
@@ -44,16 +44,16 @@ void KDevShellWidget::activate( )
m_konsolePart = (KParts::ReadOnlyPart *) factory->create( this, "libkonsolepart", "KParts::ReadOnlyPart" );
if ( !m_konsolePart ) return;
- connect( m_konsolePart, SIGNAL( processExited(KProcess *) ), this, SLOT( processExited(KProcess *) ) );
- connect( m_konsolePart, SIGNAL( receivedData( const QString& ) ), this, SIGNAL( receivedData( const QString& ) ) );
- connect( m_konsolePart, SIGNAL(destroyed()), this, SLOT(partDestroyed()) );
+ connect( m_konsolePart, TQT_SIGNAL( processExited(KProcess *) ), this, TQT_SLOT( processExited(KProcess *) ) );
+ connect( m_konsolePart, TQT_SIGNAL( receivedData( const TQString& ) ), this, TQT_SIGNAL( receivedData( const TQString& ) ) );
+ connect( m_konsolePart, TQT_SIGNAL(destroyed()), this, TQT_SLOT(partDestroyed()) );
- m_konsolePart->widget()->setFocusPolicy( QWidget::WheelFocus );
+ m_konsolePart->widget()->setFocusPolicy( TQWidget::WheelFocus );
setFocusProxy( m_konsolePart->widget() );
m_konsolePart->widget()->setFocus();
- if ( m_konsolePart->widget()->inherits("QFrame") )
- ((QFrame*)m_konsolePart->widget())->setFrameStyle( QFrame::Panel | QFrame::Sunken );
+ if ( m_konsolePart->widget()->inherits("TQFrame") )
+ ((TQFrame*)m_konsolePart->widget())->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
m_konsolePart->widget()->show();
@@ -89,7 +89,7 @@ void KDevShellWidget::processExited( KProcess * proc )
emit shellSignalled( proc->exitSignal() );
}
-void KDevShellWidget::sendInput( const QString & text )
+void KDevShellWidget::sendInput( const TQString & text )
{
if ( !m_konsolePart ) return;
TerminalInterface* ti = static_cast<TerminalInterface*>( m_konsolePart->qt_cast( "TerminalInterface" ) );
@@ -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 )
- QTimer::singleShot( 3000, this, SLOT(setAutoReactivateOnCloseDelayed()) );
+ TQTimer::singleShot( 3000, this, TQT_SLOT(setAutoReactivateOnCloseDelayed()) );
else
m_doAutoActivate = false;
}