Oh, just found why QDomDocument::toString didn't compile... I had an old

qdom.h in $KDEDIR/include. Ooops. So now I can use toString in kdDebug calls.

svn path=/trunk/kdebase/konqueror/keditbookmarks/; revision=72403
This commit is contained in:
David Faure 2000-11-26 21:32:45 +00:00
parent 803e7857b3
commit 35199fbde4
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ void MoveCommand::execute()
// Look for m_from in the QDom tree
KBookmark bk = KBookmarkManager::self()->findByAddress( m_from );
ASSERT( !bk.isNull() );
//kdDebug() << "BEFORE:" << KBookmarkManager::self()->internalDocument().toCString() << endl;
//kdDebug() << "BEFORE:" << KBookmarkManager::self()->internalDocument().toString() << endl;
int posInOldParent = KBookmark::positionInParent( m_from );
KBookmark oldParent = KBookmarkManager::self()->findByAddress( KBookmark::parentAddress( m_from ) );
KBookmark oldPreviousSibling = posInOldParent == 0 ? KBookmark(QDomElement())

View file

@ -65,7 +65,7 @@ QByteArray KEBDrag::encodedData( const char* mime ) const
QDomElement elem = doc.createElement("xbel");
doc.appendChild( elem );
elem.appendChild( m_bookmark.internalElement().cloneNode( true /* deep */ ) );
kdDebug() << "KEBDrag::encodedData " << doc.toCString() << endl;
kdDebug() << "KEBDrag::encodedData " << doc.toString() << endl;
a = doc.toCString();
}
return a;