summaryrefslogtreecommitdiffstats
path: root/konsole/konsole/kwrited.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /konsole/konsole/kwrited.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konsole/konsole/kwrited.cpp')
-rw-r--r--konsole/konsole/kwrited.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/konsole/konsole/kwrited.cpp b/konsole/konsole/kwrited.cpp
index 7b0e1167b..4255c1938 100644
--- a/konsole/konsole/kwrited.cpp
+++ b/konsole/konsole/kwrited.cpp
@@ -31,7 +31,7 @@
// Qt
#include <dcopclient.h>
-#include <qsocketnotifier.h>
+#include <tqsocketnotifier.h>
// KDE
#include <kuniqueapplication.h>
@@ -61,7 +61,7 @@
- add client complements.
*/
-KWrited::KWrited() : QTextEdit()
+KWrited::KWrited() : TQTextEdit()
{
int pref_width, pref_height;
@@ -71,17 +71,17 @@ KWrited::KWrited() : QTextEdit()
setMinimumWidth(pref_width);
setMinimumHeight(pref_height);
setReadOnly(true);
- setFocusPolicy(QWidget::NoFocus);
- setWordWrap(QTextEdit::WidgetWidth);
+ setFocusPolicy(TQWidget::NoFocus);
+ setWordWrap(TQTextEdit::WidgetWidth);
setTextFormat(Qt::PlainText);
pty = new KPty();
pty->open();
pty->login(KUser().loginName().local8Bit().data(), getenv("DISPLAY"));
- QSocketNotifier *sn = new QSocketNotifier(pty->masterFd(), QSocketNotifier::Read, this);
- connect(sn, SIGNAL(activated(int)), this, SLOT(block_in(int)));
+ TQSocketNotifier *sn = new TQSocketNotifier(pty->masterFd(), TQSocketNotifier::Read, this);
+ connect(sn, TQT_SIGNAL(activated(int)), this, TQT_SLOT(block_in(int)));
- QString txt = i18n("KWrited - Listening on Device %1").arg(pty->ttyName());
+ TQString txt = i18n("KWrited - Listening on Device %1").arg(pty->ttyName());
setCaption(txt);
kdDebug() << txt << endl;
@@ -100,7 +100,7 @@ void KWrited::block_in(int fd)
if (len <= 0)
return;
- insert( QString::fromLocal8Bit( buf, len ).remove('\r') );
+ insert( TQString::fromLocal8Bit( buf, len ).remove('\r') );
show();
raise();
}
@@ -110,18 +110,18 @@ void KWrited::clearText()
clear();
}
-QPopupMenu *KWrited::createPopupMenu( const QPoint &pos )
+TQPopupMenu *KWrited::createPopupMenu( const TQPoint &pos )
{
- QPopupMenu *menu = QTextEdit::createPopupMenu( pos );
+ TQPopupMenu *menu = TQTextEdit::createPopupMenu( pos );
menu->insertItem( i18n( "Clear Messages" ),
- this, SLOT( clearText() ),
+ this, TQT_SLOT( clearText() ),
0, -1, 0 );
return menu;
}
-KWritedModule::KWritedModule( const QCString& obj )
+KWritedModule::KWritedModule( const TQCString& obj )
: KDEDModule( obj )
{
KGlobal::locale()->insertCatalogue("konsole");
@@ -135,7 +135,7 @@ KWritedModule::~KWritedModule()
}
extern "C"
-KDE_EXPORT KDEDModule* create_kwrited( const QCString& obj )
+KDE_EXPORT KDEDModule* create_kwrited( const TQCString& obj )
{
return new KWritedModule( obj );
}