summaryrefslogtreecommitdiffstats
path: root/kfilereplace/report.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kfilereplace/report.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfilereplace/report.cpp')
-rw-r--r--kfilereplace/report.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kfilereplace/report.cpp b/kfilereplace/report.cpp
index cae0dfe4..6d485eba 100644
--- a/kfilereplace/report.cpp
+++ b/kfilereplace/report.cpp
@@ -16,8 +16,8 @@
* *
***************************************************************************/
// QT
-#include <qstring.h>
-#include <qfile.h>
+#include <tqstring.h>
+#include <tqfile.h>
// KDE
#include <klistview.h>
@@ -30,12 +30,12 @@
void Report::createReportFile()
{
- QString xmlFileName = m_docPath + ".xml",
+ TQString xmlFileName = m_docPath + ".xml",
cssFileName = m_docPath + ".css";
// Generates a report file
// a) Open the file
- QFile report(xmlFileName);
+ TQFile report(xmlFileName);
if (!report.open( IO_WriteOnly ))
{
KMessageBox::error(0, i18n("<qt>Cannot open the file <b>%1</b>.</qt>").arg(xmlFileName));
@@ -44,10 +44,10 @@ void Report::createReportFile()
// b) Write the header of the XML file
- QDateTime datetime = QDateTime::currentDateTime(Qt::LocalTime);
- QString dateString = datetime.toString(Qt::LocalDate);
+ TQDateTime datetime = TQDateTime::currentDateTime(Qt::LocalTime);
+ TQString dateString = datetime.toString(Qt::LocalDate);
KUser user;
- QString columnTextFour,
+ TQString columnTextFour,
columnReplaceWith;
if(!m_isSearchFlag)
{
@@ -60,8 +60,8 @@ void Report::createReportFile()
columnReplaceWith = i18n("-");
}
- QString css = cssFileName.mid(cssFileName.findRev("/")+1,cssFileName.length()-(cssFileName.findRev("/")+1));
- QTextStream oTStream( &report );
+ TQString css = cssFileName.mid(cssFileName.findRev("/")+1,cssFileName.length()-(cssFileName.findRev("/")+1));
+ TQTextStream oTStream( &report );
oTStream << "<?xml version=\"1.0\"?>\n"
"<?xml-stylesheet href=\""+css+"\" type=\"text/css\"?>"
"<report>\n"
@@ -81,7 +81,7 @@ void Report::createReportFile()
oTStream<< " </row>\n"
" </header>\n";
// c) Write the strings list
- QListViewItem *lviCurItem,
+ TQListViewItem *lviCurItem,
*lviFirst;
lviCurItem = lviFirst = m_stringsView->firstChild();
@@ -89,10 +89,10 @@ void Report::createReportFile()
if(lviCurItem == 0)
return ;
- QString rowType="a1";
+ TQString rowType="a1";
do
- { QString rowTag = "<row >\n"
+ { TQString rowTag = "<row >\n"
" <searchfor class=\""+rowType+"\"><![CDATA["+lviCurItem->text(0)+"]]></searchfor>\n"
" <replacewith class=\""+rowType+"\"><![CDATA["+lviCurItem->text(1)+"]]></replacewith>\n"
"</row>\n";
@@ -140,7 +140,7 @@ void Report::createReportFile()
rowType="a1";
do
- { QString rowTag = " <row >\n"
+ { TQString rowTag = " <row >\n"
" <name class=\""+rowType+"\"><![CDATA["+lviCurItem->text(0)+"]]></name>\n"
" <folder class=\""+rowType+"\"><![CDATA["+lviCurItem->text(1)+"]]></folder>\n";
if(m_isSearchFlag)
@@ -187,17 +187,17 @@ void Report::createReportFile()
void Report::createStyleSheet()
{
- QString cssFileName = m_docPath +".css";
- QFile styleSheet(cssFileName);
+ TQString cssFileName = m_docPath +".css";
+ TQFile styleSheet(cssFileName);
if (!styleSheet.open( IO_WriteOnly ))
{
KMessageBox::error(0, i18n("<qt>Cannot open the file <b>%1</b>.</qt>").arg(cssFileName));
return ;
}
- QTextStream oTStream( &styleSheet );
+ TQTextStream oTStream( &styleSheet );
- QString css = "title { display:block;font:40px bold sans-serif; }\n\n"
+ TQString css = "title { display:block;font:40px bold sans-serif; }\n\n"
"createdby:before { content :\""+i18n("Created by")+": \"; }\n"
"createdby { display:inline; }\n\n"
"date:before { content :\"-"+i18n("date")+": \"; }\n"
@@ -272,7 +272,7 @@ void Report::createStyleSheet()
styleSheet.close();
}
-void Report::createDocument(const QString& docPath)
+void Report::createDocument(const TQString& docPath)
{
m_docPath = docPath;