0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 00:54:39 +03:00

Minimize button activated

This commit is contained in:
Arin Alexander 2016-04-06 21:41:50 +04:00
parent eb6e174080
commit 4f5103e679

View File

@ -294,7 +294,7 @@ void ReportEnginePrivate::previewReport()
dataManager()->setDesignTime(true); dataManager()->setDesignTime(true);
if (pages.count()>0){ if (pages.count()>0){
PreviewReportWindow* w = new PreviewReportWindow(this,0,settings()); 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->setAttribute(Qt::WA_DeleteOnClose,true);
w->setWindowModality(Qt::ApplicationModal); w->setWindowModality(Qt::ApplicationModal);
w->setWindowIcon(QIcon(":/report/images/main.ico")); w->setWindowIcon(QIcon(":/report/images/main.ico"));
@ -387,7 +387,7 @@ void ReportEnginePrivate::designReport()
//w->showModal(); //w->showModal();
#endif #endif
#ifdef Q_OS_WIN #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->setWindowModality(Qt::ApplicationModal);
//w->showModal(); //w->showModal();
#endif #endif