Control bandwidth stats dialog sizing similarly

This commit is contained in:
David Rowe 2015-10-29 13:18:43 +13:00
parent 4cb5ccab90
commit 568e5536b8

View file

@ -72,8 +72,9 @@ BandwidthDialog::BandwidthDialog(QWidget* parent) :
this->setWindowTitle("Bandwidth Details"); this->setWindowTitle("Bandwidth Details");
// Create layouter // Create layout
QFormLayout* form = new QFormLayout(); QFormLayout* form = new QFormLayout();
form->setSizeConstraint(QLayout::SetFixedSize);
this->QDialog::setLayout(form); this->QDialog::setLayout(form);
QSharedPointer<BandwidthRecorder> bandwidthRecorder = DependencyManager::get<BandwidthRecorder>(); QSharedPointer<BandwidthRecorder> bandwidthRecorder = DependencyManager::get<BandwidthRecorder>();
@ -118,7 +119,6 @@ void BandwidthDialog::paintEvent(QPaintEvent* event) {
for (unsigned int i=0; i<_CHANNELCOUNT; i++) for (unsigned int i=0; i<_CHANNELCOUNT; i++)
_allChannelDisplays[i]->paint(); _allChannelDisplays[i]->paint();
this->QDialog::paintEvent(event); this->QDialog::paintEvent(event);
this->setFixedSize(this->width(), this->height());
} }
void BandwidthDialog::reject() { void BandwidthDialog::reject() {