summaryrefslogtreecommitdiffstats
path: root/parts/replace/replacedlgimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/replace/replacedlgimpl.cpp')
-rw-r--r--parts/replace/replacedlgimpl.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/parts/replace/replacedlgimpl.cpp b/parts/replace/replacedlgimpl.cpp
index 59eee128..b0c5bffd 100644
--- a/parts/replace/replacedlgimpl.cpp
+++ b/parts/replace/replacedlgimpl.cpp
@@ -1,8 +1,8 @@
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qstring.h>
-#include <qregexp.h>
-#include <qlabel.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqstring.h>
+#include <tqregexp.h>
+#include <tqlabel.h>
#include <ktrader.h>
#include <kparts/componentfactory.h>
@@ -20,10 +20,10 @@ namespace
/// @todo This is the same function as in ../grepview/grepviewwidget.cpp and
/// should probably be placed in a common place. For now it seemed like too
/// little code to bother with.
-QString escape(const QString &str)
+TQString escape(const TQString &str)
{
- QString escaped("[]{}()\\^$?.+-*");
- QString res;
+ TQString escaped("[]{}()\\^$?.+-*");
+ TQString res;
for (uint i=0; i < str.length(); ++i)
{
@@ -37,17 +37,17 @@ QString escape(const QString &str)
}
-ReplaceDlgImpl::ReplaceDlgImpl(QWidget* parent, const char* name, bool modal, WFlags fl)
+ReplaceDlgImpl::ReplaceDlgImpl(TQWidget* parent, const char* name, bool modal, WFlags fl)
: ReplaceDlg(parent,name, modal,fl), _regexp_dialog( 0 )
{
- connect( find_button, SIGNAL( clicked() ), SLOT( saveComboHistories() ) );
- connect( regexp_button, SIGNAL( clicked() ), SLOT( showRegExpEditor() ) );
- connect( find_combo, SIGNAL( textChanged( const QString & ) ),
- SLOT( validateFind( const QString & ) ) );
- connect( regexp_combo, SIGNAL( textChanged ( const QString & ) ),
- SLOT( validateExpression( const QString & ) ) );
- connect( strings_regexp_radio, SIGNAL( toggled( bool ) ), SLOT( toggleExpression( bool ) ) );
+ connect( find_button, TQT_SIGNAL( clicked() ), TQT_SLOT( saveComboHistories() ) );
+ connect( regexp_button, TQT_SIGNAL( clicked() ), TQT_SLOT( showRegExpEditor() ) );
+ connect( find_combo, TQT_SIGNAL( textChanged( const TQString & ) ),
+ TQT_SLOT( validateFind( const TQString & ) ) );
+ connect( regexp_combo, TQT_SIGNAL( textChanged ( const TQString & ) ),
+ TQT_SLOT( validateExpression( const TQString & ) ) );
+ connect( strings_regexp_radio, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleExpression( bool ) ) );
// disable the editor button if the regexp editor isn't installed
if ( KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() )
@@ -64,7 +64,7 @@ ReplaceDlgImpl::ReplaceDlgImpl(QWidget* parent, const char* name, bool modal, WF
ReplaceDlgImpl::~ReplaceDlgImpl()
{}
-void ReplaceDlgImpl::show( QString const & path )
+void ReplaceDlgImpl::show( TQString const & path )
{
path_urlreq->lineEdit()->setText( path );
@@ -77,13 +77,13 @@ void ReplaceDlgImpl::show( QString const & path )
find_button->setEnabled( false );
- QDialog::show();
+ TQDialog::show();
}
void ReplaceDlgImpl::showRegExpEditor()
{
- _regexp_dialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>( "KRegExpEditor/KRegExpEditor" );
+ _regexp_dialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor" );
if ( _regexp_dialog )
{
@@ -92,14 +92,14 @@ void ReplaceDlgImpl::showRegExpEditor()
editor->setRegExp( regexp_combo->currentText() );
- if ( _regexp_dialog->exec() == QDialog::Accepted )
+ if ( _regexp_dialog->exec() == TQDialog::Accepted )
{
regexp_combo->setCurrentText( editor->regExp() );
}
}
}
-void ReplaceDlgImpl::validateFind( const QString & )
+void ReplaceDlgImpl::validateFind( const TQString & )
{
//kdDebug(0) << "ReplaceWidget::validateFind()" << endl;
@@ -107,12 +107,12 @@ void ReplaceDlgImpl::validateFind( const QString & )
find_button->setEnabled( !x );
}
-void ReplaceDlgImpl::validateExpression( const QString & )
+void ReplaceDlgImpl::validateExpression( const TQString & )
{
//kdDebug(0) << "ReplaceWidget::validateExpression()" << endl;
- QString pattern = regexp_combo->currentText();
- QRegExp re( pattern );
+ TQString pattern = regexp_combo->currentText();
+ TQRegExp re( pattern );
if ( pattern.isEmpty() || !re.isValid() )
{
@@ -130,7 +130,7 @@ void ReplaceDlgImpl::toggleExpression( bool on )
{
if ( on )
{
- validateExpression( QString() );
+ validateExpression( TQString() );
}
else
{
@@ -157,11 +157,11 @@ void ReplaceDlgImpl::saveComboHistories()
}
}
-QRegExp ReplaceDlgImpl::expressionPattern()
+TQRegExp ReplaceDlgImpl::expressionPattern()
{
- QString pattern = escape( find_combo->currentText() );
+ TQString pattern = escape( find_combo->currentText() );
- QRegExp re;
+ TQRegExp re;
re.setCaseSensitive( case_box->isChecked() );
re.setMinimal( true );
@@ -179,7 +179,7 @@ QRegExp ReplaceDlgImpl::expressionPattern()
return re;
}
-QString ReplaceDlgImpl::replacementString()
+TQString ReplaceDlgImpl::replacementString()
{
return replacement_combo->currentText();
}