From a13442564051a61d3af0ce682c8285f30f38d6bf Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Fri, 8 Dec 2017 00:26:47 +0300 Subject: [PATCH] windows build fixed --- designer_plugin/limereport.pri | 8 ++++++++ limereport/lrreportdesignwidget.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/designer_plugin/limereport.pri b/designer_plugin/limereport.pri index fadd15b..be32632 100644 --- a/designer_plugin/limereport.pri +++ b/designer_plugin/limereport.pri @@ -62,6 +62,10 @@ SOURCES += \ $$REPORT_PATH/items/editors/lrtextalignmenteditorwidget.cpp \ $$REPORT_PATH/items/editors/lritemsaligneditorwidget.cpp \ $$REPORT_PATH/items/editors/lritemsborderseditorwidget.cpp \ + $$REPORT_PATH/items/lrchartitem.cpp \ + $$REPORT_PATH/items/lrchartitemeditor.cpp \ + $$REPORT_PATH/items/lrshapeitem.cpp \ + $$REPORT_PATH/items/lrimageitem.cpp \ $$REPORT_PATH/translationeditor/translationeditor.cpp \ $$REPORT_PATH/lrbanddesignintf.cpp \ $$REPORT_PATH/lrpageitemdesignintf.cpp \ @@ -154,6 +158,10 @@ HEADERS += \ $$REPORT_PATH/items/lrsubitemparentpropitem.h \ $$REPORT_PATH/items/lralignpropitem.h \ $$REPORT_PATH/items/lrhorizontallayout.h \ + $$REPORT_PATH/items/lrchartitem.h \ + $$REPORT_PATH/items/lrchartitemeditor.h \ + $$REPORT_PATH/items/lrshapeitem.h \ + $$REPORT_PATH/items/lrimageitem.h \ $$REPORT_PATH/translationeditor/translationeditor.h \ $$REPORT_PATH/lrbanddesignintf.h \ $$REPORT_PATH/lrpageitemdesignintf.h \ diff --git a/limereport/lrreportdesignwidget.cpp b/limereport/lrreportdesignwidget.cpp index 8b68570..2af7de9 100644 --- a/limereport/lrreportdesignwidget.cpp +++ b/limereport/lrreportdesignwidget.cpp @@ -365,7 +365,7 @@ void ReportDesignWidget::startEditMode() PageDesignIntf * ReportDesignWidget::activePage() { if (activeView()) - return qobject_cast(activeView()->scene()); + return dynamic_cast(activeView()->scene()); return 0; }