size policy for progress only for horizontal, not vertical; refs #142

master
Marc Wäckerlin 13 years ago
parent 81a9c81825
commit 7edc638149
  1. 4
      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"), ""));

Loading…
Cancel
Save