Fixed unused function warning in qtextdocumentfragment test.

Change-Id: I74bb961bf23c4ca1e8e5dc77e870d43fcecc5c09
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
Mitch Curtis 2012-05-21 10:30:58 +02:00 committed by Qt by Nokia
parent 709111e920
commit cebcfcc66b

View File

@ -307,24 +307,6 @@ void tst_QTextDocumentFragment::cleanup()
doc = 0;
}
#include <private/qtextdocument_p.h>
#include <qdebug.h>
static void dumpTable(const QTextDocumentPrivate *pt)
{
qDebug() << "---dump----";
qDebug() << "all text:" << pt->buffer();
for (QTextDocumentPrivate::FragmentIterator it = pt->begin();
!it.atEnd(); ++it) {
qDebug() << "Fragment at text position" << it.position() << "; stringPosition" << it.value()->stringPosition << "; size" << it.value()->size_array[0] << "format :" << it.value()->format << "frag: " << it.n;
qDebug() << " text:" << pt->buffer().mid(it.value()->stringPosition, it.value()->size_array[0]);
}
qDebug() << "----begin block dump----";
for (QTextBlock it = pt->blocksBegin(); it.isValid(); it = it.next())
qDebug() << "block at" << it.position() << "with length" << it.length() << "block alignment" << it.blockFormat().alignment();
qDebug() << "---dump----";
}
static void dumpTable(QTextDocument *doc) { dumpTable(doc->docHandle()); }
void tst_QTextDocumentFragment::listCopying()
{
cursor.insertList(QTextListFormat::ListDecimal);