summaryrefslogtreecommitdiffstats
path: root/src/translators/bibteximporter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:24 -0600
commit8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch)
tree55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/translators/bibteximporter.cpp
parent2781e27b871150395a5a82e221684108641002b2 (diff)
downloadtellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz
tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/translators/bibteximporter.cpp')
-rw-r--r--src/translators/bibteximporter.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/translators/bibteximporter.cpp b/src/translators/bibteximporter.cpp
index 0b4775b..3c0fe8d 100644
--- a/src/translators/bibteximporter.cpp
+++ b/src/translators/bibteximporter.cpp
@@ -160,17 +160,17 @@ Tellico::Data::CollPtr BibtexImporter::readCollection(const TQString& text, int
str = TQString::fromUtf8(bt_entry_type(it.current()));
// kdDebug() << "entry type: " << str << endl;
// text is automatically put into lower-case by btparse
- BibtexHandler::setFieldValue(entry, TQString::tqfromLatin1("entry-type"), str);
+ BibtexHandler::setFieldValue(entry, TQString::fromLatin1("entry-type"), str);
str = TQString::fromUtf8(bt_entry_key(it.current()));
// kdDebug() << "entry key: " << str << endl;
- BibtexHandler::setFieldValue(entry, TQString::tqfromLatin1("key"), str);
+ BibtexHandler::setFieldValue(entry, TQString::fromLatin1("key"), str);
char* name;
AST* field = 0;
while((field = bt_next_field(it.current(), field, &name))) {
// kdDebug() << "\tfound: " << name << endl;
-// str = TQString::tqfromLatin1(bt_get_text(field));
+// str = TQString::fromLatin1(bt_get_text(field));
str.truncate(0);
AST* value = 0;
bt_nodetype type;
@@ -197,7 +197,7 @@ Tellico::Data::CollPtr BibtexImporter::readCollection(const TQString& text, int
}
TQString fieldName = TQString::fromUtf8(name);
if(fieldName == Latin1Literal("author") || fieldName == Latin1Literal("editor")) {
- str.replace(TQRegExp(TQString::tqfromLatin1("\\sand\\s")), TQString::tqfromLatin1("; "));
+ str.replace(TQRegExp(TQString::fromLatin1("\\sand\\s")), TQString::fromLatin1("; "));
}
BibtexHandler::setFieldValue(entry, fieldName, str);
}
@@ -235,8 +235,8 @@ void BibtexImporter::parseText(const TQString& text) {
// bt_set_stringopts(BTE_PREAMBLE, BTO_CONVERT | BTO_EXPAND);
TQString entry;
- TQRegExp rx(TQString::tqfromLatin1("[{}]"));
- TQRegExp macroName(TQString::tqfromLatin1("@string\\s*\\{\\s*(.*)="), false /*case sensitive*/);
+ TQRegExp rx(TQString::fromLatin1("[{}]"));
+ TQRegExp macroName(TQString::fromLatin1("@string\\s*\\{\\s*(.*)="), false /*case sensitive*/);
macroName.setMinimal(true);
bool needsCleanup = false;
@@ -290,7 +290,7 @@ TQWidget* BibtexImporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
m_readUTF8 = new TQRadioButton(i18n("Use Unicode (UTF-8) encoding"), box);
TQWhatsThis::add(m_readUTF8, i18n("Read the imported file in Unicode (UTF-8)."));
TQString localStr = i18n("Use user locale (%1) encoding").tqarg(
- TQString::tqfromLatin1(TQTextCodec::codecForLocale()->name()));
+ TQString::fromLatin1(TQTextCodec::codecForLocale()->name()));
m_readLocale = new TQRadioButton(localStr, box);
m_readLocale->setChecked(true);
TQWhatsThis::add(m_readLocale, i18n("Read the imported file in the local encoding."));