summaryrefslogtreecommitdiffstats
path: root/ksig
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:52:34 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:52:34 -0600
commit75112ed8e227f656f98523b7ffdad5422d9a6f11 (patch)
tree23041ac1bbe364dcc39dbbd0e86ff6930494e036 /ksig
parentb88830e9111dc4375bc1461c3f7b3e7b3e73f733 (diff)
downloadtdeaddons-75112ed8e227f656f98523b7ffdad5422d9a6f11.tar.gz
tdeaddons-75112ed8e227f656f98523b7ffdad5422d9a6f11.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'ksig')
-rw-r--r--ksig/ksig.cpp8
-rw-r--r--ksig/siglistviewitem.cpp16
2 files changed, 12 insertions, 12 deletions
diff --git a/ksig/ksig.cpp b/ksig/ksig.cpp
index 4d6938b..1cc7ca1 100644
--- a/ksig/ksig.cpp
+++ b/ksig/ksig.cpp
@@ -91,8 +91,8 @@ void KSig::setupLayout()
sigEdit->setEnabled(false);
sigEdit->setCheckSpellingEnabled(true);
- statusBar()->insertItem(i18n(" Line: %1 ").tqarg(0), LineNumber, 0, true);
- statusBar()->insertItem(i18n(" Col: %1 ").tqarg(0), ColumnNumber, 0, true);
+ statusBar()->insertItem(i18n(" Line: %1 ").arg(0), LineNumber, 0, true);
+ statusBar()->insertItem(i18n(" Col: %1 ").arg(0), ColumnNumber, 0, true);
statusBar()->show();
updateListLock = false;
@@ -261,8 +261,8 @@ void KSig::updateEdit()
void KSig::updateStatus(int line, int column)
{
- statusBar()->changeItem(i18n(" Line: %1 ").tqarg(line + 1), LineNumber);
- statusBar()->changeItem(i18n(" Col: %1 ").tqarg(column + 1), ColumnNumber);
+ statusBar()->changeItem(i18n(" Line: %1 ").arg(line + 1), LineNumber);
+ statusBar()->changeItem(i18n(" Col: %1 ").arg(column + 1), ColumnNumber);
}
void KSig::quit()
diff --git a/ksig/siglistviewitem.cpp b/ksig/siglistviewitem.cpp
index 7f6d12f..0442c2e 100644
--- a/ksig/siglistviewitem.cpp
+++ b/ksig/siglistviewitem.cpp
@@ -56,14 +56,14 @@ void SigListViewItem::refreshText()
void SigListViewItem::nodeToText(const TQDomNode &n, TQString &s)
{
- TQDomNodeList tqchildren = n.childNodes();
+ TQDomNodeList children = n.childNodes();
- for(uint i = 0; i < tqchildren.count(); i++) {
- if(tqchildren.item(i).isText())
- s.append(tqchildren.item(i).toText().data());
+ for(uint i = 0; i < children.count(); i++) {
+ if(children.item(i).isText())
+ s.append(children.item(i).toText().data());
else {
- nodeToText(tqchildren.item(i), s);
- if(tqchildren.item(i).isElement() && tqchildren.item(i).toElement().tagName() == "p") {
+ nodeToText(children.item(i), s);
+ if(children.item(i).isElement() && children.item(i).toElement().tagName() == "p") {
s.append("\n");
}
}
@@ -90,12 +90,12 @@ SigListViewItem::SigListViewItem(TQListView *parent, TQDomDocument document, TQD
void SigListViewItem::render()
{
if(dirty) {
- TQDomNodeList tqchildren = element.childNodes();
+ TQDomNodeList children = element.childNodes();
while(!element.firstChild().isNull())
element.removeChild(element.firstChild());
- // create new tqchildren
+ // create new children
TQStringList lines = TQStringList::split("\n", elementText, true);
for(TQStringList::Iterator it = lines.begin(); it != lines.end(); it++) {