Fix resizing of actionbar

We no longer allow it to collapse below it's size hint.
I also reduced the bottom margin.
This commit is contained in:
Jens Bache-Wiig
2010-03-31 18:51:06 +02:00
parent a0a7d5c99b
commit 97901302b3
2 changed files with 8 additions and 1 deletions

View File

@@ -258,7 +258,7 @@ FancyActionBar::FancyActionBar(QWidget *parent)
m_actionsLayout = new QVBoxLayout;
QVBoxLayout *spacerLayout = new QVBoxLayout;
spacerLayout->addLayout(m_actionsLayout);
int sbh = ICore::instance()->statusBar()->height();
int sbh = 8;
spacerLayout->addSpacing(sbh);
spacerLayout->setMargin(0);
spacerLayout->setSpacing(0);
@@ -286,3 +286,9 @@ QLayout *FancyActionBar::actionsLayout() const
{
return m_actionsLayout;
}
QSize FancyActionBar::minimumSizeHint() const
{
return sizeHint();
}