comparison ui/mainwindow.cpp @ 450:4932fc33ee82

Updated window and main layout size.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 23 Apr 2014 12:34:10 +0200
parents 023b565a02fc
children 94613c91a3d4
comparison
equal deleted inserted replaced
449:023b565a02fc 450:4932fc33ee82
51 { 51 {
52 createActions(); 52 createActions();
53 createTrayIcon(); 53 createTrayIcon();
54 createMenuBar(); 54 createMenuBar();
55 createContent(); 55 createContent();
56 resize(900, 540); 56 resize(950, 540);
57 qRegisterMetaType<SSLConnection::ErrorCode>("SSLConnection::ErrorCode"); 57 qRegisterMetaType<SSLConnection::ErrorCode>("SSLConnection::ErrorCode");
58 qRegisterMetaType<Certificate::Status>("Certificate::Status"); 58 qRegisterMetaType<Certificate::Status>("Certificate::Status");
59 59
60 connect(mTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), 60 connect(mTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
61 this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason))); 61 this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
377 infoLayout->addWidget(settingsBox); 377 infoLayout->addWidget(settingsBox);
378 infoLayout->addLayout(bottomLayout); 378 infoLayout->addLayout(bottomLayout);
379 379
380 mainLayout->addWidget(certBox); 380 mainLayout->addWidget(certBox);
381 mainLayout->addLayout(infoLayout); 381 mainLayout->addLayout(infoLayout);
382 382 mainLayout->setStretchFactor(certBox, 37);
383 mainLayout->setStretchFactor(infoLayout, 63);
383 384
384 // QMainWindow allready has a layout. All child layouts and widgets are 385 // QMainWindow allready has a layout. All child layouts and widgets are
385 // managed in the central widget. 386 // managed in the central widget.
386 base->setLayout(mainLayout); 387 base->setLayout(mainLayout);
387 setCentralWidget(base); 388 setCentralWidget(base);

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