summaryrefslogtreecommitdiffstats
path: root/quanta/dialogs/settings
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/dialogs/settings')
-rw-r--r--quanta/dialogs/settings/abbreviation.cpp8
-rw-r--r--quanta/dialogs/settings/filemasks.cpp6
2 files changed, 7 insertions, 7 deletions
diff --git a/quanta/dialogs/settings/abbreviation.cpp b/quanta/dialogs/settings/abbreviation.cpp
index 1f1728ae..f41a98a1 100644
--- a/quanta/dialogs/settings/abbreviation.cpp
+++ b/quanta/dialogs/settings/abbreviation.cpp
@@ -76,8 +76,8 @@ void AbbreviationDlg::slotGroupChanged(const TQString& newGroupName)
for ( it = m_currentAbbrev->abbreviations.constBegin(); it != m_currentAbbrev->abbreviations.constEnd(); ++it )
{
templateStr = it.key();
- templateName = templateStr.mid(templateStr.tqfind(' ') + 1);
- templateStr = templateStr.left(templateStr.tqfind(' '));
+ templateName = templateStr.mid(templateStr.find(' ') + 1);
+ templateStr = templateStr.left(templateStr.find(' '));
new KListViewItem(templatesList, templateStr, templateName);
}
for ( TQStringList::ConstIterator dtepit = m_currentAbbrev->dteps.constBegin(); dtepit != m_currentAbbrev->dteps.constEnd(); ++dtepit )
@@ -95,7 +95,7 @@ void AbbreviationDlg::slotNewGroup()
TQString groupName = KInputDialog::getText(i18n("New Abbreviation Group"), i18n("Group name:"), "", &ok, this);
if (ok && !groupName.isEmpty())
{
- if (qConfig.abbreviations.tqcontains(groupName))
+ if (qConfig.abbreviations.contains(groupName))
{
KMessageBox::error(this, i18n("<qt>There is already an abbreviation group called <b>%1</b>. Choose an unique name for the new group.</qt>").tqarg(groupName), i18n("Group already exists"));
TQTimer::singleShot(0, this, TQT_SLOT(slotNewGroup()));
@@ -248,7 +248,7 @@ void AbbreviationDlg::saveTemplates()
el.setAttribute("code", it.data());
s = it.key();
s2 = "";
- pos = s.tqfind(' ');
+ pos = s.find(' ');
if (pos != -1)
{
s2 = s.mid(pos+1);
diff --git a/quanta/dialogs/settings/filemasks.cpp b/quanta/dialogs/settings/filemasks.cpp
index 04593921..58a601e8 100644
--- a/quanta/dialogs/settings/filemasks.cpp
+++ b/quanta/dialogs/settings/filemasks.cpp
@@ -43,12 +43,12 @@ void FileMasks::setToDefault()
for ( it = list.begin(); it != list.end(); ++it )
{
name = (*it)->name();
- if (name.tqcontains("text"))
+ if (name.contains("text"))
{
- if (!markup.tqcontains(name) && !script.tqcontains(name))
+ if (!markup.contains(name) && !script.contains(name))
text += name+"; ";
}
- if (name.tqcontains("image"))
+ if (name.contains("image"))
{
image += name +"; ";
}