diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /ksig/siglistview.cpp | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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(); |