summaryrefslogtreecommitdiffstats
path: root/parts/replace
diff options
context:
space:
mode:
Diffstat (limited to 'parts/replace')
-rw-r--r--parts/replace/replace_part.cpp4
-rw-r--r--parts/replace/replace_widget.cpp18
-rw-r--r--parts/replace/replacedlg.ui8
-rw-r--r--parts/replace/replaceitem.cpp12
-rw-r--r--parts/replace/replaceview.cpp6
5 files changed, 24 insertions, 24 deletions
diff --git a/parts/replace/replace_part.cpp b/parts/replace/replace_part.cpp
index e808ab70..7a64cac8 100644
--- a/parts/replace/replace_part.cpp
+++ b/parts/replace/replace_part.cpp
@@ -99,9 +99,9 @@ void ReplacePart::contextMenu(TQPopupMenu *popup, const Context *context)
if (!ident.isEmpty()) {
m_popupstr = ident;
TQString squeezed = KStringHandler::csqueeze(ident, 30);
- int id = popup->insertItem( i18n("Replace Project Wide: %1").tqarg(squeezed),
+ int id = popup->insertItem( i18n("Replace Project Wide: %1").arg(squeezed),
this, TQT_SLOT(slotReplace()) );
- popup->tqsetWhatsThis(id, i18n("<b>Replace Project Wide</b><p>Opens the find in files dialog "
+ 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_widget.cpp b/parts/replace/replace_widget.cpp
index 1136e08a..b9ac5984 100644
--- a/parts/replace/replace_widget.cpp
+++ b/parts/replace/replace_widget.cpp
@@ -35,7 +35,7 @@
#include <klocale.h>
#include <kstdguiitem.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpushbutton.h>
#include <tqlineedit.h>
#include <tqradiobutton.h>
@@ -45,7 +45,7 @@
#include <tqdialog.h>
#include <tqfile.h>
#include <tqdir.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqdatastream.h>
#include <sys/types.h>
@@ -65,8 +65,8 @@ ReplaceWidget::ReplaceWidget(ReplacePart *part)
_terminateOperation( false )
{
// setup outputview
- TQVBoxLayout * tqlayout = new TQVBoxLayout( this );
- TQHBoxLayout * buttontqlayout = new TQHBoxLayout( tqlayout );
+ TQVBoxLayout * layout = new TQVBoxLayout( this );
+ TQHBoxLayout * buttonlayout = new TQHBoxLayout( layout );
_cancel = new KPushButton( KStdGuiItem::cancel(), this );
_replace = new KPushButton( KGuiItem(i18n("Replace"),"filefind"), this );
@@ -74,11 +74,11 @@ ReplaceWidget::ReplaceWidget(ReplacePart *part)
_cancel->setEnabled( false );
_replace->setEnabled( false );
- buttontqlayout->addWidget( _replace );
- buttontqlayout->addWidget( _cancel );
+ buttonlayout->addWidget( _replace );
+ buttonlayout->addWidget( _cancel );
_listview = new ReplaceView( this );
- tqlayout->addWidget( _listview );
+ layout->addWidget( _listview );
// setup signals
connect( m_dialog->find_button, TQT_SIGNAL( clicked() ), TQT_SLOT( find() ) );
@@ -235,7 +235,7 @@ bool ReplaceWidget::showReplacements()
}
++it;
- kapp->tqprocessEvents( 100 );
+ kapp->processEvents( 100 );
}
m_part->core()->running( m_part, false );
@@ -330,7 +330,7 @@ bool ReplaceWidget::makeReplacements()
}
fileitem = fileitem->nextSibling();
- kapp->tqprocessEvents( 100 );
+ kapp->processEvents( 100 );
}
// Telling the project about the edited files
diff --git a/parts/replace/replacedlg.ui b/parts/replace/replacedlg.ui
index 6a8b81f9..ce58234a 100644
--- a/parts/replace/replacedlg.ui
+++ b/parts/replace/replacedlg.ui
@@ -20,7 +20,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32767</width>
<height>32767</height>
@@ -93,7 +93,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -200,7 +200,7 @@
</widget>
<widget class="TQLayoutWidget" row="3" column="0">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -229,7 +229,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
diff --git a/parts/replace/replaceitem.cpp b/parts/replace/replaceitem.cpp
index 853c170d..85033406 100644
--- a/parts/replace/replaceitem.cpp
+++ b/parts/replace/replaceitem.cpp
@@ -11,7 +11,7 @@
#include <tqpainter.h>
#include <tqstyle.h>
-#include <tqpalette.h>
+#include <palette.h>
#include <tqcheckbox.h>
#include "replaceitem.h"
@@ -56,7 +56,7 @@ void ReplaceItem::setChecked( bool checked )
return;
}
- // this is a parent item, set self and tqchildren
+ // this is a parent item, set self and children
ReplaceItem * item = firstChild();
while ( item )
{
@@ -84,13 +84,13 @@ void ReplaceItem::paintCell( TQPainter * p, const TQColorGroup & cg, int column,
const BackgroundMode bgmode = lv->viewport()->backgroundMode();
const TQColorGroup::ColorRole crole = TQPalette::backgroundRoleFromMode( bgmode );
- if ( cg.brush( crole ) != lv->tqcolorGroup().brush( crole ) )
+ if ( cg.brush( crole ) != lv->colorGroup().brush( crole ) )
p->fillRect( 0, 0, width, height(), cg.brush( crole ) );
else
lv->paintEmptyArea( p, TQRect( 0, 0, width, height() ) );
TQFontMetrics fm( lv->fontMetrics() );
- int boxsize = lv->tqstyle().tqpixelMetric(TQStyle::PM_CheckListButtonSize, lv);
+ int boxsize = lv->tqstyle().pixelMetric(TQStyle::PM_CheckListButtonSize, lv);
int marg = lv->itemMargin();
int r = marg;
@@ -138,8 +138,8 @@ void ReplaceItem::activate( int, TQPoint const & localPos )
{
TQListView * lv = listView();
TQCheckBox cb(0);
- int boxsize = cb.tqsizeHint().width();
-//that's KDE-3.1 only int boxsize = lv->style().tqpixelMetric(TQStyle::PM_CheckListButtonSize, lv);
+ int boxsize = cb.sizeHint().width();
+//that's KDE-3.1 only int boxsize = lv->style().pixelMetric(TQStyle::PM_CheckListButtonSize, lv);
int rightside = lv->itemMargin() + boxsize + ( isFile() ? 0 : lv->treeStepSize() );
// _lineclicked indicates if the click was on the line or in the checkbox
diff --git a/parts/replace/replaceview.cpp b/parts/replace/replaceview.cpp
index 4d5c4b41..3c84c0f0 100644
--- a/parts/replace/replaceview.cpp
+++ b/parts/replace/replaceview.cpp
@@ -10,11 +10,11 @@
***************************************************************************/
#include <tqheader.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqdir.h>
#include <tqstringlist.h>
#include <tqregexp.h>
-#include <tqpalette.h>
+#include <palette.h>
#include "replaceitem.h"
#include "replaceview.h"
@@ -119,7 +119,7 @@ void ReplaceView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& po
else if ( btn == Qt::LeftButton )
{
// map pos to item/column and call ReplacetItem::activate(pos)
- item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, tqitemRect(item).top() ) );
+ item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(item).top() ) );
}
}
}