OS X: Fix layout of quota info in SettingsDialog

This commit is contained in:
Markus Goetz 2015-07-20 18:43:18 +02:00
parent a6f493ff94
commit a58cb049b2

View file

@ -117,7 +117,10 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent) :
ui->quotaInfoLabel->setFont(smallFont);
_quotaLabel = new QLabel(ui->quotaProgressBar);
(new QVBoxLayout(ui->quotaProgressBar))->addWidget(_quotaLabel);
QVBoxLayout *quotaProgressLayout = new QVBoxLayout(ui->quotaProgressBar);
quotaProgressLayout->setContentsMargins(-1,0,-1,0);
quotaProgressLayout->setSpacing(0);
quotaProgressLayout->addWidget(_quotaLabel);
// This ensures the progress bar is big enough for the label.
ui->quotaProgressBar->setMinimumHeight(_quotaLabel->height());