diff options
Diffstat (limited to 'src/configdialog.cpp')
-rw-r--r-- | src/configdialog.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/configdialog.cpp b/src/configdialog.cpp index edf0b6d..609aae4 100644 --- a/src/configdialog.cpp +++ b/src/configdialog.cpp @@ -590,10 +590,10 @@ void ConfigDialog::readGeneralConfig() { const TQRegExp comma(TQString::tqfromLatin1("\\s*,\\s*")); const TQString semicolon = TQString::tqfromLatin1("; "); - m_leCapitals->setText(Config::noCapitalizationString().tqreplace(comma, semicolon)); - m_leArticles->setText(Config::articlesString().tqreplace(comma, semicolon)); - m_leSuffixes->setText(Config::nameSuffixesString().tqreplace(comma, semicolon)); - m_lePrefixes->setText(Config::surnamePrefixesString().tqreplace(comma, semicolon)); + m_leCapitals->setText(Config::noCapitalizationString().replace(comma, semicolon)); + m_leArticles->setText(Config::articlesString().replace(comma, semicolon)); + m_leSuffixes->setText(Config::nameSuffixesString().replace(comma, semicolon)); + m_lePrefixes->setText(Config::surnamePrefixesString().replace(comma, semicolon)); } void ConfigDialog::readPrintingConfig() { @@ -608,7 +608,7 @@ void ConfigDialog::readTemplateConfig() { // entry template selection const int collType = Kernel::self()->collectionType(); TQString file = Config::templateName(collType); - file.tqreplace('_', ' '); + file.replace('_', ' '); TQString fileContext = file + TQString::tqfromLatin1(" XSL Template"); m_templateCombo->setCurrentItem(i18n(fileContext.utf8(), file.utf8())); @@ -668,11 +668,11 @@ void ConfigDialog::saveConfiguration() { const TQRegExp semicolon(TQString::tqfromLatin1("\\s*;\\s*")); const TQChar comma = ','; - Config::setNoCapitalizationString(m_leCapitals->text().tqreplace(semicolon, comma)); - Config::setArticlesString(m_leArticles->text().tqreplace(semicolon, comma)); + Config::setNoCapitalizationString(m_leCapitals->text().replace(semicolon, comma)); + Config::setArticlesString(m_leArticles->text().replace(semicolon, comma)); Data::Field::articlesUpdated(); - Config::setNameSuffixesString(m_leSuffixes->text().tqreplace(semicolon, comma)); - Config::setSurnamePrefixesString(m_lePrefixes->text().tqreplace(semicolon, comma)); + Config::setNameSuffixesString(m_leSuffixes->text().replace(semicolon, comma)); + Config::setSurnamePrefixesString(m_lePrefixes->text().replace(semicolon, comma)); Config::setPrintFieldHeaders(m_cbPrintHeaders->isChecked()); Config::setPrintFormatted(m_cbPrintFormatted->isChecked()); @@ -797,7 +797,7 @@ void ConfigDialog::slotModifySourceClicked() { } Fetch::ConfigWidget* cw = 0; - if(m_configWidgets.tqcontains(item)) { + if(m_configWidgets.contains(item)) { cw = m_configWidgets[item]; } if(!cw) { @@ -997,7 +997,7 @@ void ConfigDialog::loadTemplateList() { TQFileInfo fi(*it); TQString file = fi.fileName().section('.', 0, -2); TQString name = file; - name.tqreplace('_', ' '); + name.replace('_', ' '); TQString title = i18n((name + TQString::tqfromLatin1(" XSL Template")).utf8(), name.utf8()); templates.insert(title, file); } @@ -1042,7 +1042,7 @@ void ConfigDialog::slotDeleteTemplate() { for(TQStringList::Iterator it = files.begin(); it != files.end(); ++it) { (*it).truncate((*it).length()-4); // remove ".xsl" TQString name = (*it); - name.tqreplace('_', ' '); + name.replace('_', ' '); nameFileMap.insert(name, *it); } bool ok; |