diff options
Diffstat (limited to 'ksig/siglistview.cpp')
-rw-r--r-- | ksig/siglistview.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ksig/siglistview.cpp b/ksig/siglistview.cpp index d212478..4bbc693 100644 --- a/ksig/siglistview.cpp +++ b/ksig/siglistview.cpp @@ -29,7 +29,7 @@ SigListView *SigListView::listView = 0; // public members //////////////////////////////////////////////////////////////////////////////// -SigListView *SigListView::instance(QWidget *parent, const char *name) +SigListView *SigListView::instance(TQWidget *parent, const char *name) { if(!listView) listView = new SigListView(parent, name); @@ -41,7 +41,7 @@ void SigListView::load() if(file.open(IO_ReadOnly) && doc.setContent(&file)) { // find the root element - QDomNodeList topLevelElements = doc.childNodes(); + TQDomNodeList topLevelElements = doc.childNodes(); uint i = 0; while(topLevelElements.item(i).toElement().tagName() != "SigML" && i < topLevelElements.count()) i++; @@ -55,7 +55,7 @@ void SigListView::load() doc.appendChild(rootElement); } - QDomNodeList signatures = doc.elementsByTagName("signature"); + TQDomNodeList signatures = doc.elementsByTagName("signature"); for(i = 0; i < signatures.count(); i++) (void) new SigListViewItem(this, doc, signatures.item(i).toElement()); @@ -70,7 +70,7 @@ void SigListView::load() void SigListView::save() { - QListViewItemIterator it(this); + TQListViewItemIterator it(this); while(it.current()) { SigListViewItem *item = dynamic_cast<SigListViewItem *>(it.current()); if(item) @@ -79,7 +79,7 @@ void SigListView::save() } if(file.open(IO_WriteOnly)) { - QTextStream stream(&file); + TQTextStream stream(&file); stream << doc; file.close(); } @@ -87,7 +87,7 @@ void SigListView::save() SigListViewItem *SigListView::createItem() { - QDomElement element = doc.createElement("signature"); + TQDomElement element = doc.createElement("signature"); rootElement.appendChild(element); SigListViewItem *item = new SigListViewItem(this, doc, element); @@ -108,11 +108,11 @@ const SigListViewItem *SigListView::currentItem() const // protected members //////////////////////////////////////////////////////////////////////////////// -SigListView::SigListView(QWidget *parent, const char *name) : KListView(parent, name) +SigListView::SigListView(TQWidget *parent, const char *name) : KListView(parent, name) { addColumn(i18n("Signatures")); - QString dir = KGlobal::dirs()->saveLocation("appdata"); + TQString dir = KGlobal::dirs()->saveLocation("appdata"); if(!dir.isNull()) file.setName(dir + "sigs.sigml"); load(); |