|
|
@ -1066,15 +1066,15 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene(int pageIndex) |
|
|
|
// Get the items from the scene
|
|
|
|
// Get the items from the scene
|
|
|
|
QList<QGraphicsItem*> items = mScene->items(); |
|
|
|
QList<QGraphicsItem*> items = mScene->items(); |
|
|
|
|
|
|
|
|
|
|
|
int strokes = 0; int polygons = 0; |
|
|
|
// int strokes = 0; int polygons = 0;
|
|
|
|
foreach(QGraphicsItem *item, items) { |
|
|
|
// foreach(QGraphicsItem *item, items) {
|
|
|
|
if (item->type() == UBGraphicsPolygonItem::Type) { |
|
|
|
// if (item->type() == UBGraphicsPolygonItem::Type) {
|
|
|
|
polygons++; |
|
|
|
// polygons++;
|
|
|
|
} else if (item->type() == UBGraphicsStrokesGroup::Type) { |
|
|
|
// } else if (item->type() == UBGraphicsStrokesGroup::Type) {
|
|
|
|
strokes++; |
|
|
|
// strokes++;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
qDebug() << "---Strokes count" << strokes << "Polygons count" << polygons; |
|
|
|
// qDebug() << "---Strokes count" << strokes << "Polygons count" << polygons;
|
|
|
|
|
|
|
|
|
|
|
|
qSort(items.begin(), items.end(), itemZIndexComp); |
|
|
|
qSort(items.begin(), items.end(), itemZIndexComp); |
|
|
|
|
|
|
|
|
|
|
|