diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kdm/kfrontend/kconsole.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-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 'kdm/kfrontend/kconsole.cpp')
-rw-r--r-- | kdm/kfrontend/kconsole.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kdm/kfrontend/kconsole.cpp b/kdm/kfrontend/kconsole.cpp index b101712da..6c2ab09ab 100644 --- a/kdm/kfrontend/kconsole.cpp +++ b/kdm/kfrontend/kconsole.cpp @@ -59,9 +59,9 @@ extern "C" { #include <klocale.h> #include <kpty.h> -#include <qsocketnotifier.h> +#include <tqsocketnotifier.h> -KConsole::KConsole( QWidget *_parent ) +KConsole::KConsole( TQWidget *_parent ) : inherited( _parent ) , pty( 0 ) , notifier( 0 ) @@ -128,8 +128,8 @@ KConsole::OpenConsole() fd = pty->masterFd(); gotcon: - notifier = new QSocketNotifier( fd, QSocketNotifier::Read, this ); - connect( notifier, SIGNAL(activated( int )), SLOT(slotData()) ); + notifier = new TQSocketNotifier( fd, TQSocketNotifier::Read, this ); + connect( notifier, TQT_SIGNAL(activated( int )), TQT_SLOT(slotData()) ); return 1; } @@ -161,14 +161,14 @@ KConsole::slotData() bool as = !verticalScrollBar()->isVisible() || (verticalScrollBar()->value() == verticalScrollBar()->maxValue()); - QString str( QString::fromLocal8Bit( buffer, n ).remove( '\r' ) ); + TQString str( TQString::fromLocal8Bit( buffer, n ).remove( '\r' ) ); int pos, opos; for (opos = 0; (pos = str.find( '\n', opos )) >= 0; opos = pos + 1) { if (paragraphs() == 100) removeParagraph( 0 ); if (!leftover.isEmpty()) { append( leftover + str.mid( opos, pos - opos ) ); - leftover = QString::null; + leftover = TQString::null; } else append( str.mid( opos, pos - opos ) ); } |