From 8d9b90ca794ffabf151719c2edebe9278a2d3f36 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:15:24 -0600 Subject: Rename old tq methods that no longer need a unique name --- src/entryview.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/entryview.cpp') diff --git a/src/entryview.cpp b/src/entryview.cpp index 0539754..402eaf5 100644 --- a/src/entryview.cpp +++ b/src/entryview.cpp @@ -121,7 +121,7 @@ void EntryView::showEntry(Data::EntryPtr entry_) { // myDebug() << dom.toString() << endl; #if 0 kdWarning() << "EntryView::showEntry() - turn me off!" << endl; - TQFile f1(TQString::tqfromLatin1("/tmp/test.xml")); + TQFile f1(TQString::fromLatin1("/tmp/test.xml")); if(f1.open(IO_WriteOnly)) { TQTextStream t(&f1); t << dom.toString(); @@ -146,7 +146,7 @@ void EntryView::showEntry(Data::EntryPtr entry_) { #if 0 kdWarning() << "EntryView::showEntry() - turn me off!" << endl; - TQFile f2(TQString::tqfromLatin1("/tmp/test.html")); + TQFile f2(TQString::fromLatin1("/tmp/test.html")); if(f2.open(IO_WriteOnly)) { TQTextStream t(&f2); t << html; @@ -174,19 +174,19 @@ void EntryView::setXSLTFile(const TQString& file_) { if(file_.at(0) == '/') { m_xsltFile = file_; } else { - const TQString templateDir = TQString::tqfromLatin1("entry-templates/"); + const TQString templateDir = TQString::fromLatin1("entry-templates/"); m_xsltFile = locate("appdata", templateDir + file_); if(m_xsltFile.isEmpty()) { if(!file_.isEmpty()) { kdWarning() << "EntryView::setXSLTFile() - can't locate " << file_ << endl; } - m_xsltFile = locate("appdata", templateDir + TQString::tqfromLatin1("Fancy.xsl")); + m_xsltFile = locate("appdata", templateDir + TQString::fromLatin1("Fancy.xsl")); if(m_xsltFile.isEmpty()) { - TQString str = TQString::tqfromLatin1(""); + TQString str = TQString::fromLatin1(""); str += i18n("Tellico is unable to locate the default entry stylesheet."); str += TQChar(' '); str += i18n("Please check your installation."); - str += TQString::tqfromLatin1(""); + str += TQString::fromLatin1(""); KMessageBox::error(view(), str); clear(); return; @@ -244,7 +244,7 @@ void EntryView::setXSLTFile(const TQString& file_) { } // look for a file that gets installed to know the installation directory - TQString appdir = KGlobal::dirs()->findResourceDir("appdata", TQString::tqfromLatin1("pics/tellico.png")); + TQString appdir = KGlobal::dirs()->findResourceDir("appdata", TQString::fromLatin1("pics/tellico.png")); m_handler->addStringParam("datadir", TQFile::encodeName(appdir)); // if we don't have to reload the images, then just show the entry and we're done @@ -341,9 +341,9 @@ void EntryView::resetColors() { // this is a rather bad hack to get around the fact that the image cache is not reloaded when // the gradient files are changed on disk. Setting the URLArgs for write() calls doesn't seem to // work. So force a reload with a temp file, then catch the completed signal and tqrepaint - TQString s = TQString::tqfromLatin1("") - .tqarg(dir + TQString::tqfromLatin1("gradient_bg.png")) - .tqarg(dir + TQString::tqfromLatin1("gradient_header.png")); + TQString s = TQString::fromLatin1("") + .tqarg(dir + TQString::fromLatin1("gradient_bg.png")) + .tqarg(dir + TQString::fromLatin1("gradient_header.png")); delete m_tempFile; m_tempFile = new KTempFile; -- cgit v1.2.1