diff ui/processwaitdialog.cpp @ 613:47235ae3fa9a

Remove close / help button and set fixed size
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 18 Jun 2014 15:10:00 +0200
parents 957b28a97959
children 320a64d58e62
line wrap: on
line diff
--- a/ui/processwaitdialog.cpp	Wed Jun 18 15:09:42 2014 +0200
+++ b/ui/processwaitdialog.cpp	Wed Jun 18 15:10:00 2014 +0200
@@ -21,6 +21,7 @@
     QHBoxLayout *theLayout = new QHBoxLayout(this);
 
     setWindowTitle(tr("Applications need to be closed."));
+    setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);
 
     QLabel *warnLabel = new QLabel(tr("Close all running firefox and thunderbird instances to continue installation!"));
     QLabel *warnIcon = new QLabel();
@@ -28,6 +29,8 @@
 
     theLayout->addWidget(warnIcon);
     theLayout->addWidget(warnLabel);
+
+    theLayout->setSizeConstraint(QLayout::SetFixedSize);
  //   mProcessList = new QListWidget();
 //    theLayout->addWidget(mProcessList);
     updateProcesses();

http://wald.intevation.org/projects/trustbridge/