comparison 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
comparison
equal deleted inserted replaced
612:2ea11a95aa4a 613:47235ae3fa9a
19 QDialog(parent), 19 QDialog(parent),
20 mProcessNames(processNames) { 20 mProcessNames(processNames) {
21 QHBoxLayout *theLayout = new QHBoxLayout(this); 21 QHBoxLayout *theLayout = new QHBoxLayout(this);
22 22
23 setWindowTitle(tr("Applications need to be closed.")); 23 setWindowTitle(tr("Applications need to be closed."));
24 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);
24 25
25 QLabel *warnLabel = new QLabel(tr("Close all running firefox and thunderbird instances to continue installation!")); 26 QLabel *warnLabel = new QLabel(tr("Close all running firefox and thunderbird instances to continue installation!"));
26 QLabel *warnIcon = new QLabel(); 27 QLabel *warnIcon = new QLabel();
27 warnIcon->setPixmap(QApplication::style()->standardPixmap(QStyle::SP_MessageBoxWarning)); 28 warnIcon->setPixmap(QApplication::style()->standardPixmap(QStyle::SP_MessageBoxWarning));
28 29
29 theLayout->addWidget(warnIcon); 30 theLayout->addWidget(warnIcon);
30 theLayout->addWidget(warnLabel); 31 theLayout->addWidget(warnLabel);
32
33 theLayout->setSizeConstraint(QLayout::SetFixedSize);
31 // mProcessList = new QListWidget(); 34 // mProcessList = new QListWidget();
32 // theLayout->addWidget(mProcessList); 35 // theLayout->addWidget(mProcessList);
33 updateProcesses(); 36 updateProcesses();
34 } 37 }
35 38

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