From 4f5103e679f41c52718b70838ea887cd7db455a6 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Wed, 6 Apr 2016 21:41:50 +0400 Subject: [PATCH] Minimize button activated --- limereport/lrreportengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index 51bc4a5..3f34bc2 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -294,7 +294,7 @@ void ReportEnginePrivate::previewReport() dataManager()->setDesignTime(true); if (pages.count()>0){ PreviewReportWindow* w = new PreviewReportWindow(this,0,settings()); - w->setWindowFlags(Qt::Dialog|Qt::WindowMaximizeButtonHint|Qt::WindowCloseButtonHint); + w->setWindowFlags(Qt::Dialog|Qt::WindowMaximizeButtonHint|Qt::WindowCloseButtonHint| Qt::WindowMinMaxButtonsHint); w->setAttribute(Qt::WA_DeleteOnClose,true); w->setWindowModality(Qt::ApplicationModal); w->setWindowIcon(QIcon(":/report/images/main.ico")); @@ -387,7 +387,7 @@ void ReportEnginePrivate::designReport() //w->showModal(); #endif #ifdef Q_OS_WIN - w->setWindowFlags(Qt::Window|Qt::WindowMaximizeButtonHint|Qt::WindowCloseButtonHint); + //w->setWindowFlags(Qt::Window|Qt::WindowMaximizeButtonHint|Qt::WindowCloseButtonHint|Qt::WindowMinimizeButtonHint); w->setWindowModality(Qt::ApplicationModal); //w->showModal(); #endif