From 4420d52919f14bdc8f1babbcaebf1674631f62cc Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 2 Jul 2015 10:28:33 +0200 Subject: [PATCH] QuotaInfo: Ensure label fits into progress bar. #3393 --- src/gui/accountsettings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index c3d69f6e83..41238bca5a 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -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)));