Commit 8b28d1e0 authored by Christoph Cullmann's avatar Christoph Cullmann

ensure outer layout set

CCBUG: 412721
parent b795da45
......@@ -224,8 +224,14 @@ ToolView::ToolView(MainWindow *mainwin, Sidebar *sidebar, QWidget *parent)
QSizePolicy policy(QSizePolicy::Preferred, QSizePolicy::Preferred);
policy.setRetainSizeWhenHidden(true);
setSizePolicy(policy);
// per default vbox layout
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
setLayout(layout);
// toolbar to collect actions
m_toolbar = new KToolBar(this);
m_toolbar->setVisible(false);
m_toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment