summaryrefslogtreecommitdiffstats
path: root/kfind/kfwin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kfind/kfwin.cpp
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfind/kfwin.cpp')
-rw-r--r--kfind/kfwin.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kfind/kfwin.cpp b/kfind/kfwin.cpp
index 2ee69aa14..963fdaf92 100644
--- a/kfind/kfwin.cpp
+++ b/kfind/kfwin.cpp
@@ -146,7 +146,7 @@ KfindWindow::KfindWindow( TQWidget *parent, const char *name )
TQString KfindWindow::reducedDir(const TQString& fullDir)
{
- if (fullDir.find(m_baseDir)==0)
+ if (fullDir.tqfind(m_baseDir)==0)
{
TQString tmp=fullDir.mid(m_baseDir.length());
return tmp;
@@ -156,7 +156,7 @@ TQString KfindWindow::reducedDir(const TQString& fullDir)
void KfindWindow::beginSearch(const KURL& baseUrl)
{
- kdDebug()<<TQString("beginSearch in: %1").arg(baseUrl.path())<<endl;
+ kdDebug()<<TQString(TQString("beginSearch in: %1").arg(baseUrl.path()))<<endl;
m_baseDir=baseUrl.path(+1);
haveSelection = false;
clear();
@@ -178,7 +178,7 @@ void KfindWindow::copySelection()
if (drag_obj)
{
- QClipboard *cb = kapp->clipboard();
+ TQClipboard *cb = kapp->tqclipboard();
cb->setData(drag_obj);
}
}
@@ -215,14 +215,14 @@ void KfindWindow::saveResults()
TQFile file(filename);
if ( !file.open(IO_WriteOnly) )
- KMessageBox::error(parentWidget(),
+ KMessageBox::error(tqparentWidget(),
i18n("Unable to save results."));
else {
TQTextStream stream( &file );
stream.setEncoding( TQTextStream::Locale );
if ( mimeType->name() == "text/html") {
- stream << TQString::fromLatin1("<HTML><HEAD>\n"
+ stream << TQString::tqfromLatin1("<HTML><HEAD>\n"
"<!DOCTYPE %1>\n"
"<TITLE>%2</TITLE></HEAD>\n"
"<BODY><H1>%3</H1>"
@@ -236,13 +236,13 @@ void KfindWindow::saveResults()
{
TQString path=((KfFileLVI*)item)->fileitem.url().url();
TQString pretty=((KfFileLVI*)item)->fileitem.url().htmlURL();
- stream << TQString::fromLatin1("<DT><A HREF=\"") << path
- << TQString::fromLatin1("\">") << pretty
- << TQString::fromLatin1("</A>\n");
+ stream << TQString::tqfromLatin1("<DT><A HREF=\"") << path
+ << TQString::tqfromLatin1("\">") << pretty
+ << TQString::tqfromLatin1("</A>\n");
item = item->nextSibling();
}
- stream << TQString::fromLatin1("</DL><P></BODY></HTML>\n");
+ stream << TQString::tqfromLatin1("</DL><P></BODY></HTML>\n");
}
else {
item = firstChild();
@@ -255,7 +255,7 @@ void KfindWindow::saveResults()
}
file.close();
- KMessageBox::information(parentWidget(),
+ KMessageBox::information(tqparentWidget(),
i18n("Results were saved to file\n")+
filename);
}
@@ -287,7 +287,7 @@ void KfindWindow::deleteFiles()
{
TQString tmp = i18n("Do you really want to delete the selected file?",
"Do you really want to delete the %n selected files?",selectedItems().count());
- if (KMessageBox::warningContinueCancel(parentWidget(), tmp, "", KGuiItem( i18n("&Delete"), "editdelete")) == KMessageBox::Cancel)
+ if (KMessageBox::warningContinueCancel(tqparentWidget(), tmp, "", KGuiItem( i18n("&Delete"), "editdelete")) == KMessageBox::Cancel)
return;
// Iterate on all selected elements
@@ -335,7 +335,7 @@ void KfindWindow::resizeEvent(TQResizeEvent *e)
{
KListView::resizeEvent(e);
resetColumns(false);
- clipper()->repaint();
+ clipper()->tqrepaint();
}
TQDragObject * KfindWindow::dragObject()
@@ -372,7 +372,7 @@ void KfindWindow::resetColumns(bool init)
{
setColumnWidth(2, QMAX(fm.width(columnText(2)), fm.width("0000000")) + 15);
TQString sampleDate =
- KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime());
+ KGlobal::locale()->formatDateTime(TQDateTime::tqcurrentDateTime());
setColumnWidth(3, QMAX(fm.width(columnText(3)), fm.width(sampleDate)) + 15);
setColumnWidth(4, QMAX(fm.width(columnText(4)), fm.width(i18n(perm[RO]))) + 15);
setColumnWidth(5, QMAX(fm.width(columnText(5)), fm.width("some text")) + 15);