summaryrefslogtreecommitdiffstats
path: root/src/scanwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanwidget.cpp')
-rw-r--r--src/scanwidget.cpp172
1 files changed, 86 insertions, 86 deletions
diff --git a/src/scanwidget.cpp b/src/scanwidget.cpp
index 3e8a7aa..b9ca7c6 100644
--- a/src/scanwidget.cpp
+++ b/src/scanwidget.cpp
@@ -28,16 +28,16 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <qfile.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qstringlist.h>
-#include <qtimer.h>
+#include <ntqfile.h>
+#include <ntqlayout.h>
+#include <ntqpushbutton.h>
+#include <ntqstringlist.h>
+#include <ntqtimer.h>
#include <kapplication.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
#include <kdebug.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kmessagebox.h>
#include <kprocess.h>
#include <kstandarddirs.h>
@@ -64,11 +64,11 @@
// constructor
// ===========
-ScanWidget::ScanWidget( const QString& scanName,
+ScanWidget::ScanWidget( const TQString& scanName,
const bool useTargetHost,
- QWidget* parent,
+ TQWidget* parent,
const char* name )
-: QFrame( parent, name ),
+: TQFrame( parent, name ),
m_dirty (false ),
m_hideOptions( true ),
m_ignoreTabChanges( false ),
@@ -79,14 +79,14 @@ ScanWidget::ScanWidget( const QString& scanName,
m_scanName( scanName ),
m_state( dormant ),
m_useTargetHost( useTargetHost )
-{ setFrameStyle( QFrame::WinPanel | QFrame::Sunken );
+{ setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken );
createLayout( );
m_clearOutputButton->setEnabled( false );
m_stopButton->setEnabled( false );
m_startButton->setDefault( true );
srand( time( NULL ));
- QTimer::singleShot( 0, this, SLOT( slotFinaliseInitialisation( )));
+ TQTimer::singleShot( 0, this, SLOT( slotFinaliseInitialisation( )));
}
// destructor
@@ -118,8 +118,8 @@ ScanWidget::~ScanWidget( )
// buildNmapOptionsList
// ====================
-QStringList ScanWidget::buildNmapOptionsList( )
-{ QStringList nmapOptions;
+TQStringList ScanWidget::buildNmapOptionsList( )
+{ TQStringList nmapOptions;
nmapOptions << KStandardDirs::findExe ( "nmap" );
if( m_commonWidget->resovleAlwaysState( ))
@@ -130,52 +130,52 @@ QStringList ScanWidget::buildNmapOptionsList( )
if( m_timingWidget->hostTimeoutState( ))
{ nmapOptions << "--host_timeout";
- nmapOptions << QString::number( m_timingWidget->hostTimeoutValue( ));
+ nmapOptions << TQString::number( m_timingWidget->hostTimeoutValue( ));
}
if( m_timingWidget->initialRTTTimeoutState( ))
{ nmapOptions << "--initial_rtt_timeout";
- nmapOptions << QString::number( m_timingWidget->initialRTTTimeoutValue( ));
+ nmapOptions << TQString::number( m_timingWidget->initialRTTTimeoutValue( ));
}
if( m_timingWidget->maxHostGroupState( ))
{ nmapOptions << "--max_hostgroup";
- nmapOptions << QString::number( m_timingWidget->maxHostGroupValue( ));
+ nmapOptions << TQString::number( m_timingWidget->maxHostGroupValue( ));
}
if( m_timingWidget->minHostGroupState( ))
{ nmapOptions << "--min_hostgroup";
- nmapOptions << QString::number( m_timingWidget->minHostGroupValue( ));
+ nmapOptions << TQString::number( m_timingWidget->minHostGroupValue( ));
}
if( m_timingWidget->maxParallelismState( ))
{ nmapOptions << "--max_parallelism";
- nmapOptions << QString::number( m_timingWidget->maxParallelismValue( ));
+ nmapOptions << TQString::number( m_timingWidget->maxParallelismValue( ));
}
if( m_timingWidget->minParallelismState( ))
{ nmapOptions << "--min_parallelism";
- nmapOptions << QString::number( m_timingWidget->minParallelismValue( ));
+ nmapOptions << TQString::number( m_timingWidget->minParallelismValue( ));
}
if( m_timingWidget->maxRTTTimeoutState( ))
{ nmapOptions << "--max_rtt_timeout";
- nmapOptions << QString::number( m_timingWidget->maxRTTTimeoutValue( ));
+ nmapOptions << TQString::number( m_timingWidget->maxRTTTimeoutValue( ));
}
if( m_timingWidget->minRTTTimeoutState( ))
{ nmapOptions << "--min_rtt_timeout";
- nmapOptions << QString::number( m_timingWidget->minRTTTimeoutValue( ));
+ nmapOptions << TQString::number( m_timingWidget->minRTTTimeoutValue( ));
}
if( m_timingWidget->maxScanDelayState( ))
{ nmapOptions << "--max_scan_delay";
- nmapOptions << QString::number( m_timingWidget->maxScanDelayValue( ));
+ nmapOptions << TQString::number( m_timingWidget->maxScanDelayValue( ));
}
if( m_timingWidget->scanDelayState( ))
{ nmapOptions << "--scan_delay";
- nmapOptions << QString::number( m_timingWidget->scanDelayValue( ));
+ nmapOptions << TQString::number( m_timingWidget->scanDelayValue( ));
}
if( !m_timingWidget->simpleTiming( ).isEmpty( ))
@@ -220,7 +220,7 @@ QStringList ScanWidget::buildNmapOptionsList( )
if( m_compoundWidget->dataLengthState( ))
{ nmapOptions << "--data_length";
- nmapOptions << QString::number( m_compoundWidget->dataLengthValue( ));
+ nmapOptions << TQString::number( m_compoundWidget->dataLengthValue( ));
}
if( m_compoundWidget->decoyState( ))
@@ -249,17 +249,17 @@ QStringList ScanWidget::buildNmapOptionsList( )
if( m_compoundWidget->maxSocketsState( ))
{ nmapOptions << "-M";
- nmapOptions << QString::number( m_compoundWidget->maxSocketsValue( ));
+ nmapOptions << TQString::number( m_compoundWidget->maxSocketsValue( ));
}
if( m_compoundWidget->randomIPState( ))
{ nmapOptions << "-iR";
- nmapOptions << QString::number( m_compoundWidget->randomIPValue( ));
+ nmapOptions << TQString::number( m_compoundWidget->randomIPValue( ));
}
if( m_compoundWidget->sourcePortState( ))
{ nmapOptions << "--source_port";
- nmapOptions << QString::number( m_compoundWidget->sourcePortValue( ));
+ nmapOptions << TQString::number( m_compoundWidget->sourcePortValue( ));
}
if( m_compoundWidget->sourceIPState( ))
@@ -279,7 +279,7 @@ QStringList ScanWidget::buildNmapOptionsList( )
if( m_compoundWidget->ttlState( ))
{ nmapOptions << "--ttl";
- nmapOptions << QString::number( m_compoundWidget->ttlValue( ));
+ nmapOptions << TQString::number( m_compoundWidget->ttlValue( ));
}
if( m_simpleWidget->ipV6State( ))
@@ -415,7 +415,7 @@ QStringList ScanWidget::buildNmapOptionsList( )
// closePipe
// =========
-void ScanWidget::closePipe( QFile*& pipe, int& pipeFD )
+void ScanWidget::closePipe( TQFile*& pipe, int& pipeFD )
{ if( pipe == NULL )
return;
@@ -441,14 +441,14 @@ void ScanWidget::createLayout( )
m_tabWidget->setTabReorderingEnabled( true );
byte row = 0;
- QVBoxLayout* layout = new QVBoxLayout( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( this );
layout->addWidget( m_tabWidget, row++ );
- QHBoxLayout* buttonLayout = new QHBoxLayout( );
- m_clearOutputButton = new QPushButton( i18n( "Clear output" ), this, "clear output button" );
- m_hideOptionsButton = new QPushButton( i18n( "Hide options" ), this, "hide options button" );
- m_startButton = new QPushButton( i18n( "Start nmap" ), this, "start button" );
- m_stopButton = new QPushButton( i18n( "Stop nmap" ), this, "stop button" );
+ TQHBoxLayout* buttonLayout = new TQHBoxLayout( );
+ m_clearOutputButton = new TQPushButton( i18n( "Clear output" ), this, "clear output button" );
+ m_hideOptionsButton = new TQPushButton( i18n( "Hide options" ), this, "hide options button" );
+ m_startButton = new TQPushButton( i18n( "Start nmap" ), this, "start button" );
+ m_stopButton = new TQPushButton( i18n( "Stop nmap" ), this, "stop button" );
byte col = 0;
buttonLayout->insertStretch( col++, 10 );
@@ -469,9 +469,9 @@ void ScanWidget::createLayout( )
// createPipe
// ==========
-bool ScanWidget::createPipe( const QString type, const QString& tempDir, QFile*& pipe, int& pipeFD )
+bool ScanWidget::createPipe( const TQString type, const TQString& tempDir, TQFile*& pipe, int& pipeFD )
{ while( true )
- { pipe = new QFile( QString( "%1knmap_%2_%3" ).arg( tempDir ).arg( type ).arg( rand( )));
+ { pipe = new TQFile( TQString( "%1knmap_%2_%3" ).arg( tempDir ).arg( type ).arg( rand( )));
if( !pipe->exists( ))
break;
@@ -480,7 +480,7 @@ bool ScanWidget::createPipe( const QString type, const QString& tempDir, QFile*&
}
if( mkfifo( pipe->name( ), 0600 ))
- { QString text = QString( i18n( "Couldn't create the named pipe \"%1\" for nmap output: %2\n" )).arg( pipe->name( )).arg( strerror( errno ));
+ { TQString text = TQString( i18n( "Couldn't create the named pipe \"%1\" for nmap output: %2\n" )).arg( pipe->name( )).arg( strerror( errno ));
m_outputWidget->addOutput( OutputWidget::Stderr, text, text.length( ));
delete pipe;
@@ -493,7 +493,7 @@ bool ScanWidget::createPipe( const QString type, const QString& tempDir, QFile*&
if( pipeFD != -1 )
return true;
- QString text = QString( i18n( "Couldn't open the named pipe \"%1\" for nmap output: %2\n" )).arg( pipe->name( ))
+ TQString text = TQString( i18n( "Couldn't open the named pipe \"%1\" for nmap output: %2\n" )).arg( pipe->name( ))
.arg( strerror( errno ));
m_outputWidget->addOutput( OutputWidget::Stderr, text, text.length( ));
@@ -510,10 +510,10 @@ bool ScanWidget::createPipes( )
ASSERT( m_pipeStdout == NULL );
KStandardDirs standardDirs;
- QStringList tempDir = standardDirs.resourceDirs( "tmp" );
+ TQStringList tempDir = standardDirs.resourceDirs( "tmp" );
if( tempDir.isEmpty( ))
- { QString text = QString( i18n( "Couldn't create the named pipe for nmap output: no temp file dir\n" ));
+ { TQString text = TQString( i18n( "Couldn't create the named pipe for nmap output: no temp file dir\n" ));
m_outputWidget->addOutput( OutputWidget::Stderr, text, text.length( ));
return false;
}
@@ -527,7 +527,7 @@ bool ScanWidget::createPipes( )
// customEvent
// ===========
-void ScanWidget::customEvent( QCustomEvent* event )
+void ScanWidget::customEvent( TQCustomEvent* event )
{ smePtr scanMonitorEvent = (ScanMonitorEvent*) event;
nobPtr buffer;
@@ -593,7 +593,7 @@ bool ScanWidget::getOptions( )
return false;
if( m_commonWidget->host( ).isEmpty( ) && !m_compoundWidget->targetFileState( ))
- { KMessageBox::error( this, i18n( QString( "Target host(s) not specified by \"Target host(s)\" or \"Target hosts file\" options" )), i18n( "Target host(s) error" ));
+ { KMessageBox::error( this, i18n( TQString( "Target host(s) not specified by \"Target host(s)\" or \"Target hosts file\" options" )), i18n( "Target host(s) error" ));
return false;
}
@@ -638,7 +638,7 @@ void ScanWidget::profileLoad( )
{ profileAskAndSave( );
ProfileDialog dlg( ProfileDialog::Load, m_profileName, this, "profile dlg" );
- if( dlg.exec( ) != QDialog::Accepted )
+ if( dlg.exec( ) != TQDialog::Accepted )
return;
m_profileName = dlg.profileName( );
@@ -651,7 +651,7 @@ void ScanWidget::profileLoad( )
// ===========
void ScanWidget::profileRead( )
-{ KConfig* config = kapp->config( );
+{ TDEConfig* config = kapp->config( );
kapp->config( )->setGroup( m_profileName );
m_commonWidget->readProfile( config );
@@ -688,7 +688,7 @@ void ScanWidget::profileSave( )
if( KMessageBox::Yes != KMessageBox::questionYesNo( this, i18n( "Do you still want to save the profile? (It may be in an inconsistent state." ), i18n( "Save inconsistent profile" )))
return;
- KConfig* config = kapp->config( );
+ TDEConfig* config = kapp->config( );
config->setGroup( m_profileName );
m_commonWidget->saveProfile( config );
@@ -717,7 +717,7 @@ void ScanWidget::profileSave( )
void ScanWidget::profileSaveAs( )
{ ProfileDialog dlg( ProfileDialog::SaveAs, m_profileName, this, "profile dlg" );
- if( dlg.exec( ) != QDialog::Accepted )
+ if( dlg.exec( ) != TQDialog::Accepted )
return;
m_profileName = dlg.profileName( );
@@ -729,7 +729,7 @@ void ScanWidget::profileSaveAs( )
// ============
void ScanWidget::readSettings( )
-{ KConfig* config = kapp->config( );
+{ TDEConfig* config = kapp->config( );
config->setGroup( m_scanName );
m_profileName = config->readEntry( "profileName", DEFAULT_PROFILE );
@@ -739,7 +739,7 @@ void ScanWidget::readSettings( )
// renameScan
// ==========
-void ScanWidget::renameScan( const QString& newScanName )
+void ScanWidget::renameScan( const TQString& newScanName )
{ kapp->config( )->deleteGroup( m_scanName );
m_scanName = newScanName;
}
@@ -748,7 +748,7 @@ void ScanWidget::renameScan( const QString& newScanName )
// ===============
void ScanWidget::saveProfileName( )
-{ KConfig* config = kapp->config( );
+{ TDEConfig* config = kapp->config( );
config->setGroup( m_scanName );
config->writeEntry( "profileName", m_profileName );
}
@@ -793,7 +793,7 @@ void ScanWidget::setInitialValues( )
// setProfileName
// ==============
-void ScanWidget::setProfileName( const QString& profileName )
+void ScanWidget::setProfileName( const TQString& profileName )
{ m_profileName = profileName;
saveProfileName( );
profileRead( );
@@ -811,11 +811,11 @@ void ScanWidget::slotClearOutput( )
// slotDisplayDocBook
// ==================
-void ScanWidget::slotDisplayDocBook( const QString& anchor )
-{ KProcess* process = new KProcess;
+void ScanWidget::slotDisplayDocBook( const TQString& anchor )
+{ TDEProcess* process = new TDEProcess;
*process << "khelpcenter";
*process << "help:/knmap//index.html#" + anchor;
- process->start( KProcess::DontCare );
+ process->start( TDEProcess::DontCare );
}
// slotDisplayUnknown
@@ -836,16 +836,16 @@ void ScanWidget::slotFinaliseInitialisation( )
m_simpleWidget->finaliseInitialisation( );
m_timingWidget->finaliseInitialisation( );
- connect( m_outputWidget, SIGNAL( statusBarText( const QString& )), SIGNAL( statusBarText( const QString& )));
+ connect( m_outputWidget, SIGNAL( statusBarText( const TQString& )), SIGNAL( statusBarText( const TQString& )));
connect( m_clearOutputButton, SIGNAL( clicked( )), SLOT( slotClearOutput( )));
connect( m_commonWidget, SIGNAL( disableFastScan( )), m_simpleWidget, SLOT( slotDisableFastScan( )));
- connect( m_commonWidget, SIGNAL( targetChanged( const QString& )), SLOT( slotTargetChanged( const QString& )));
+ connect( m_commonWidget, SIGNAL( targetChanged( const TQString& )), SLOT( slotTargetChanged( const TQString& )));
connect( m_hideOptionsButton, SIGNAL( clicked( )), SLOT( slotHideOptions( )));
connect( m_simpleWidget, SIGNAL( disablePortRanges( )), m_commonWidget, SLOT( slotDisablePortRanges( )));
connect( m_startButton, SIGNAL( clicked( )), SLOT( slotStartClicked( )));
connect( m_stopButton, SIGNAL( clicked( )), SLOT( slotStopClicked( )));
- connect( m_tabWidget, SIGNAL( currentChanged( QWidget* )), SLOT( slotTabChanged( QWidget* )));
+ connect( m_tabWidget, SIGNAL( currentChanged( TQWidget* )), SLOT( slotTabChanged( TQWidget* )));
connect( m_commonWidget, SIGNAL( optionsDirty( )), SLOT( slotOptionsDirty( )));
connect( m_compoundWidget, SIGNAL( optionsDirty( )), SLOT( slotOptionsDirty( )));
@@ -855,19 +855,19 @@ void ScanWidget::slotFinaliseInitialisation( )
connect( m_tabWidget, SIGNAL( movedTab( int, int )), SLOT( slotOptionsDirty( )));
connect( m_timingWidget, SIGNAL( optionsDirty( )), SLOT( slotOptionsDirty( )));
- connect( m_commonWidget, SIGNAL( displayHelp( const QString& )), SIGNAL( displayHelp( const QString& )));
- connect( m_compoundWidget, SIGNAL( displayHelp( const QString& )), SIGNAL( displayHelp( const QString& )));
- connect( m_loggingWidget, SIGNAL( displayHelp( const QString& )), SIGNAL( displayHelp( const QString& )));
- connect( m_pAndSWidget, SIGNAL( displayHelp( const QString& )), SIGNAL( displayHelp( const QString& )));
- connect( m_simpleWidget, SIGNAL( displayHelp( const QString& )), SIGNAL( displayHelp( const QString& )));
- connect( m_timingWidget, SIGNAL( displayHelp( const QString& )), SIGNAL( displayHelp( const QString& )));
+ connect( m_commonWidget, SIGNAL( displayHelp( const TQString& )), SIGNAL( displayHelp( const TQString& )));
+ connect( m_compoundWidget, SIGNAL( displayHelp( const TQString& )), SIGNAL( displayHelp( const TQString& )));
+ connect( m_loggingWidget, SIGNAL( displayHelp( const TQString& )), SIGNAL( displayHelp( const TQString& )));
+ connect( m_pAndSWidget, SIGNAL( displayHelp( const TQString& )), SIGNAL( displayHelp( const TQString& )));
+ connect( m_simpleWidget, SIGNAL( displayHelp( const TQString& )), SIGNAL( displayHelp( const TQString& )));
+ connect( m_timingWidget, SIGNAL( displayHelp( const TQString& )), SIGNAL( displayHelp( const TQString& )));
- connect( m_commonWidget, SIGNAL( displayDocBook( const QString& )), SLOT( slotDisplayDocBook( const QString&)));
- connect( m_compoundWidget, SIGNAL( displayDocBook( const QString& )), SLOT( slotDisplayDocBook( const QString&)));
- connect( m_loggingWidget, SIGNAL( displayDocBook( const QString& )), SLOT( slotDisplayDocBook( const QString&)));
- connect( m_pAndSWidget, SIGNAL( displayDocBook( const QString& )), SLOT( slotDisplayDocBook( const QString&)));
- connect( m_simpleWidget, SIGNAL( displayDocBook( const QString& )), SLOT( slotDisplayDocBook( const QString&)));
- connect( m_timingWidget, SIGNAL( displayDocBook( const QString& )), SLOT( slotDisplayDocBook( const QString&)));
+ connect( m_commonWidget, SIGNAL( displayDocBook( const TQString& )), SLOT( slotDisplayDocBook( const TQString&)));
+ connect( m_compoundWidget, SIGNAL( displayDocBook( const TQString& )), SLOT( slotDisplayDocBook( const TQString&)));
+ connect( m_loggingWidget, SIGNAL( displayDocBook( const TQString& )), SLOT( slotDisplayDocBook( const TQString&)));
+ connect( m_pAndSWidget, SIGNAL( displayDocBook( const TQString& )), SLOT( slotDisplayDocBook( const TQString&)));
+ connect( m_simpleWidget, SIGNAL( displayDocBook( const TQString& )), SLOT( slotDisplayDocBook( const TQString&)));
+ connect( m_timingWidget, SIGNAL( displayDocBook( const TQString& )), SLOT( slotDisplayDocBook( const TQString&)));
connect( m_commonWidget, SIGNAL( displayUnknown( )), SLOT( slotDisplayUnknown( )));
connect( m_compoundWidget, SIGNAL( displayUnknown( )), SLOT( slotDisplayUnknown( )));
@@ -929,7 +929,7 @@ void ScanWidget::slotProcessExited( )
// slotReceivedStderr
// ==================
-void ScanWidget::slotReceivedStderr( KProcess* /* process */, char* buffer, int buflen )
+void ScanWidget::slotReceivedStderr( TDEProcess* /* process */, char* buffer, int buflen )
{ m_clearOutputButton->setEnabled( true );
m_outputWidget->addOutput( OutputWidget::Stderr, buffer, buflen );
emit( outputAvailable( true, true ));
@@ -938,7 +938,7 @@ void ScanWidget::slotReceivedStderr( KProcess* /* process */, char* buffer, int
// slotReceivedStdout
// ==================
-void ScanWidget::slotReceivedStdout( KProcess* /* process */, char* buffer, int buflen )
+void ScanWidget::slotReceivedStdout( TDEProcess* /* process */, char* buffer, int buflen )
{ m_clearOutputButton->setEnabled( true );
m_outputWidget->addOutput( OutputWidget::Stdout, buffer, buflen );
emit( outputAvailable( true, true ));
@@ -957,8 +957,8 @@ void ScanWidget::slotStartClicked( )
if( m_piping && !createPipes( ))
return;
- QStringList nmapOptions = buildNmapOptionsList( );
- m_nmapProcess = new KProcess;
+ TQStringList nmapOptions = buildNmapOptionsList( );
+ m_nmapProcess = new TDEProcess;
if( !m_piping )
*m_nmapProcess << nmapOptions;
@@ -974,9 +974,9 @@ void ScanWidget::slotStartClicked( )
*m_nmapProcess << nmapOptions.join( " " );
}
- QValueList<QCString> args = m_nmapProcess->args( );
- QString cmd;
- QValueList<QCString>::iterator it;
+ TQValueList<TQCString> args = m_nmapProcess->args( );
+ TQString cmd;
+ TQValueList<TQCString>::iterator it;
for( it = args.begin( ); it != args.end( ); ++it )
cmd += *it + " ";
@@ -986,19 +986,19 @@ void ScanWidget::slotStartClicked( )
m_outputWidget->addOutput( OutputWidget::Stdin, cmd, cmd.length( ));
emit( outputAvailable( true, true ));
- connect( m_nmapProcess, SIGNAL( processExited( KProcess* )), SLOT( slotProcessExited( )));
+ connect( m_nmapProcess, SIGNAL( processExited( TDEProcess* )), SLOT( slotProcessExited( )));
if( !m_piping )
{ connect( m_nmapProcess,
- SIGNAL( receivedStderr( KProcess*, char*, int )),
- SLOT( slotReceivedStderr( KProcess*, char*, int )));
+ SIGNAL( receivedStderr( TDEProcess*, char*, int )),
+ SLOT( slotReceivedStderr( TDEProcess*, char*, int )));
connect( m_nmapProcess,
- SIGNAL( receivedStdout( KProcess*, char*, int )),
- SLOT( slotReceivedStdout( KProcess*, char*, int )));
+ SIGNAL( receivedStdout( TDEProcess*, char*, int )),
+ SLOT( slotReceivedStdout( TDEProcess*, char*, int )));
}
- m_nmapProcess->start( KProcess::NotifyOnExit, KProcess::AllOutput );
+ m_nmapProcess->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput );
m_state = running;
emit( scanStarted( ));
@@ -1023,7 +1023,7 @@ void ScanWidget::slotStopClicked( )
// slotTabChanged
// ==============
-void ScanWidget::slotTabChanged( QWidget* /* toWidget */)
+void ScanWidget::slotTabChanged( TQWidget* /* toWidget */)
{ if( !m_ignoreTabChanges )
slotOptionsDirty( );
}
@@ -1031,7 +1031,7 @@ void ScanWidget::slotTabChanged( QWidget* /* toWidget */)
// slotTabChanged
// ==============
-void ScanWidget::slotTargetChanged( const QString& target )
+void ScanWidget::slotTargetChanged( const TQString& target )
{ if( m_useTargetHost )
emit( scanRename( target ));
}
@@ -1057,5 +1057,5 @@ void ScanWidget::useTargetHost( const bool b )
// ========
void ScanWidget::wrapText( const bool wrap )
-{ m_outputWidget->setWordWrap( wrap ? QTextEdit::WidgetWidth : QTextEdit::NoWrap );
+{ m_outputWidget->setWordWrap( wrap ? TQTextEdit::WidgetWidth : TQTextEdit::NoWrap );
}