summaryrefslogtreecommitdiffstats
path: root/kate/app/kategrepdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/app/kategrepdialog.cpp')
-rw-r--r--kate/app/kategrepdialog.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kate/app/kategrepdialog.cpp b/kate/app/kategrepdialog.cpp
index 70f067100..00bd1dcd6 100644
--- a/kate/app/kategrepdialog.cpp
+++ b/kate/app/kategrepdialog.cpp
@@ -101,7 +101,7 @@ GrepTool::GrepTool(TQWidget *parent, const char *name)
TQLabel *lPattern = new TQLabel(i18n("Pattern:"), this);
lPattern->setFixedSize(lPattern->sizeHint());
- loInput->addWidget(lPattern, 0, 0, Qt::AlignRight | Qt::AlignVCenter);
+ loInput->addWidget(lPattern, 0, 0, TQt::AlignRight | TQt::AlignVCenter);
TQBoxLayout *loPattern = new TQHBoxLayout( 4 );
loInput->addLayout( loPattern, 0, 1 );
@@ -128,7 +128,7 @@ GrepTool::GrepTool(TQWidget *parent, const char *name)
TQLabel *lTemplate = new TQLabel(i18n("Template:"), this);
lTemplate->setFixedSize(lTemplate->sizeHint());
- loInput->addWidget(lTemplate, 1, 0, Qt::AlignRight | Qt::AlignVCenter);
+ loInput->addWidget(lTemplate, 1, 0, TQt::AlignRight | TQt::AlignVCenter);
TQBoxLayout *loTemplate = new TQHBoxLayout(4);
loInput->addLayout(loTemplate, 1, 1);
@@ -147,13 +147,13 @@ GrepTool::GrepTool(TQWidget *parent, const char *name)
TQLabel *lFiles = new TQLabel(i18n("Files:"), this);
lFiles->setFixedSize(lFiles->sizeHint());
- loInput->addWidget(lFiles, 2, 0, Qt::AlignRight | Qt::AlignVCenter);
+ loInput->addWidget(lFiles, 2, 0, TQt::AlignRight | TQt::AlignVCenter);
TQBoxLayout *loFiles = new TQHBoxLayout( 2 );
loInput->addLayout( loFiles, 2, 1 );
cmbFiles = new KComboBox(true, this);
- lFiles->setBuddy(TQT_TQWIDGET(cmbFiles->focusProxy()));
+ lFiles->setBuddy(cmbFiles->focusProxy());
cmbFiles->setMinimumSize(cmbFiles->sizeHint());
cmbFiles->setInsertionPolicy(TQComboBox::NoInsertion);
cmbFiles->setDuplicatesEnabled(false);
@@ -168,7 +168,7 @@ GrepTool::GrepTool(TQWidget *parent, const char *name)
TQLabel *lDir = new TQLabel(i18n("Folder:"), this);
lDir->setFixedSize(lDir->sizeHint());
- loInput->addWidget(lDir, 3, 0, Qt::AlignRight | Qt::AlignVCenter);
+ loInput->addWidget(lDir, 3, 0, TQt::AlignRight | TQt::AlignVCenter);
TQBoxLayout *loDir = new TQHBoxLayout(3);
loInput->addLayout(loDir, 3, 1);
@@ -189,7 +189,7 @@ GrepTool::GrepTool(TQWidget *parent, const char *name)
cbRecursive->setChecked(config->readBoolEntry("Recursive", true));
loDir->addWidget(cbRecursive);
- KButtonBox *actionbox = new KButtonBox(this, Qt::Vertical);
+ KButtonBox *actionbox = new KButtonBox(this, TQt::Vertical);
layout->addWidget(actionbox, 0, 2);
actionbox->addStretch();
btnSearch = static_cast<KPushButton*>(actionbox->addButton(KGuiItem(i18n("Find"),"edit-find")));
@@ -262,16 +262,16 @@ GrepTool::GrepTool(TQWidget *parent, const char *name)
cmbFiles->installEventFilter( this );
cmbDir->comboBox()->installEventFilter( this );
- connect( cmbTemplate, TQT_SIGNAL(activated(int)),
- TQT_SLOT(templateActivated(int)) );
- connect( lbResult, TQT_SIGNAL(selected(const TQString&)),
- TQT_SLOT(itemSelected(const TQString&)) );
- connect( btnSearch, TQT_SIGNAL(clicked()),
- TQT_SLOT(slotSearch()) );
- connect( btnClear, TQT_SIGNAL(clicked()),
- TQT_SLOT(slotClear()) );
- connect( cmbPattern->lineEdit(), TQT_SIGNAL(textChanged ( const TQString & )),
- TQT_SLOT( patternTextChanged( const TQString & )));
+ connect( cmbTemplate, TQ_SIGNAL(activated(int)),
+ TQ_SLOT(templateActivated(int)) );
+ connect( lbResult, TQ_SIGNAL(selected(const TQString&)),
+ TQ_SLOT(itemSelected(const TQString&)) );
+ connect( btnSearch, TQ_SIGNAL(clicked()),
+ TQ_SLOT(slotSearch()) );
+ connect( btnClear, TQ_SIGNAL(clicked()),
+ TQ_SLOT(slotClear()) );
+ connect( cmbPattern->lineEdit(), TQ_SIGNAL(textChanged ( const TQString & )),
+ TQ_SLOT( patternTextChanged( const TQString & )));
patternTextChanged( cmbPattern->lineEdit()->text());
}
@@ -389,15 +389,15 @@ void GrepTool::slotSearch()
*childproc << "/dev/null"; //trick to have grep always display the filename
*childproc << ";";
- connect( childproc, TQT_SIGNAL(processExited(TDEProcess *)),
- TQT_SLOT(childExited()) );
- connect( childproc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
- TQT_SLOT(receivedOutput(TDEProcess *, char *, int)) );
- connect( childproc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- TQT_SLOT(receivedErrOutput(TDEProcess *, char *, int)) );
+ connect( childproc, TQ_SIGNAL(processExited(TDEProcess *)),
+ TQ_SLOT(childExited()) );
+ connect( childproc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ TQ_SLOT(receivedOutput(TDEProcess *, char *, int)) );
+ connect( childproc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ TQ_SLOT(receivedErrOutput(TDEProcess *, char *, int)) );
// actually it should be checked whether the process was started successfully
- lbResult->setCursor( TQCursor(Qt::WaitCursor) );
+ lbResult->setCursor( TQCursor(TQt::WaitCursor) );
btnClear->setEnabled( false );
btnSearch->setGuiItem( KGuiItem(i18n("Cancel"), "button_cancel"));
childproc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
@@ -532,8 +532,8 @@ void GrepTool::setDirName(const TQString &dir){
bool GrepTool::eventFilter( TQObject *o, TQEvent *e )
{
if ( e->type() == TQEvent::KeyPress && (
- ((TQKeyEvent*)e)->key() == Qt::Key_Return ||
- ((TQKeyEvent*)e)->key() == Qt::Key_Enter ) )
+ ((TQKeyEvent*)e)->key() == TQt::Key_Return ||
+ ((TQKeyEvent*)e)->key() == TQt::Key_Enter ) )
{
slotSearch();
return true;