summaryrefslogtreecommitdiffstats
path: root/kfilereplace/kfilereplaceview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kfilereplace/kfilereplaceview.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfilereplace/kfilereplaceview.cpp')
-rw-r--r--kfilereplace/kfilereplaceview.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kfilereplace/kfilereplaceview.cpp b/kfilereplace/kfilereplaceview.cpp
index fc0d08aa..f68e0c8f 100644
--- a/kfilereplace/kfilereplaceview.cpp
+++ b/kfilereplace/kfilereplaceview.cpp
@@ -15,7 +15,7 @@
* *
*****************************************************************************/
-// Qt
+// TQt
#include <tqwhatsthis.h>
#include <tqmap.h>
#include <tqfileinfo.h>
@@ -43,7 +43,7 @@
using namespace whatthisNameSpace;
-KFileReplaceView::KFileReplaceView(RCOptions* info, TQWidget *parent,const char *name):KFileReplaceViewWdg(parent,name)
+KFileReplaceView::KFileReplaceView(RCOptions* info, TQWidget *tqparent,const char *name):KFileReplaceViewWdg(tqparent,name)
{
m_option = info;
@@ -65,8 +65,8 @@ TQString KFileReplaceView::currentPath()
if(! m_lviCurrent) lvi = m_rv->currentItem();
else lvi = (TQListViewItem*) m_lviCurrent;
- while (lvi->parent())
- lvi = lvi->parent();
+ while (lvi->tqparent())
+ lvi = lvi->tqparent();
return TQString(lvi->text(1)+"/"+lvi->text(0));
}
@@ -117,7 +117,7 @@ void KFileReplaceView::stringsInvert(bool invertAll)
// Cannot invert the string when search string is empty
if (replaceText.isEmpty())
{
- KMessageBox::error(0, i18n("<qt>Cannot invert string <b>%1</b>, because the search string would be empty.</qt>").arg(searchText));
+ KMessageBox::error(0, i18n("<qt>Cannot invert string <b>%1</b>, because the search string would be empty.</qt>").tqarg(searchText));
return;
}
@@ -175,7 +175,7 @@ void KFileReplaceView::slotMouseButtonClicked (int button, TQListViewItem *lvi,
return;
// RIGHT BUTTON
- if (button == TQMouseEvent::RightButton)
+ if (button == Qt::RightButton)
{
m_lviCurrent = static_cast<KListViewItem*>(lvi);
m_menuResult->popup(pos);
@@ -256,8 +256,8 @@ void KFileReplaceView::slotResultEdit()
if(!success)
{
- TQString message = i18n("File %1 cannot be opened. Might be a DCOP problem.").arg(path);
- KMessageBox::error(parentWidget(), message);
+ TQString message = i18n("File %1 cannot be opened. Might be a DCOP problem.").tqarg(path);
+ KMessageBox::error(tqparentWidget(), message);
}
}
if (lviChild == lvi)
@@ -278,8 +278,8 @@ void KFileReplaceView::slotResultDelete()
if (!currItem.isEmpty())
{
TQFile fi;
- int answer = KMessageBox::warningContinueCancel(this, i18n("Do you really want to delete %1?").arg(currItem),
- TQString::null,KStdGuiItem::del());
+ int answer = KMessageBox::warningContinueCancel(this, i18n("Do you really want to delete %1?").tqarg(currItem),
+ TQString(),KStdGuiItem::del());
if(answer == KMessageBox::Continue)
{
@@ -338,7 +338,7 @@ void KFileReplaceView::slotQuickStringsAdd(const TQString& quickSearch, const TQ
KeyValueMap map;
if(quickReplace.isEmpty())
{
- map[quickSearch] = TQString::null;
+ map[quickSearch] = TQString();
m_option->m_searchingOnlyMode = true;
}
else
@@ -417,13 +417,13 @@ void KFileReplaceView::slotStringsSave()
body += TQString("\n\t<replacement>"
"\n\t\t<oldstring><![CDATA[%1]]></oldstring>"
"\n\t\t<newstring><![CDATA[%2]]></newstring>"
- "\n\t</replacement>").arg(lvi->text(0)).arg(lvi->text(1));
+ "\n\t</replacement>").tqarg(lvi->text(0)).tqarg(lvi->text(1));
lvi = lvi->nextSibling();
}
// Selects the file where strings will be saved
TQString menu = "*.kfr|" + i18n("KFileReplace Strings") + " (*.kfr)\n*|" + i18n("All Files") + " (*)";
- TQString fileName = KFileDialog::getSaveFileName(TQString::null, menu, 0, i18n("Save Strings to File"));
+ TQString fileName = KFileDialog::getSaveFileName(TQString(), menu, 0, i18n("Save Strings to File"));
if (fileName.isEmpty())
return;
@@ -434,7 +434,7 @@ void KFileReplaceView::slotStringsSave()
TQFile file( fileName );
if(!file.open( IO_WriteOnly ))
{
- KMessageBox::error(0, i18n("File %1 cannot be saved.").arg(fileName));
+ KMessageBox::error(0, i18n("File %1 cannot be saved.").tqarg(fileName));
return ;
}
TQTextStream oTStream( &file );
@@ -498,7 +498,7 @@ void KFileReplaceView::initGUI()
- m_menuResult->insertItem(SmallIconSet(TQString::fromLatin1("fileopen")),
+ m_menuResult->insertItem(SmallIconSet(TQString::tqfromLatin1("fileopen")),
i18n("&Open"),
this,
TQT_SLOT(slotResultOpen()));
@@ -517,16 +517,16 @@ void KFileReplaceView::initGUI()
TQT_SLOT(slotResultEdit()));
}
- m_menuResult->insertItem(SmallIconSet(TQString::fromLatin1("up")),
+ m_menuResult->insertItem(SmallIconSet(TQString::tqfromLatin1("up")),
i18n("Open Parent &Folder"),
this,
TQT_SLOT(slotResultDirOpen()));
- m_menuResult->insertItem(SmallIconSet(TQString::fromLatin1("editdelete")),
+ m_menuResult->insertItem(SmallIconSet(TQString::tqfromLatin1("editdelete")),
i18n("&Delete"),
this,
TQT_SLOT(slotResultDelete()));
m_menuResult->insertSeparator();
- m_menuResult->insertItem(SmallIconSet(TQString::fromLatin1("info")),
+ m_menuResult->insertItem(SmallIconSet(TQString::tqfromLatin1("info")),
i18n("&Properties"),
this,
TQT_SLOT(slotResultProperties()));
@@ -562,7 +562,7 @@ coord KFileReplaceView::extractWordCoordinates(TQListViewItem* lvi)
c.column = 0;
TQString s = lvi->text(0);
//qWarning("WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW=%s",s.latin1());
- /* if(lvi->parent()) s = lvi->text(0);
+ /* if(lvi->tqparent()) s = lvi->text(0);
else return c;*/
TQString temp;
@@ -591,7 +591,7 @@ coord KFileReplaceView::extractWordCoordinates(TQListViewItem* lvi)
break;
}
c.line = temp.toInt();
- temp = TQString::null;
+ temp = TQString();
while(true)
{
@@ -640,7 +640,7 @@ void KFileReplaceView::setMap()
while(i != 0)
{
if(m_option->m_searchingOnlyMode)
- map[i->text(0)] = TQString::null;
+ map[i->text(0)] = TQString();
else
map[i->text(0)] = i->text(1);
i = i->nextSibling();