summaryrefslogtreecommitdiffstats
path: root/src/htmlexporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/htmlexporter.cpp')
-rw-r--r--src/htmlexporter.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/htmlexporter.cpp b/src/htmlexporter.cpp
index 64fee0e..762abe5 100644
--- a/src/htmlexporter.cpp
+++ b/src/htmlexporter.cpp
@@ -63,7 +63,7 @@ HTMLExporter::HTMLExporter(Basket *basket)
int result = KMessageBox::questionYesNoCancel(
0,
"<qt>" + i18n("The file <b>%1</b> already exists. Do you really want to override it?")
- .arg(KURL(destination).fileName()),
+ .tqarg(KURL(destination).fileName()),
i18n("Override File?"),
KGuiItem(i18n("&Override"), "filesave")
);
@@ -111,7 +111,7 @@ void HTMLExporter::prepareExport(Basket *basket, const TQString &fullPath)
withBasketTree = (item->firstChild() != 0);
// Create and empty the files folder:
- TQString filesFolderPath = i18n("HTML export folder (files)", "%1_files").arg(filePath) + "/"; // eg.: "/home/seb/foo.html_files/"
+ TQString filesFolderPath = i18n("HTML export folder (files)", "%1_files").tqarg(filePath) + "/"; // eg.: "/home/seb/foo.html_files/"
Tools::deleteRecursively(filesFolderPath);
TQDir dir;
dir.mkdir(filesFolderPath);
@@ -136,7 +136,7 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
}
// Compute the absolute & relative paths for this basket:
- filesFolderPath = i18n("HTML export folder (files)", "%1_files").arg(filePath) + "/";
+ filesFolderPath = i18n("HTML export folder (files)", "%1_files").tqarg(filePath) + "/";
if (isSubBasket) {
basketFilePath = basketsFolderPath + basket->folderName().left(basket->folderName().length() - 1) + ".html";
filesFolderName = "../";
@@ -145,7 +145,7 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
basketsFolderName = "";
} else {
basketFilePath = filePath;
- filesFolderName = i18n("HTML export folder (files)", "%1_files").arg(KURL(filePath).fileName()) + "/";
+ filesFolderName = i18n("HTML export folder (files)", "%1_files").tqarg(KURL(filePath).fileName()) + "/";
dataFolderName = filesFolderName + i18n("HTML export folder (data)", "data") + "/";
dataFolderPath = filesFolderPath + i18n("HTML export folder (data)", "data") + "/";
basketsFolderName = filesFolderName + i18n("HTML export folder (baskets)", "baskets") + "/";
@@ -289,7 +289,7 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
// TODO: Make sure only filtered notes are exported!
// if (decoration()->filterData().isFiltering)
// stream <<
-// " <p>" << i18n("Notes matching the filter &quot;%1&quot;:").arg(Tools::textToHTMLWithoutP(decoration()->filterData().string)) << "</p>\n";
+// " <p>" << i18n("Notes matching the filter &quot;%1&quot;:").tqarg(Tools::textToHTMLWithoutP(decoration()->filterData().string)) << "</p>\n";
stream <<
" <div class=\"basketSurrounder\">\n";
@@ -315,10 +315,10 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
" </div>\n";
stream << TQString(
" </div>\n"
- " <p class=\"credits\">%1</p>\n").arg(
+ " <p class=\"credits\">%1</p>\n").tqarg(
i18n("Made with %1, a KDE tool to take notes and keep information at hand.")
- .arg("<a href=\"http://basket.kde.org/\">%1</a> %2")
- .arg(kapp->aboutData()->programName(), VERSION));
+ .tqarg("<a href=\"http://basket.kde.org/\">%1</a> %2")
+ .tqarg(kapp->aboutData()->programName(), VERSION));
// Copy a transparent GIF image in the folder, needed for the JavaScript hack:
TQString gifFileName = "spacer.gif";
@@ -396,7 +396,7 @@ void HTMLExporter::exportNote(Note *note, int indent)
widthValue = 1;
if (widthValue > 100)
widthValue = 100;
- width = TQString(" width=\"%1%\"").arg(TQString::number(widthValue));
+ width = TQString(" width=\"%1%\"").tqarg(TQString::number(widthValue));
}
stream << spaces.fill(' ', indent) << "<td class=\"column\"" << width << ">\n";