summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/formeditor/toolbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/toolbox.cpp')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/toolbox.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/toolbox.cpp b/src/plugins/qmldesigner/components/formeditor/toolbox.cpp
index 3dbb9c6806..1eab86ed0d 100644
--- a/src/plugins/qmldesigner/components/formeditor/toolbox.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/toolbox.cpp
@@ -20,27 +20,23 @@ ToolBox::ToolBox(QWidget *parentWidget)
{
setProperty("panelwidget", false);
- QPalette pal = palette();
- pal.setColor(QPalette::Window, Theme::getColor(Theme::DStoolbarBackground));
- setAutoFillBackground(true);
- setPalette(pal);
-
m_leftToolBar->setFloatable(true);
m_leftToolBar->setMovable(true);
m_leftToolBar->setOrientation(Qt::Horizontal);
auto horizontalLayout = new QHBoxLayout(this);
- horizontalLayout->setContentsMargins(9, 5, 9, 5);
+ horizontalLayout->setContentsMargins(0, 0, 0, 0);
horizontalLayout->setSpacing(0);
setFixedHeight(Theme::toolbarSize());
-
m_leftToolBar->setProperty("panelwidget", false);
m_leftToolBar->setProperty("panelwidget_singlerow", false);
+ m_leftToolBar->setFixedHeight(Theme::toolbarSize());
m_rightToolBar->setProperty("panelwidget", false);
m_rightToolBar->setProperty("panelwidget_singlerow", false);
+ m_rightToolBar->setFixedHeight(Theme::toolbarSize());
m_rightToolBar->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Expanding);
auto stretchToolbar = new QToolBar(this);