summaryrefslogtreecommitdiffstats
path: root/kfind/kfwin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kfind/kfwin.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfind/kfwin.cpp')
-rw-r--r--kfind/kfwin.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kfind/kfwin.cpp b/kfind/kfwin.cpp
index 2ee69aa14..4d4b12856 100644
--- a/kfind/kfwin.cpp
+++ b/kfind/kfwin.cpp
@@ -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);