From 4743cd1fe65f408ed88b8c09555469f3094dd42a Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 21 Apr 2016 18:28:20 +0300 Subject: [PATCH] Redundant code has been removed --- limereport/lrreportengine.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index 06793af..f223b20 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -391,11 +391,6 @@ void ReportEnginePrivate::cancelRender() void ReportEnginePrivate::designReport() { - LimeReport::ReportDesignWindow* w = new LimeReport::ReportDesignWindow(this,QApplication::activeWindow(),settings()); - w->setAttribute(Qt::WA_DeleteOnClose,true); - w->setWindowIcon(QIcon(":report/images/logo32")); - w->setShowProgressDialog(m_showProgressDialog); - if (!m_designerWindow) { m_designerWindow = new LimeReport::ReportDesignWindow(this,QApplication::activeWindow(),settings()); m_designerWindow->setAttribute(Qt::WA_DeleteOnClose,true); @@ -403,15 +398,8 @@ void ReportEnginePrivate::designReport() m_designerWindow->setShowProgressDialog(m_showProgressDialog); } -#if defined(Q_OS_MAC) - //m_designerWindow->showModal(); -#elif defined(Q_OS_UNIX) - //m_designerWindow->showModal(); -#endif #ifdef Q_OS_WIN - //m_designerWindow->setWindowFlags(Qt::Window|Qt::WindowMaximizeButtonHint|Qt::WindowCloseButtonHint|Qt::WindowMinimizeButtonHint); m_designerWindow->setWindowModality(Qt::ApplicationModal); - //m_designerWindow->showModal(); #endif if (QApplication::activeWindow()==0){ m_designerWindow->show();;