summaryrefslogtreecommitdiffstats
path: root/ksig
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:12 -0600
commit6b45a7b7b2a804ccb2d522eb9ba6423fedb59b8f (patch)
treea08b27e3f4fde1ed82a5f061a2725998e8012f93 /ksig
parentca82971624269719d487c6f7980d7237f9420036 (diff)
downloadtdeaddons-6b45a7b7b2a804ccb2d522eb9ba6423fedb59b8f.tar.gz
tdeaddons-6b45a7b7b2a804ccb2d522eb9ba6423fedb59b8f.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit ca82971624269719d487c6f7980d7237f9420036.
Diffstat (limited to 'ksig')
-rw-r--r--ksig/ksig.cpp12
-rw-r--r--ksig/ksig.h2
-rw-r--r--ksig/siglistviewitem.cpp16
-rw-r--r--ksig/standardtextbase.ui4
4 files changed, 17 insertions, 17 deletions
diff --git a/ksig/ksig.cpp b/ksig/ksig.cpp
index 1cc7ca1..88fe29f 100644
--- a/ksig/ksig.cpp
+++ b/ksig/ksig.cpp
@@ -91,14 +91,14 @@ void KSig::setupLayout()
sigEdit->setEnabled(false);
sigEdit->setCheckSpellingEnabled(true);
- statusBar()->insertItem(i18n(" Line: %1 ").arg(0), LineNumber, 0, true);
- statusBar()->insertItem(i18n(" Col: %1 ").arg(0), ColumnNumber, 0, true);
+ statusBar()->insertItem(i18n(" Line: %1 ").tqarg(0), LineNumber, 0, true);
+ statusBar()->insertItem(i18n(" Col: %1 ").tqarg(0), ColumnNumber, 0, true);
statusBar()->show();
updateListLock = false;
connect(sigEdit, TQT_SIGNAL(textChanged()), TQT_TQOBJECT(this), TQT_SLOT(updateList()));
connect(sigList, TQT_SIGNAL(selectionChanged()), TQT_TQOBJECT(this), TQT_SLOT(updateEdit()));
- connect(sigEdit, TQT_SIGNAL(cursorPositionChanged(int,int)), TQT_TQOBJECT(this), TQT_SLOT(updateStatus(int,int)));
+ connect(sigEdit, TQT_SIGNAL(cursorPositionChanged(int,int)), TQT_TQOBJECT(this), TQT_SLOT(updatetqStatus(int,int)));
}
void KSig::setupSearchLine()
@@ -259,10 +259,10 @@ void KSig::updateEdit()
updateListLock = false;
}
-void KSig::updateStatus(int line, int column)
+void KSig::updatetqStatus(int line, int column)
{
- statusBar()->changeItem(i18n(" Line: %1 ").arg(line + 1), LineNumber);
- statusBar()->changeItem(i18n(" Col: %1 ").arg(column + 1), ColumnNumber);
+ statusBar()->changeItem(i18n(" Line: %1 ").tqarg(line + 1), LineNumber);
+ statusBar()->changeItem(i18n(" Col: %1 ").tqarg(column + 1), ColumnNumber);
}
void KSig::quit()
diff --git a/ksig/ksig.h b/ksig/ksig.h
index ef0f68c..3ed892d 100644
--- a/ksig/ksig.h
+++ b/ksig/ksig.h
@@ -60,7 +60,7 @@ private slots:
void updateList();
void updateEdit();
- void updateStatus(int line, int column);
+ void updatetqStatus(int line, int column);
private:
TQString header;
diff --git a/ksig/siglistviewitem.cpp b/ksig/siglistviewitem.cpp
index 0442c2e..7f6d12f 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 children = n.childNodes();
+ TQDomNodeList tqchildren = n.childNodes();
- for(uint i = 0; i < children.count(); i++) {
- if(children.item(i).isText())
- s.append(children.item(i).toText().data());
+ for(uint i = 0; i < tqchildren.count(); i++) {
+ if(tqchildren.item(i).isText())
+ s.append(tqchildren.item(i).toText().data());
else {
- nodeToText(children.item(i), s);
- if(children.item(i).isElement() && children.item(i).toElement().tagName() == "p") {
+ nodeToText(tqchildren.item(i), s);
+ if(tqchildren.item(i).isElement() && tqchildren.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 children = element.childNodes();
+ TQDomNodeList tqchildren = element.childNodes();
while(!element.firstChild().isNull())
element.removeChild(element.firstChild());
- // create new children
+ // create new tqchildren
TQStringList lines = TQStringList::split("\n", elementText, true);
for(TQStringList::Iterator it = lines.begin(); it != lines.end(); it++) {
diff --git a/ksig/standardtextbase.ui b/ksig/standardtextbase.ui
index b758544..136e3ca 100644
--- a/ksig/standardtextbase.ui
+++ b/ksig/standardtextbase.ui
@@ -34,7 +34,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout</cstring>
+ <cstring>tqlayout</cstring>
</property>
<hbox>
<property name="name">
@@ -56,7 +56,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>