summaryrefslogtreecommitdiffstats
path: root/kommander/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets')
-rw-r--r--kommander/widgets/buttongroup.cpp4
-rw-r--r--kommander/widgets/fileselector.cpp2
-rw-r--r--kommander/widgets/listbox.cpp10
-rw-r--r--kommander/widgets/richtexteditor.cpp2
-rw-r--r--kommander/widgets/scriptobject.cpp2
-rw-r--r--kommander/widgets/textedit.cpp4
-rw-r--r--kommander/widgets/treewidget.cpp16
7 files changed, 20 insertions, 20 deletions
diff --git a/kommander/widgets/buttongroup.cpp b/kommander/widgets/buttongroup.cpp
index 6b0feef3..e0c8b6ed 100644
--- a/kommander/widgets/buttongroup.cpp
+++ b/kommander/widgets/buttongroup.cpp
@@ -120,8 +120,8 @@ TQString ButtonGroup::handleDCOP(int function, const TQStringList& args)
{
TQString text;
for (int i = 0; i < count(); i++)
- if (dynamic_cast<KommanderWidget*>(tqfind(i)))
- text += (dynamic_cast<KommanderWidget*>(tqfind(i)))->evalAssociatedText();
+ if (dynamic_cast<KommanderWidget*>(find(i)))
+ text += (dynamic_cast<KommanderWidget*>(find(i)))->evalAssociatedText();
return text;
}
case DCOP::checked:
diff --git a/kommander/widgets/fileselector.cpp b/kommander/widgets/fileselector.cpp
index f6806e5b..ce4b93e0 100644
--- a/kommander/widgets/fileselector.cpp
+++ b/kommander/widgets/fileselector.cpp
@@ -222,7 +222,7 @@ TQString FileSelector::handleDCOP(int function, const TQStringList& args)
return m_lineEdit->selectedText();
case DCOP::setSelection:
{
- int f = m_lineEdit->text().tqfind(args[0]);
+ int f = m_lineEdit->text().find(args[0]);
if (f != -1)
m_lineEdit->setSelection(f, args[0].length());
break;
diff --git a/kommander/widgets/listbox.cpp b/kommander/widgets/listbox.cpp
index 1135a540..ad0cbafa 100644
--- a/kommander/widgets/listbox.cpp
+++ b/kommander/widgets/listbox.cpp
@@ -125,7 +125,7 @@ TQString ListBox::handleDCOP(int function, const TQStringList& args)
}
case DCOP::setSelection:
{
- TQListBoxItem* found = tqfindItem(args[0], TQt::ExactMatch);
+ TQListBoxItem* found = findItem(args[0], TQt::ExactMatch);
if (found)
setCurrentItem(index(found));
break;
@@ -162,14 +162,14 @@ TQString ListBox::handleDCOP(int function, const TQStringList& args)
return TQString();
}
case DCOP::addUniqueItem:
- if (!tqfindItem(args[0], TQt::ExactMatch))
+ if (!findItem(args[0], TQt::ExactMatch))
insertItem(args[0]);
break;
case DCOP::findItem:
{
- TQListBoxItem* found = tqfindItem(args[0], TQt::ExactMatch);
- if (!found) found = tqfindItem(args[0], TQt::BeginsWith);
- if (!found) found = tqfindItem(args[0], TQt::Contains);
+ TQListBoxItem* found = findItem(args[0], TQt::ExactMatch);
+ if (!found) found = findItem(args[0], TQt::BeginsWith);
+ if (!found) found = findItem(args[0], TQt::Contains);
if (found)
return TQString::number(index(found));
else return TQString::number(-1);
diff --git a/kommander/widgets/richtexteditor.cpp b/kommander/widgets/richtexteditor.cpp
index fb3c7697..5c6c530c 100644
--- a/kommander/widgets/richtexteditor.cpp
+++ b/kommander/widgets/richtexteditor.cpp
@@ -180,7 +180,7 @@ void RichTextEditor::textItalic(bool a_isOn)
void RichTextEditor::textAlign(int a_id)
{
- TQToolButton *b = (TQToolButton *)m_alignGroup->tqfind(a_id);
+ TQToolButton *b = (TQToolButton *)m_alignGroup->find(a_id);
if(b == m_buttonTextLeft)
m_textedit->tqsetAlignment(TQt::AlignLeft);
else if(b == m_buttonTextCenter)
diff --git a/kommander/widgets/scriptobject.cpp b/kommander/widgets/scriptobject.cpp
index 472bb98c..ddc7d32a 100644
--- a/kommander/widgets/scriptobject.cpp
+++ b/kommander/widgets/scriptobject.cpp
@@ -93,7 +93,7 @@ void ScriptObject::populate()
TQString ScriptObject::executeProcess(bool blocking)
{
- int index = ( states().tqfindIndex( currentState()) );
+ int index = ( states().findIndex( currentState()) );
if (index == -1)
{
printError(i18n("Invalid state for associated text."));
diff --git a/kommander/widgets/textedit.cpp b/kommander/widgets/textedit.cpp
index 1ca2e167..dbdb59d7 100644
--- a/kommander/widgets/textedit.cpp
+++ b/kommander/widgets/textedit.cpp
@@ -200,8 +200,8 @@ TQString TextEdit::handleDCOP(int function, const TQStringList& args)
{
// int para = args[3].toInt();
// int idx = args[4].toInt();
-// return TQString::number(TQTextEdit::tqfind(args[0], args[1].toUInt(), false, args[2].toUInt(), para, idx ));
- return TQString::number(TQTextEdit::tqfind(args[0], args[1].toUInt(), false ));
+// return TQString::number(TQTextEdit::find(args[0], args[1].toUInt(), false, args[2].toUInt(), para, idx ));
+ return TQString::number(TQTextEdit::find(args[0], args[1].toUInt(), false ));
break;
}
case TE_VAsuperScript:
diff --git a/kommander/widgets/treewidget.cpp b/kommander/widgets/treewidget.cpp
index e04fe41d..d9f6b0c8 100644
--- a/kommander/widgets/treewidget.cpp
+++ b/kommander/widgets/treewidget.cpp
@@ -129,7 +129,7 @@ void TreeWidget::addItemFromString(const TQString& s)
TQListViewItem* TreeWidget::itemFromString(TQListViewItem* tqparent, const TQString& s)
{
TQStringList elements;
- if (s.tqcontains("\t"))
+ if (s.contains("\t"))
elements = TQStringList::split("\t", s, true);
else
elements = TQStringList::split("\\t", s, true);
@@ -368,14 +368,14 @@ TQString TreeWidget::handleDCOP(int function, const TQStringList& args)
}
case DCOP::setSelection:
if (selectionModeExt() == Single || selectionModeExt() == NoSelection)
- setCurrentItem(tqfindItem(args[0], 0));
+ setCurrentItem(findItem(args[0], 0));
else
{
clearSelection();
TQStringList items(TQStringList::split("\n", args[0]));
for (TQStringList::ConstIterator it = items.begin(); it != items.end(); ++it)
{
- TQListViewItem* item = tqfindItem(*it, 0);
+ TQListViewItem* item = findItem(*it, 0);
if (item)
{
item->setSelected(true);
@@ -405,17 +405,17 @@ TQString TreeWidget::handleDCOP(int function, const TQStringList& args)
break;
case DCOP::findItem:
if (!args[1])
- return TQString::number(itemToIndexSafe(tqfindItem(args[0], 0)));
+ return TQString::number(itemToIndexSafe(findItem(args[0], 0)));
else
{
if (args[2].toUInt() && args[3].toUInt())
- return TQString::number(itemToIndexSafe(tqfindItem(args[0], args[1].toInt())));
+ return TQString::number(itemToIndexSafe(findItem(args[0], args[1].toInt())));
else if (args[2].toUInt())
- return TQString::number(itemToIndexSafe(tqfindItem(args[0], args[1].toInt(), TQt::CaseSensitive | TQt::Contains)));
+ return TQString::number(itemToIndexSafe(findItem(args[0], args[1].toInt(), TQt::CaseSensitive | TQt::Contains)));
else if (args[3].toUInt())
- return TQString::number(itemToIndexSafe(tqfindItem(args[0], args[1].toInt(), TQt::ExactMatch)));
+ return TQString::number(itemToIndexSafe(findItem(args[0], args[1].toInt(), TQt::ExactMatch)));
else
- return TQString::number(itemToIndexSafe(tqfindItem(args[0], args[1].toInt(), TQt::Contains)));
+ return TQString::number(itemToIndexSafe(findItem(args[0], args[1].toInt(), TQt::Contains)));
}
break;
case DCOP::item: