QuotaInfo: Ensure label fits into progress bar. #3393

This commit is contained in:
Christian Kamm 2015-07-02 10:28:33 +02:00
parent e88ce41f4f
commit 4420d52919

View File

@ -119,6 +119,9 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent) :
_quotaLabel = new QLabel(ui->quotaProgressBar);
(new QVBoxLayout(ui->quotaProgressBar))->addWidget(_quotaLabel);
// This ensures the progress bar is big enough for the label.
ui->quotaProgressBar->setMinimumHeight(_quotaLabel->height());
ui->connectLabel->setText(tr("No account configured."));
connect(_accountState, SIGNAL(stateChanged(int)), SLOT(slotAccountStateChanged(int)));