diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
commit | 8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch) | |
tree | 55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/entryview.cpp | |
parent | 2781e27b871150395a5a82e221684108641002b2 (diff) | |
download | tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/entryview.cpp')
-rw-r--r-- | src/entryview.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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("<qt>"); + TQString str = TQString::fromLatin1("<qt>"); str += i18n("Tellico is unable to locate the default entry stylesheet."); str += TQChar(' '); str += i18n("Please check your installation."); - str += TQString::tqfromLatin1("</qt>"); + str += TQString::fromLatin1("</qt>"); 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("<html><body><img src=\"%1\"><img src=\"%2\"></body></html>") - .tqarg(dir + TQString::tqfromLatin1("gradient_bg.png")) - .tqarg(dir + TQString::tqfromLatin1("gradient_header.png")); + TQString s = TQString::fromLatin1("<html><body><img src=\"%1\"><img src=\"%2\"></body></html>") + .tqarg(dir + TQString::fromLatin1("gradient_bg.png")) + .tqarg(dir + TQString::fromLatin1("gradient_header.png")); delete m_tempFile; m_tempFile = new KTempFile; |