summaryrefslogtreecommitdiffstats
path: root/parts/replace
diff options
context:
space:
mode:
Diffstat (limited to 'parts/replace')
-rw-r--r--parts/replace/replace_part.cpp10
-rw-r--r--parts/replace/replace_part.h2
-rw-r--r--parts/replace/replace_widget.cpp10
-rw-r--r--parts/replace/replace_widget.h2
-rw-r--r--parts/replace/replacedlgimpl.cpp14
-rw-r--r--parts/replace/replacedlgimpl.h2
-rw-r--r--parts/replace/replaceitem.cpp2
-rw-r--r--parts/replace/replaceview.cpp10
-rw-r--r--parts/replace/replaceview.h2
9 files changed, 27 insertions, 27 deletions
diff --git a/parts/replace/replace_part.cpp b/parts/replace/replace_part.cpp
index 447548ef..d5329308 100644
--- a/parts/replace/replace_part.cpp
+++ b/parts/replace/replace_part.cpp
@@ -53,7 +53,7 @@ ReplacePart::ReplacePart(TQObject *parent, const char *name, const TQStringList&
mainWindow()->setViewAvailable( m_widget, false );
action = new TDEAction(i18n("Find-Select-Replace..."), 0,
- CTRL+SHIFT+Key_R, this, TQT_SLOT(slotReplace()), actionCollection(), "edit_replace_across");
+ CTRL+SHIFT+Key_R, this, TQ_SLOT(slotReplace()), actionCollection(), "edit_replace_across");
action->setToolTip( i18n("Project wide string replacement") );
action->setWhatsThis( i18n("<b>Find-Select-Replace</b><p>"
"Opens the project wide string replacement dialog. There you "
@@ -62,9 +62,9 @@ ReplacePart::ReplacePart(TQObject *parent, const char *name, const TQStringList&
"you specify. Matches will be displayed in the <b>Replace</b> window, you "
"can replace them with the specified string, exclude them from replace operation or cancel the whole replace.") );
- connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
- connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(enableAction()));
- connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(disableAction()));
+ connect( core(), TQ_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), this, TQ_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
+ connect( core(), TQ_SIGNAL(projectOpened()), this, TQ_SLOT(enableAction()));
+ connect( core(), TQ_SIGNAL(projectClosed()), this, TQ_SLOT(disableAction()));
}
void ReplacePart::enableAction()
@@ -100,7 +100,7 @@ void ReplacePart::contextMenu(TQPopupMenu *popup, const Context *context)
m_popupstr = ident;
TQString squeezed = KStringHandler::csqueeze(ident, 30);
int id = popup->insertItem( i18n("Replace Project Wide: %1").arg(squeezed),
- this, TQT_SLOT(slotReplace()) );
+ this, TQ_SLOT(slotReplace()) );
popup->setWhatsThis(id, i18n("<b>Replace Project Wide</b><p>Opens the find in files dialog "
"and sets the pattern to the text under the cursor."));
popup->insertSeparator();
diff --git a/parts/replace/replace_part.h b/parts/replace/replace_part.h
index fbd0f2f7..d00cc11d 100644
--- a/parts/replace/replace_part.h
+++ b/parts/replace/replace_part.h
@@ -24,7 +24,7 @@ class Context;
class ReplacePart : public KDevPlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/parts/replace/replace_widget.cpp b/parts/replace/replace_widget.cpp
index 6b1bcbda..22a256ae 100644
--- a/parts/replace/replace_widget.cpp
+++ b/parts/replace/replace_widget.cpp
@@ -81,13 +81,13 @@ ReplaceWidget::ReplaceWidget(ReplacePart *part)
layout->addWidget( _listview );
// setup signals
- connect( m_dialog->find_button, TQT_SIGNAL( clicked() ), TQT_SLOT( find() ) );
+ connect( m_dialog->find_button, TQ_SIGNAL( clicked() ), TQ_SLOT( find() ) );
- connect( _replace, TQT_SIGNAL( clicked() ), TQT_SLOT( replace() ) );
- connect( _cancel, TQT_SIGNAL( clicked() ), TQT_SLOT( clear() ) );
- connect( _listview, TQT_SIGNAL( editDocument( const TQString &, int ) ), TQT_SLOT( editDocument( const TQString &, int ) ) );
+ connect( _replace, TQ_SIGNAL( clicked() ), TQ_SLOT( replace() ) );
+ connect( _cancel, TQ_SIGNAL( clicked() ), TQ_SLOT( clear() ) );
+ connect( _listview, TQ_SIGNAL( editDocument( const TQString &, int ) ), TQ_SLOT( editDocument( const TQString &, int ) ) );
- connect( m_part->core(), TQT_SIGNAL( stopButtonClicked( KDevPlugin * ) ), TQT_SLOT( stopButtonClicked( KDevPlugin * ) ) );
+ connect( m_part->core(), TQ_SIGNAL( stopButtonClicked( KDevPlugin * ) ), TQ_SLOT( stopButtonClicked( KDevPlugin * ) ) );
}
//BEGIN Slots
diff --git a/parts/replace/replace_widget.h b/parts/replace/replace_widget.h
index c9063928..e666b872 100644
--- a/parts/replace/replace_widget.h
+++ b/parts/replace/replace_widget.h
@@ -28,7 +28,7 @@ class ReplaceView;
class ReplaceWidget : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/parts/replace/replacedlgimpl.cpp b/parts/replace/replacedlgimpl.cpp
index 3fcdd761..412f0545 100644
--- a/parts/replace/replacedlgimpl.cpp
+++ b/parts/replace/replacedlgimpl.cpp
@@ -41,13 +41,13 @@ ReplaceDlgImpl::ReplaceDlgImpl(TQWidget* parent, const char* name, bool modal, W
: ReplaceDlg(parent,name, modal,fl), _regexp_dialog( 0 )
{
- 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 ) ) );
+ connect( find_button, TQ_SIGNAL( clicked() ), TQ_SLOT( saveComboHistories() ) );
+ connect( regexp_button, TQ_SIGNAL( clicked() ), TQ_SLOT( showRegExpEditor() ) );
+ connect( find_combo, TQ_SIGNAL( textChanged( const TQString & ) ),
+ TQ_SLOT( validateFind( const TQString & ) ) );
+ connect( regexp_combo, TQ_SIGNAL( textChanged ( const TQString & ) ),
+ TQ_SLOT( validateExpression( const TQString & ) ) );
+ connect( strings_regexp_radio, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( toggleExpression( bool ) ) );
// disable the editor button if the regexp editor isn't installed
if ( TDETrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() )
diff --git a/parts/replace/replacedlgimpl.h b/parts/replace/replacedlgimpl.h
index cc53029e..f71adaa6 100644
--- a/parts/replace/replacedlgimpl.h
+++ b/parts/replace/replacedlgimpl.h
@@ -8,7 +8,7 @@ class TQDialog;
class ReplaceDlgImpl : public ReplaceDlg
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/parts/replace/replaceitem.cpp b/parts/replace/replaceitem.cpp
index 20471d67..ebd92797 100644
--- a/parts/replace/replaceitem.cpp
+++ b/parts/replace/replaceitem.cpp
@@ -116,7 +116,7 @@ void ReplaceItem::paintCell( TQPainter * p, const TQColorGroup & cg, int column,
else
y = (fm.height() + 2 + marg - boxsize) / 2;
- lv->style().tqdrawPrimitive(TQStyle::PE_CheckListIndicator, p,
+ lv->style().drawPrimitive(TQStyle::PE_CheckListIndicator, p,
TQRect(x, y, boxsize,
fm.height() + 2 + marg),
cg, styleflags, TQStyleOption(this));
diff --git a/parts/replace/replaceview.cpp b/parts/replace/replaceview.cpp
index a85b0818..2304a31b 100644
--- a/parts/replace/replaceview.cpp
+++ b/parts/replace/replaceview.cpp
@@ -40,9 +40,9 @@ ReplaceView::ReplaceView( TQWidget * parent ) : TDEListView( parent ), _latestfi
pal.setActive( cg );
setPalette( pal );
- connect( this, TQT_SIGNAL( clicked( TQListViewItem * ) ), TQT_SLOT( slotClicked( TQListViewItem * ) ) );
- connect( this, TQT_SIGNAL( mouseButtonPressed( int, TQListViewItem *, const TQPoint &, int) ),
- TQT_SLOT( slotMousePressed(int, TQListViewItem *, const TQPoint &, int) ) );
+ connect( this, TQ_SIGNAL( clicked( TQListViewItem * ) ), TQ_SLOT( slotClicked( TQListViewItem * ) ) );
+ connect( this, TQ_SIGNAL( mouseButtonPressed( int, TQListViewItem *, const TQPoint &, int) ),
+ TQ_SLOT( slotMousePressed(int, TQListViewItem *, const TQPoint &, int) ) );
}
void ReplaceView::makeReplacementsForFile( TQTextStream & istream, TQTextStream & ostream, ReplaceItem const * fileitem )
@@ -112,11 +112,11 @@ void ReplaceView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& po
if ( ReplaceItem * item = dynamic_cast<ReplaceItem*>( i ) )
{
- if ( btn == Qt::RightButton )
+ if ( btn == TQt::RightButton )
{
// popup menu?
}
- else if ( btn == Qt::LeftButton )
+ else if ( btn == TQt::LeftButton )
{
// map pos to item/column and call ReplacetItem::activate(pos)
item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(item).top() ) );
diff --git a/parts/replace/replaceview.h b/parts/replace/replaceview.h
index 1b7591aa..6f3d2b04 100644
--- a/parts/replace/replaceview.h
+++ b/parts/replace/replaceview.h
@@ -23,7 +23,7 @@ class ReplaceItem;
class ReplaceView : public TDEListView
{
- Q_OBJECT
+ TQ_OBJECT
signals: