From 7346aee26bf190a7e70333c40fab4caca847cd27 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:22:56 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksig/siglistview.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ksig/siglistview.cpp') 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(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(); -- cgit v1.2.1