summaryrefslogtreecommitdiffstats
path: root/kate/insertcommand/plugin_kateinsertcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/insertcommand/plugin_kateinsertcommand.cpp')
-rw-r--r--kate/insertcommand/plugin_kateinsertcommand.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kate/insertcommand/plugin_kateinsertcommand.cpp b/kate/insertcommand/plugin_kateinsertcommand.cpp
index fb42c3f..cc88a5b 100644
--- a/kate/insertcommand/plugin_kateinsertcommand.cpp
+++ b/kate/insertcommand/plugin_kateinsertcommand.cpp
@@ -57,8 +57,8 @@ class PluginView : public KXMLGUIClient
//END
//BEGIN PluginKateInsertCommand
-PluginKateInsertCommand::PluginKateInsertCommand( TQObject* parent, const char* name, const TQStringList& )
- : Kate::Plugin ( (Kate::Application *)parent, name ),
+PluginKateInsertCommand::PluginKateInsertCommand( TQObject* tqparent, const char* name, const TQStringList& )
+ : Kate::Plugin ( (Kate::Application *)tqparent, name ),
kv ( 0 ),
sh ( 0 )
{
@@ -169,11 +169,11 @@ void PluginKateInsertCommand::slotInsertCommand()
*sh << "cd" << d->wd() << "&&";
config->writePathEntry("Last WD", d->wd());
}
- *sh << TQFile::encodeName(d->command());
+ *sh << TQFile::encodeName(d->command()).data();
sh->start( KProcess::NotifyOnExit, KProcess::All );
// add command to history
- if ( cmdhist.contains( d->command() ) ) {
+ if ( cmdhist.tqcontains( d->command() ) ) {
cmdhist.remove( d->command() );
}
cmdhist.prepend( d->command() );
@@ -208,7 +208,7 @@ void PluginKateInsertCommand::slotShowWaitDlg()
{
if ( sh->isRunning() ) {
wdlg = new WaitDlg( (TQWidget*)kv, i18n(
- "Executing command:\n%1\n\nPress 'Cancel' to abort.").arg(cmd) );
+ "Executing command:\n%1\n\nPress 'Cancel' to abort.").tqarg(cmd) );
connect(wdlg, TQT_SIGNAL(cancelClicked()), this, TQT_SLOT(slotAbort()) );
}
if ( sh->isRunning() ) // we may have finished while creating the dialog.
@@ -277,13 +277,13 @@ void PluginKateInsertCommand::applyConfig( InsertCommandConfigPage *p )
//BEGIN CmdPrompt
// This is a simple dialog to retrieve a command and decide if
// stdErr should be included in the text inserted.
-CmdPrompt::CmdPrompt(TQWidget* parent,
+CmdPrompt::CmdPrompt(TQWidget* tqparent,
const char* name,
const TQStringList& cmdhist,
const TQString& dir,
const TQString& /*docdir*/,
int settings)
- : KDialogBase (parent, name, true, i18n("Insert Command"), Ok|Cancel, Ok, true)
+ : KDialogBase (tqparent, name, true, i18n("Insert Command"), Ok|Cancel, Ok, true)
{
TQWidget *page = new TQWidget( this );
setMainWidget(page);
@@ -345,14 +345,14 @@ void CmdPrompt::slotTextChanged(const TQString &text)
//BEGIN WaitDlg implementation
// This is a dialog that is displayed while a command is running,
// with a cancel button to allow the user to kill the command
-WaitDlg::WaitDlg(TQWidget* parent, const TQString& text, const TQString& title)
- : KDialogBase( parent, "wait dialog", true, title, Cancel, Cancel, true )
+WaitDlg::WaitDlg(TQWidget* tqparent, const TQString& text, const TQString& title)
+ : KDialogBase( tqparent, "wait dialog", true, title, Cancel, Cancel, true )
{
TQWidget *page = new TQWidget( this );
setMainWidget( page );
TQHBoxLayout *lo = new TQHBoxLayout( page, 0, spacingHint() );
- KAnimWidget *aw = new KAnimWidget( TQString::fromLatin1("kde"), 48, page );
+ KAnimWidget *aw = new KAnimWidget( TQString::tqfromLatin1("kde"), 48, page );
lo->addWidget(aw);
TQLabel *l = new TQLabel( text, page );
lo->addWidget( l );
@@ -366,9 +366,9 @@ WaitDlg::~WaitDlg()
//BEGIN InsertCommandConfigPage
// This is the config page for this plugin.
-InsertCommandConfigPage::InsertCommandConfigPage(TQObject* /*parent*/,
- TQWidget *parentWidget)
- : Kate::PluginConfigPage( parentWidget )
+InsertCommandConfigPage::InsertCommandConfigPage(TQObject* /*tqparent*/,
+ TQWidget *tqparentWidget)
+ : Kate::PluginConfigPage( tqparentWidget )
{
TQVBoxLayout* lo = new TQVBoxLayout( this );
lo->setSpacing(KDialogBase::spacingHint());
@@ -414,4 +414,4 @@ void InsertCommandConfigPage::apply()
emit configPageApplyRequest( this );
}
//END InsertCommandConfigPage
-// kate: space-indent on; indent-width 2; replace-tabs on;
+// kate: space-indent on; indent-width 2; tqreplace-tabs on;