[Pkg-owncloud-commits] [owncloud-client] 228/498: QuotaInfo: Ensure label fits into progress bar. #3393

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 4420d52919f14bdc8f1babbcaebf1674631f62cc
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Thu Jul 2 10:28:33 2015 +0200

    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 c3d69f6..41238bc 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)));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list