diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kxsldbg/kxsldbgpart/qxsldbgdoc.cpp | |
parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kxsldbg/kxsldbgpart/qxsldbgdoc.cpp')
-rw-r--r-- | kxsldbg/kxsldbgpart/qxsldbgdoc.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kxsldbg/kxsldbgpart/qxsldbgdoc.cpp b/kxsldbg/kxsldbgpart/qxsldbgdoc.cpp index 1b8d2df3..c57dd521 100644 --- a/kxsldbg/kxsldbgpart/qxsldbgdoc.cpp +++ b/kxsldbg/kxsldbgpart/qxsldbgdoc.cpp @@ -14,18 +14,18 @@ #include <tqptrlist.h> -QXsldbgDoc::QXsldbgDoc(TQWidget *parent, KURL url) - : TQObject(0L, "QXsldbgDoc"), kDoc(0L),kView(0L), locked(false) +TQXsldbgDoc::TQXsldbgDoc(TQWidget *tqparent, KURL url) + : TQObject(0L, "TQXsldbgDoc"), kDoc(0L),kView(0L), locked(false) { kDoc = KTextEditor::createDocument("libkatepart", 0L,"KTextEditor::Document"); connect(kDoc, TQT_SIGNAL(started(KIO::Job *)), this, TQT_SLOT(lockDoc())); connect(kDoc, TQT_SIGNAL(completed()), this, TQT_SLOT(unlockDoc())); if (kDoc){ - kView = kDoc->createView(parent, "QXsldbgDocView"); + kView = kDoc->createView(tqparent, "TQXsldbgDocView"); KURL cleanUrl; // convert paths relative to PWD into a absolute path TQString relUrl = url.prettyURL(); - if (!relUrl.contains(":/")){ + if (!relUrl.tqcontains(":/")){ if (!(relUrl.left(1) == "/")) relUrl.prepend(TQDir::currentDirPath() + "/"); cleanUrl.setFileName(relUrl); @@ -37,7 +37,7 @@ QXsldbgDoc::QXsldbgDoc(TQWidget *parent, KURL url) } -QXsldbgDoc::~QXsldbgDoc() +TQXsldbgDoc::~TQXsldbgDoc() { if (kDoc){ if (kDoc->views().count() == 1){ @@ -47,7 +47,7 @@ QXsldbgDoc::~QXsldbgDoc() } } -void QXsldbgDoc::slotResult( KIO::Job *job ) +void TQXsldbgDoc::slotResult( KIO::Job *job ) { if ( job->error() != 0 ){ }else{ @@ -55,7 +55,7 @@ void QXsldbgDoc::slotResult( KIO::Job *job ) emit docChanged(); } -KURL QXsldbgDoc::url() const +KURL TQXsldbgDoc::url() const { if (kDoc) return kDoc->url(); @@ -63,7 +63,7 @@ KURL QXsldbgDoc::url() const return KURL(); } -void QXsldbgDoc::refresh() +void TQXsldbgDoc::refresh() { if (kDoc){ KURL lastUrl = kDoc->url(); @@ -73,7 +73,7 @@ void QXsldbgDoc::refresh() } -void QXsldbgDoc::enableBreakPoint(uint lineNumber, bool state) +void TQXsldbgDoc::enableBreakPoint(uint lineNumber, bool state) { if (locked) return; @@ -88,7 +88,7 @@ void QXsldbgDoc::enableBreakPoint(uint lineNumber, bool state) } } -void QXsldbgDoc::addBreakPoint(uint lineNumber, bool enabled) +void TQXsldbgDoc::addBreakPoint(uint lineNumber, bool enabled) { if (locked) return; @@ -102,7 +102,7 @@ void QXsldbgDoc::addBreakPoint(uint lineNumber, bool enabled) } } -void QXsldbgDoc::deleteBreakPoint(uint lineNumber) +void TQXsldbgDoc::deleteBreakPoint(uint lineNumber) { if (locked) return; @@ -113,7 +113,7 @@ void QXsldbgDoc::deleteBreakPoint(uint lineNumber) } -void QXsldbgDoc::clearMarks(bool allMarkTypes) +void TQXsldbgDoc::clearMarks(bool allMarkTypes) { if (locked) return; @@ -134,7 +134,7 @@ void QXsldbgDoc::clearMarks(bool allMarkTypes) } -void QXsldbgDoc::selectBreakPoint(uint lineNumber, bool reachedBreakPoint) +void TQXsldbgDoc::selectBreakPoint(uint lineNumber, bool reachedBreakPoint) { if (locked) return; @@ -150,12 +150,12 @@ void QXsldbgDoc::selectBreakPoint(uint lineNumber, bool reachedBreakPoint) } } -void QXsldbgDoc::lockDoc() +void TQXsldbgDoc::lockDoc() { locked = true; } -void QXsldbgDoc::unlockDoc() +void TQXsldbgDoc::unlockDoc() { locked = false; } |