[PATCH 2 of 2] Remove close / help button and set fixed size

Wald Commits scm-commit at wald.intevation.org
Wed Jun 18 15:10:05 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1403097000 -7200
# Node ID 47235ae3fa9a1ae6fb1fa4908559cdddf457a47b
# Parent  2ea11a95aa4a83c83eeb51d561499be23f3dfc4a
Remove close / help button and set fixed size

diff -r 2ea11a95aa4a -r 47235ae3fa9a ui/l10n/trustbridge_de_DE.ts
--- a/ui/l10n/trustbridge_de_DE.ts	Wed Jun 18 15:09:42 2014 +0200
+++ b/ui/l10n/trustbridge_de_DE.ts	Wed Jun 18 15:10:00 2014 +0200
@@ -298,7 +298,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../processwaitdialog.cpp" line="25"/>
+        <location filename="../processwaitdialog.cpp" line="26"/>
         <source>Close all running firefox and thunderbird instances to continue installation!</source>
         <translation type="unfinished"></translation>
     </message>
diff -r 2ea11a95aa4a -r 47235ae3fa9a ui/processwaitdialog.cpp
--- 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();


More information about the Trustbridge-commits mailing list