From 882bcd26b3d60be72ea2b35921969a9850c52db9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:29:20 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/htmlexporter.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/htmlexporter.cpp') diff --git a/src/htmlexporter.cpp b/src/htmlexporter.cpp index 762abe5..64fee0e 100644 --- a/src/htmlexporter.cpp +++ b/src/htmlexporter.cpp @@ -63,7 +63,7 @@ HTMLExporter::HTMLExporter(Basket *basket) int result = KMessageBox::questionYesNoCancel( 0, "" + i18n("The file %1 already exists. Do you really want to override it?") - .tqarg(KURL(destination).fileName()), + .arg(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").tqarg(filePath) + "/"; // eg.: "/home/seb/foo.html_files/" + TQString filesFolderPath = i18n("HTML export folder (files)", "%1_files").arg(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").tqarg(filePath) + "/"; + filesFolderPath = i18n("HTML export folder (files)", "%1_files").arg(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").tqarg(KURL(filePath).fileName()) + "/"; + filesFolderName = i18n("HTML export folder (files)", "%1_files").arg(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 << -// "

" << i18n("Notes matching the filter "%1":").tqarg(Tools::textToHTMLWithoutP(decoration()->filterData().string)) << "

\n"; +// "

" << i18n("Notes matching the filter "%1":").arg(Tools::textToHTMLWithoutP(decoration()->filterData().string)) << "

\n"; stream << "
\n"; @@ -315,10 +315,10 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket) "
\n"; stream << TQString( " \n" - "

%1

\n").tqarg( + "

%1

\n").arg( i18n("Made with %1, a KDE tool to take notes and keep information at hand.") - .tqarg("%1 %2") - .tqarg(kapp->aboutData()->programName(), VERSION)); + .arg("%1 %2") + .arg(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%\"").tqarg(TQString::number(widthValue)); + width = TQString(" width=\"%1%\"").arg(TQString::number(widthValue)); } stream << spaces.fill(' ', indent) << "\n"; -- cgit v1.2.1