Fixed a styling problme with the zoom action in the qml editor

We didnt set manhattan style properties properly on the
tool bars. This would look rather broken in certain styles.
This commit is contained in:
Jens Bache-Wiig
2010-04-15 17:07:17 +02:00
parent ef926c6343
commit fd5051fc06

View File

@@ -35,6 +35,7 @@
#include <QPainter>
#include <QtDebug>
#include <QFile>
#include <QVariant>
namespace QmlDesigner {
@@ -53,6 +54,16 @@ ToolBox::ToolBox(QWidget *parentWidget)
m_leftToolBar->setIconSize(QSize(24, 24));
QToolBar *stretchToolbar = new QToolBar(this);
m_leftToolBar->setProperty("panelwidget", true);
m_leftToolBar->setProperty("panelwidget_singlerow", true);
m_rightToolBar->setProperty("panelwidget", true);
m_rightToolBar->setProperty("panelwidget_singlerow", true);
stretchToolbar->setProperty("panelwidget", true);
stretchToolbar->setProperty("panelwidget_singlerow", true);
stretchToolbar->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
m_rightToolBar->setOrientation(Qt::Horizontal);