summaryrefslogtreecommitdiffstats
path: root/krename/undodialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krename/undodialog.cpp')
-rw-r--r--krename/undodialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/krename/undodialog.cpp b/krename/undodialog.cpp
index 1dcd8b9..d5b549b 100644
--- a/krename/undodialog.cpp
+++ b/krename/undodialog.cpp
@@ -17,9 +17,9 @@
#include "undodialog.h"
-// Qt includes
-#include <qlabel.h>
-#include <qlayout.h>
+// TQt includes
+#include <tqlabel.h>
+#include <tqlayout.h>
// KDE includes
#include <kfiledialog.h>
@@ -29,13 +29,13 @@
#include <ktextbrowser.h>
#include <kurlrequester.h>
-UndoDialog::UndoDialog( QWidget* parent )
+UndoDialog::UndoDialog( TQWidget* tqparent )
: KDialogBase( KDialogBase::Plain, i18n("Undo Renaming"),
- KDialogBase::User1 | KDialogBase::Close, KDialogBase::User1, parent, 0, false, true )
+ KDialogBase::User1 | KDialogBase::Close, KDialogBase::User1, tqparent, 0, false, true )
{
- UndoDialogLayout = new QVBoxLayout( plainPage(), 11, 6, "UndoDialogLayout");
+ UndoDialogLayout = new TQVBoxLayout( plainPage(), 11, 6, "UndoDialogLayout");
- TextLabel1 = new QLabel( plainPage(), "TextLabel1" );
+ TextLabel1 = new TQLabel( plainPage(), "TextLabel1" );
TextLabel1->setText( i18n( "Undo script:" ) );
UndoDialogLayout->addWidget( TextLabel1 );
@@ -47,20 +47,20 @@ UndoDialog::UndoDialog( QWidget* parent )
"*|All Files (*)") );
UndoDialogLayout->addWidget( scriptname );
- TextLabel2 = new QLabel( plainPage(), "TextLabel2" );
+ TextLabel2 = new TQLabel( plainPage(), "TextLabel2" );
TextLabel2->setText( i18n( "<qt>Undo Scripts are normal shell scripts which can also be executed manually from the command line.</qt>" ) );
UndoDialogLayout->addWidget( TextLabel2 );
browser = new KTextBrowser( plainPage());
- browser->setWordWrap( QTextEdit::NoWrap );
- browser->setTextFormat( Qt::RichText );
+ browser->setWordWrap( TQTextEdit::NoWrap );
+ browser->setTextFormat( TQt::RichText );
UndoDialogLayout->addWidget( browser );
setButtonText( KDialogBase::User1, i18n( "&Start" ) );
- connect( this, SIGNAL( user1Clicked() ), this, SLOT( start() ) );
- connect( scriptname, SIGNAL( textChanged( const QString & ) ), this, SLOT( enableControls() ) );
+ connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT( start() ) );
+ connect( scriptname, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( enableControls() ) );
enableControls();
}
@@ -89,14 +89,14 @@ void UndoDialog::start()
return;
}
proc->resume();
- connect( proc, SIGNAL( receivedStdout( KProcess*, char*, int) ), this, SLOT( receive( KProcess*, char*, int ) ) );
- connect( proc, SIGNAL( receivedStderr( KProcess*, char*, int) ), this, SLOT( receiveErr( KProcess*, char*, int ) ) );
- connect( proc, SIGNAL( processExited( KProcess* ) ), this, SLOT( finished( KProcess* ) ) );
+ connect( proc, TQT_SIGNAL( receivedStdout( KProcess*, char*, int) ), this, TQT_SLOT( receive( KProcess*, char*, int ) ) );
+ connect( proc, TQT_SIGNAL( receivedStderr( KProcess*, char*, int) ), this, TQT_SLOT( receiveErr( KProcess*, char*, int ) ) );
+ connect( proc, TQT_SIGNAL( processExited( KProcess* ) ), this, TQT_SLOT( finished( KProcess* ) ) );
}
void UndoDialog::receive( KProcess*, char* buffer, int len )
{
- QString text;
+ TQString text;
for( int i = 0; i < len; i++ )
text.append( buffer[i] );
@@ -105,7 +105,7 @@ void UndoDialog::receive( KProcess*, char* buffer, int len )
void UndoDialog::receiveErr( KProcess*, char* buffer, int len )
{
- QString text = "<b>";
+ TQString text = "<b>";
for( int i = 0; i < len; i++ )
text.append( buffer[i] );
@@ -121,12 +121,12 @@ void UndoDialog::finished( KProcess* p )
void UndoDialog::enableControls()
{
- QFileInfo fi( scriptname->url() );
+ TQFileInfo fi( scriptname->url() );
bool b = !scriptname->url().isEmpty() && fi.exists() && fi.isExecutable();
enableButton( KDialogBase::User1, b );
}
-void UndoDialog::setUndoScript( const QString & filename )
+void UndoDialog::setUndoScript( const TQString & filename )
{
scriptname->setURL( filename );
}