mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
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:
parent
803e7857b3
commit
35199fbde4
|
@ -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())
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue