diff options
Diffstat (limited to 'ksig')
-rw-r--r-- | ksig/ksig.cpp | 12 | ||||
-rw-r--r-- | ksig/ksig.h | 2 | ||||
-rw-r--r-- | ksig/siglistviewitem.cpp | 16 | ||||
-rw-r--r-- | ksig/standardtextbase.ui | 4 |
4 files changed, 17 insertions, 17 deletions
diff --git a/ksig/ksig.cpp b/ksig/ksig.cpp index 88fe29f..1cc7ca1 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 ").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; 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(updatetqStatus(int,int))); + connect(sigEdit, TQT_SIGNAL(cursorPositionChanged(int,int)), TQT_TQOBJECT(this), TQT_SLOT(updateStatus(int,int))); } void KSig::setupSearchLine() @@ -259,10 +259,10 @@ void KSig::updateEdit() updateListLock = false; } -void KSig::updatetqStatus(int line, int column) +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/ksig.h b/ksig/ksig.h index 3ed892d..ef0f68c 100644 --- a/ksig/ksig.h +++ b/ksig/ksig.h @@ -60,7 +60,7 @@ private slots: void updateList(); void updateEdit(); - void updatetqStatus(int line, int column); + void updateStatus(int line, int column); private: TQString header; 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++) { diff --git a/ksig/standardtextbase.ui b/ksig/standardtextbase.ui index 136e3ca..b758544 100644 --- a/ksig/standardtextbase.ui +++ b/ksig/standardtextbase.ui @@ -34,7 +34,7 @@ </widget> <widget class="TQLayoutWidget"> <property name="name"> - <cstring>tqlayout</cstring> + <cstring>layout</cstring> </property> <hbox> <property name="name"> @@ -56,7 +56,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> |