summaryrefslogtreecommitdiffstats
path: root/kxsldbg/kxsldbgpart/kxsldbg_part.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kxsldbg/kxsldbgpart/kxsldbg_part.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-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/kxsldbg_part.cpp')
-rw-r--r--kxsldbg/kxsldbgpart/kxsldbg_part.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/kxsldbg/kxsldbgpart/kxsldbg_part.cpp b/kxsldbg/kxsldbgpart/kxsldbg_part.cpp
index c9023d07..7ee2e26c 100644
--- a/kxsldbg/kxsldbgpart/kxsldbg_part.cpp
+++ b/kxsldbg/kxsldbgpart/kxsldbg_part.cpp
@@ -67,10 +67,10 @@
typedef KParts::GenericFactory<KXsldbgPart> KXsldbgPartFactory;
K_EXPORT_COMPONENT_FACTORY( libkxsldbgpart, KXsldbgPartFactory )
-KXsldbgPart::KXsldbgPart( TQWidget *parentWidget, const char * /*widgetName*/,
- TQObject *parent, const char *name,
+KXsldbgPart::KXsldbgPart( TQWidget *tqparentWidget, const char * /*widgetName*/,
+ TQObject *tqparent, const char *name,
const TQStringList & /*args*/ )
- : DCOPObject("KXsldbgPart"), KParts::ReadOnlyPart(parent, name)
+ : DCOPObject("KXsldbgPart"), KParts::ReadOnlyPart(tqparent, name)
{
currentLineNo = 0;
currentColumnNo = 0;
@@ -81,7 +81,7 @@ KXsldbgPart::KXsldbgPart( TQWidget *parentWidget, const char * /*widgetName*/,
// we need an instance
setInstance( KXsldbgPartFactory::instance() );
- TQVBox *frame = new TQVBox(parentWidget);
+ TQVBox *frame = new TQVBox(tqparentWidget);
TQHBox *h = new TQHBox(frame);
newXPath = new TQLineEdit(h);
xPathBtn = new TQPushButton(i18n("Goto XPath"), h);
@@ -94,7 +94,7 @@ KXsldbgPart::KXsldbgPart( TQWidget *parentWidget, const char * /*widgetName*/,
newEvaluate = new TQLineEdit(h);
evaluateBtn = new TQPushButton(i18n("Evaluate"), h);
- TQSplitter *splitter = new TQSplitter(TQSplitter::Vertical, frame);
+ TQSplitter *splitter = new TQSplitter(Qt::Vertical, frame);
mainView = new TQWidgetStack(splitter);
mainView->setMinimumHeight(400); //## TODO don't use a magic number
outputview = new XsldbgOutputView(splitter);
@@ -116,7 +116,7 @@ KXsldbgPart::KXsldbgPart( TQWidget *parentWidget, const char * /*widgetName*/,
actionCollection(), "configureCmd" );
(void) new KAction( i18n("Inspect..."),
- "find", Key_I,
+ "tqfind", Key_I,
this, TQT_SLOT(inspectorCmd_activated()),
actionCollection(), "inspectCmd" );
@@ -284,7 +284,7 @@ bool KXsldbgPart::openURL(const KURL &url)
{
bool result = fetchURL(url);
if (result){
- QXsldbgDoc *docPtr = docDictionary[url.prettyURL()];
+ TQXsldbgDoc *docPtr = docDictionary[url.prettyURL()];
if (docPtr && docPtr->kateView()){
if (docPtr != currentDoc){
currentDoc = docPtr;
@@ -305,9 +305,9 @@ bool KXsldbgPart::openURL(const KURL &url)
bool KXsldbgPart::fetchURL(const KURL &url)
{
TQString docID = url.prettyURL();
- QXsldbgDoc *docPtr = docDictionary[docID];
+ TQXsldbgDoc *docPtr = docDictionary[docID];
if (!docPtr){
- docPtr = new QXsldbgDoc(mainView, url);
+ docPtr = new TQXsldbgDoc(mainView, url);
docDictionary.insert(docID, docPtr);
if (docPtr->kateView()){
mainView->addWidget(docPtr->kateView());
@@ -374,14 +374,14 @@ void KXsldbgPart::lookupSystemID( TQString systemID)
#if KDE_IS_VERSION(3, 1, 90)
systemID = KInputDialog::getText(
i18n( "Lookup SystemID" ),
- i18n( "Please enter SystemID to find:" ),
- TQString::null, &ok,
+ i18n( "Please enter SystemID to tqfind:" ),
+ TQString(), &ok,
mainView);
#else
- systemID = QInputDialog::getText(
+ systemID = TQInputDialog::getText(
i18n( "Lookup SystemID" ),
- i18n( "Please enter SystemID to find:" ),
- TQLineEdit::Normal, TQString::null, &ok,
+ i18n( "Please enter SystemID to tqfind:" ),
+ TQLineEdit::Normal, TQString(), &ok,
mainView);
#endif
}else{
@@ -389,7 +389,7 @@ void KXsldbgPart::lookupSystemID( TQString systemID)
}
if ( ok && !systemID.isEmpty() ){
// user entered something and pressed ok
- TQString msg(TQString("system %1").arg(systemID)); // noTr
+ TQString msg(TQString("system %1").tqarg(systemID)); // noTr
debugger->fakeInput(msg, true);
}
@@ -406,20 +406,20 @@ void KXsldbgPart::lookupPublicID(TQString publicID)
#if KDE_IS_VERSION(3, 1, 90)
publicID = KInputDialog::getText(
i18n( "Lookup PublicID" ),
- i18n( "Please enter PublicID to find:" ),
- TQString::null, &ok, mainView );
+ i18n( "Please enter PublicID to tqfind:" ),
+ TQString(), &ok, mainView );
#else
- publicID = QInputDialog::getText(
+ publicID = TQInputDialog::getText(
i18n( "Lookup PublicID" ),
- i18n( "Please enter PublicID to find:" ),
- TQLineEdit::Normal, TQString::null, &ok, mainView );
+ i18n( "Please enter PublicID to tqfind:" ),
+ TQLineEdit::Normal, TQString(), &ok, mainView );
#endif
}else{
ok = true;
}
if ( ok && !publicID.isEmpty()){
// user entered something and pressed ok
- TQString msg(TQString("public %1").arg(publicID)); // noTr
+ TQString msg(TQString("public %1").tqarg(publicID)); // noTr
debugger->fakeInput(msg, true);
}
}
@@ -582,8 +582,8 @@ void KXsldbgPart::refreshCmd_activated()
{
if ( !currentFileName.isEmpty() ){
- TQDictIterator<QXsldbgDoc> it(docDictionary);
- QXsldbgDoc *docPtr;
+ TQDictIterator<TQXsldbgDoc> it(docDictionary);
+ TQXsldbgDoc *docPtr;
while (it.current()){
docPtr = it.current();
docPtr->refresh();
@@ -650,8 +650,8 @@ KXsldbgPart::lineNoChanged(TQString fileName, int lineNumber, bool breakpoint)
openURL(fileName);
- QXsldbgDoc *docPtr;
- TQDictIterator<QXsldbgDoc> it(docDictionary);
+ TQXsldbgDoc *docPtr;
+ TQDictIterator<TQXsldbgDoc> it(docDictionary);
while (it.current()){
docPtr = it.current();
// cause all Execution and BreakpointReached marks to be cleared
@@ -774,7 +774,7 @@ void KXsldbgPart::deleteBreakPoint(int lineNumber)
void KXsldbgPart::slotSearch()
{
if ((newSearch != 0L) && checkDebugger() ) {
- TQString msg(TQString("search \"%1\"").arg(newSearch->text())); // noTr
+ TQString msg(TQString("search \"%1\"").tqarg(newSearch->text())); // noTr
debugger->fakeInput(msg, false);
}
}
@@ -800,7 +800,7 @@ void KXsldbgPart::slotProcResolveItem(TQString URI)
{
if (!URI.isEmpty()){
TQMessageBox::information(mainView, i18n("SystemID or PublicID Resolution Result"),
- i18n("SystemID or PublicID has been resolved to\n.%1").arg(URI),
+ i18n("SystemID or PublicID has been resolved to\n.%1").tqarg(URI),
TQMessageBox::Ok);
}
}
@@ -812,8 +812,8 @@ void KXsldbgPart::breakpointItem(TQString fileName, int lineNumber ,
if (fileName == 0L){
/* Go through all documents and remove all breakpoints */
- TQDictIterator<QXsldbgDoc> it(docDictionary);
- QXsldbgDoc *docPtr;
+ TQDictIterator<TQXsldbgDoc> it(docDictionary);
+ TQXsldbgDoc *docPtr;
while (it.current()){
docPtr = it.current();
docPtr->clearMarks(true);
@@ -821,7 +821,7 @@ void KXsldbgPart::breakpointItem(TQString fileName, int lineNumber ,
}
}else{
/*
- if (!fileName.contains("://")){
+ if (!fileName.tqcontains("://")){
// relative path ? must handle this special case
KURL url;
url.setFileName(fileName);
@@ -834,7 +834,7 @@ void KXsldbgPart::breakpointItem(TQString fileName, int lineNumber ,
KURL temp(fileName);
fileName = temp.prettyURL();
fetchURL(fileName);
- QXsldbgDoc *docPtr = docDictionary[fileName] ;
+ TQXsldbgDoc *docPtr = docDictionary[fileName] ;
if (docPtr){
docPtr->addBreakPoint(lineNumber - 1, enabled);
}else {