mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 08:29:07 +03:00
Easyprofiler added
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "lrreporttranslation.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include "easy/profiler.h"
|
||||
|
||||
namespace LimeReport{
|
||||
|
||||
@@ -107,6 +108,7 @@ bool XMLReader::readItem(QObject *item)
|
||||
|
||||
void XMLReader::readItemFromNode(QObject* item,QDomElement *node)
|
||||
{
|
||||
EASY_BLOCK("readItemFromNode");
|
||||
ObjectLoadingStateIntf* lf = dynamic_cast<ObjectLoadingStateIntf*>(item);
|
||||
if(lf) lf->objectLoadStarted();
|
||||
for (int i=0;i<node->childNodes().count();i++){
|
||||
@@ -129,6 +131,7 @@ void XMLReader::readItemFromNode(QObject* item,QDomElement *node)
|
||||
if (baseItem) baseItem->parentObjectLoadFinished();
|
||||
}
|
||||
}
|
||||
EASY_END_BLOCK;
|
||||
}
|
||||
|
||||
QString XMLReader::lastError()
|
||||
@@ -183,13 +186,16 @@ QVariant XMLReader::getValue(QDomElement *node)
|
||||
|
||||
void XMLReader::readQObject(QObject* item, QDomElement* node)
|
||||
{
|
||||
EASY_BLOCK("readQObject");
|
||||
QObject* childItem = qvariant_cast<QObject*>(item->property(node->nodeName().toLatin1()));
|
||||
if (childItem)
|
||||
readItemFromNode(childItem,node);
|
||||
EASY_END_BLOCK;
|
||||
}
|
||||
|
||||
void XMLReader::readCollection(QObject *item, QDomElement *node)
|
||||
{
|
||||
EASY_BLOCK("readCollection")
|
||||
ICollectionContainer* collection = dynamic_cast<ICollectionContainer*>(item);
|
||||
if (collection){
|
||||
QString collectionName = node->nodeName();
|
||||
@@ -201,6 +207,7 @@ void XMLReader::readCollection(QObject *item, QDomElement *node)
|
||||
}
|
||||
collection->collectionLoadFinished(collectionName);
|
||||
}
|
||||
EASY_END_BLOCK;
|
||||
}
|
||||
|
||||
void XMLReader::readTranslation(QObject* item, QDomElement* node)
|
||||
|
Reference in New Issue
Block a user