diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:15:24 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-18 18:15:24 -0600 |
commit | 8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch) | |
tree | 55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/tellico_kernel.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/tellico_kernel.cpp')
-rw-r--r-- | src/tellico_kernel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tellico_kernel.cpp b/src/tellico_kernel.cpp index 4268681..8709bb2 100644 --- a/src/tellico_kernel.cpp +++ b/src/tellico_kernel.cpp @@ -283,7 +283,7 @@ bool Kernel::removeFilter(FilterPtr filter_) { } TQString str = i18n("Do you really want to delete this filter?"); - TQString dontAsk = TQString::tqfromLatin1("DeleteFilter"); + TQString dontAsk = TQString::fromLatin1("DeleteFilter"); int ret = KMessageBox::questionYesNo(m_widget, str, i18n("Delete Filter?"), KStdGuiItem::yes(), KStdGuiItem::no(), dontAsk); if(ret != KMessageBox::Yes) { @@ -371,8 +371,8 @@ TQPair<Tellico::Data::FieldVec, Tellico::Data::FieldVec> Kernel::mergeFields(Dat int Kernel::askAndMerge(Data::EntryPtr entry1_, Data::EntryPtr entry2_, Data::FieldPtr field_, TQString value1_, TQString value2_) { - TQString title1 = entry1_->field(TQString::tqfromLatin1("title")); - TQString title2 = entry2_->field(TQString::tqfromLatin1("title")); + TQString title1 = entry1_->field(TQString::fromLatin1("title")); + TQString title2 = entry2_->field(TQString::fromLatin1("title")); if(title1 == title2) { title1 = i18n("Entry 1"); title2 = i18n("Entry 2"); @@ -383,15 +383,15 @@ int Kernel::askAndMerge(Data::EntryPtr entry1_, Data::EntryPtr entry2_, Data::Fi if(value2_.isEmpty()) { value2_ = entry2_->field(field_); } - TQString text = TQString::tqfromLatin1("<qt>") + TQString text = TQString::fromLatin1("<qt>") + i18n("Conflicting values for %1 were found while merging entries.").tqarg(field_->title()) - + TQString::tqfromLatin1("<br/><center><table><tr>" + + TQString::fromLatin1("<br/><center><table><tr>" "<th>%1</th>" "<th>%2</th></tr>").tqarg(title1, title2) - + TQString::tqfromLatin1("<tr><td><em>%1</em></td>").tqarg(value1_) - + TQString::tqfromLatin1("<td><em>%1</em></td></tr></table></center>").tqarg(value2_) + + TQString::fromLatin1("<tr><td><em>%1</em></td>").tqarg(value1_) + + TQString::fromLatin1("<td><em>%1</em></td></tr></table></center>").tqarg(value2_) + i18n("Please choose which value to keep.") - + TQString::tqfromLatin1("</qt>"); + + TQString::fromLatin1("</qt>"); int ret = KMessageBox::warningYesNoCancel(Kernel::self()->widget(), text, |