+QSize SequenceBrowserWidget::sizeHint() const
+{
+ // don't trust the layouts size computation
+ // use some heavy handed brute force to compute
+ // the correct size so our stupid scrollable_browser
+ // will show the full viewport.
+ QSize left = left_sidebar->sizeHint();
+ QSize center = scrollable_browser->sizeHint();
+ QSize right = right_sidebar->sizeHint();
+
+ int width = left.width()+center.width()+right.width();
+ width += 2 * layout->margin();
+ if (layout->spacing() > 0) {
+ width += layout->spacing() * 3;
+ }
+ return QSize(width, center.height());
+}
+
+