From bed346552ed69220550ad941fcc553f6e45e537f Mon Sep 17 00:00:00 2001 From: Arin Alexandex Date: Mon, 17 Aug 2020 10:04:17 +0300 Subject: [PATCH] Qt 4 build fixed --- limereport/lrpagedesignintf.cpp | 6 +++--- limereport/lrpagedesignintf.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/limereport/lrpagedesignintf.cpp b/limereport/lrpagedesignintf.cpp index 71aa0fe..d9c495d 100644 --- a/limereport/lrpagedesignintf.cpp +++ b/limereport/lrpagedesignintf.cpp @@ -2093,7 +2093,7 @@ bool PasteCommand::insertItem(ItemsReaderIntf::Ptr reader) if (page()->reportItemsByName(item->objectName()).size()>1){ item->setObjectName(objectName); } - foreach(QObject* child, item->children()){ + foreach (BaseDesignIntf* child, item->childBaseItems()){ changeName(page(), child); }; m_itemNames.push_back(item->objectName()); @@ -2103,10 +2103,10 @@ bool PasteCommand::insertItem(ItemsReaderIntf::Ptr reader) return false; } -void PasteCommand::changeName(PageDesignIntf *page, QObject* item) +void PasteCommand::changeName(PageDesignIntf *page, BaseDesignIntf* item) { item->setObjectName(page->genObjectName(*item)); - foreach(QObject* child, item->children()){ + foreach(BaseDesignIntf* child, item->childBaseItems()){ changeName(page, child); }; } diff --git a/limereport/lrpagedesignintf.h b/limereport/lrpagedesignintf.h index 6e38063..91d0a68 100644 --- a/limereport/lrpagedesignintf.h +++ b/limereport/lrpagedesignintf.h @@ -430,7 +430,7 @@ namespace LimeReport { void setItemsXML(const QString& itemsXML); void setParent(BaseDesignIntf* parent){m_parentItemName = parent->objectName();} bool insertItem(ItemsReaderIntf::Ptr reader); - void changeName(PageDesignIntf* page, QObject *item); + void changeName(PageDesignIntf* page, BaseDesignIntf *item); private: QString m_itemsXML; QString m_parentItemName;