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; }