summaryrefslogtreecommitdiffstats
path: root/src/outputwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/outputwidget.cpp')
-rw-r--r--src/outputwidget.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/outputwidget.cpp b/src/outputwidget.cpp
index 2bc82c9..852a1ff 100644
--- a/src/outputwidget.cpp
+++ b/src/outputwidget.cpp
@@ -20,12 +20,12 @@
* *
***************************************************************************/
-#include <qfile.h>
-#include <qtimer.h>
+#include <ntqfile.h>
+#include <ntqtimer.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
#include <kdebug.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kmessagebox.h>
#include "knmap.h"
@@ -34,15 +34,15 @@
// constructor
// ===========
-OutputWidget::OutputWidget( QWidget* parent, const char* name )
-: QTextEdit( parent, name ),
+OutputWidget::OutputWidget( TQWidget* parent, const char* name )
+: TQTextEdit( parent, name ),
m_append( false ),
m_dataBytes( 0 ),
m_firstSave( true ),
m_priorType( OutputType( -1 ))
{ setFamily( "monospace" );
setReadOnly( true );
- QTimer::singleShot( 0, this, SLOT( slotUpdateStatusBarText( )));
+ TQTimer::singleShot( 0, this, SLOT( slotUpdateStatusBarText( )));
}
// addOutput
@@ -50,8 +50,8 @@ OutputWidget::OutputWidget( QWidget* parent, const char* name )
void OutputWidget::addOutput( const OutputType type, const char* buffer, const int buflen )
{ m_dataBytes += buflen;
- QString outputText = QString::fromLatin1( buffer, buflen );
- QString prependText;
+ TQString outputText = TQString::fromLatin1( buffer, buflen );
+ TQString prependText;
if( m_append && type == m_priorType && m_priorType != OutputType( -1 ))
{ uint paraNo = paragraphs( ) - 1;
@@ -99,14 +99,14 @@ bool OutputWidget::fileSave( const bool saveAs )
return false;
m_firstSave = false;
- QFile file( m_path );
+ TQFile file( m_path );
if( !file.open( IO_WriteOnly ))
- { KMessageBox::error( this, QString( i18n( "Could not open \"%1\"\n%2" )).arg( m_path ).arg( file.errorString( )));
+ { KMessageBox::error( this, TQString( i18n( "Could not open \"%1\"\n%2" )).arg( m_path ).arg( file.errorString( )));
return false;
}
- QTextStream stream( &file );
+ TQTextStream stream( &file );
uint noOfParagraphs = paragraphs( );
uint paragraphNo;
@@ -127,14 +127,14 @@ bool OutputWidget::fileSaveAs( )
// readProfile
// ===========
-void OutputWidget::readProfile( KConfig* config )
+void OutputWidget::readProfile( TDEConfig* config )
{ m_path = config->readPathEntry( "path" );
}
// saveProfile
// ===========
-void OutputWidget::saveProfile( KConfig* config )
+void OutputWidget::saveProfile( TDEConfig* config )
{ config->writeEntry( "path", m_path );
}
@@ -142,10 +142,10 @@ void OutputWidget::saveProfile( KConfig* config )
// =======================
void OutputWidget::slotUpdateStatusBarText( )
-{ QString dataBytes;
+{ TQString dataBytes;
if( m_dataBytes < 1024 )
- dataBytes = QString::number( m_dataBytes ) + " bytes";
+ dataBytes = TQString::number( m_dataBytes ) + " bytes";
else
if( m_dataBytes < 1024 * 1024 )
{ float kiloBytes = m_dataBytes / float( 1024 );
@@ -170,5 +170,5 @@ void OutputWidget::slotUpdateStatusBarText( )
dataBytes.sprintf( "%.1f MBytes", megaBytes );
}
- emit( statusBarText( QString( "Output: %1 lines (%2)" ).arg( QString::number( paragraphs( ) - 1 )).arg( dataBytes )));
+ emit( statusBarText( TQString( "Output: %1 lines (%2)" ).arg( TQString::number( paragraphs( ) - 1 )).arg( dataBytes )));
}