From 7edc638149ea358a97b07c6199eae6beafc8828e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 4 May 2012 10:21:53 +0000 Subject: [PATCH] size policy for progress only for horizontal, not vertical; refs #142 --- src/browser.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/browser.hxx b/src/browser.hxx index 9763b23..fc11bea 100644 --- a/src/browser.hxx +++ b/src/browser.hxx @@ -97,7 +97,9 @@ class Browser: public QMainWindow, protected Ui::Browser { _find->add(actionClearFind); _find->hide(); statusBar()->addPermanentWidget(_progress = new QProgressBar()); - _progress -> setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred); + QSizePolicy sp(_progress->sizePolicy()); + sp.setHorizontalPolicy(QSizePolicy::Minimum); + _progress->setSizePolicy(sp); QPushButton* btn(0); statusBar()->addPermanentWidget (btn=new QPushButton(QIcon(":/icons/16x16/butt16_09.png"), ""));