Commit 195b1797 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

More layout fixes

- Cleaned up frames in the QML inspactor.
- Do not force toolbar height for designer widgets
parent 2d45bb80
......@@ -275,7 +275,7 @@ void ManhattanStyle::polish(QWidget *widget)
}
else if (qobject_cast<QLabel*>(widget))
widget->setPalette(panelPalette(widget->palette()));
else if (qobject_cast<QToolBar*>(widget) || widget->property("panelwidget_singlerow").toBool())
else if (widget->property("panelwidget_singlerow").toBool())
widget->setFixedHeight(Utils::StyleHelper::navigationWidgetHeight());
else if (qobject_cast<QStatusBar*>(widget))
widget->setFixedHeight(Utils::StyleHelper::navigationWidgetHeight() + 2);
......
......@@ -66,6 +66,7 @@ ExpressionQueryWidget::ExpressionQueryWidget(Mode mode, QDeclarativeEngineDebug
layout->setMargin(0);
layout->setSpacing(0);
layout->addWidget(m_textEdit);
m_textEdit->setFrameStyle(QFrame::NoFrame);
updateTitle();
......
......@@ -75,6 +75,7 @@ ObjectPropertiesView::ObjectPropertiesView(QDeclarativeEngineDebug *client, QWid
setLayout(layout);
m_tree = new QTreeWidget(this);
m_tree->setFrameStyle(QFrame::NoFrame);
m_tree->setAlternatingRowColors(true);
m_tree->setExpandsOnDoubleClick(false);
m_tree->setHeaderLabels(QStringList()
......
......@@ -45,6 +45,7 @@ ObjectTree::ObjectTree(QDeclarativeEngineDebug *client, QWidget *parent)
m_client(client),
m_query(0)
{
setFrameStyle(QFrame::NoFrame);
setHeaderHidden(true);
setMinimumWidth(250);
setExpandsOnDoubleClick(false);
......
......@@ -276,6 +276,7 @@ WatchTableView::WatchTableView(WatchTableModel *model, QWidget *parent)
: QTableView(parent),
m_model(model)
{
setFrameStyle(QFrame::NoFrame);
setAlternatingRowColors(true);
connect(model, SIGNAL(watchCreated(QDeclarativeDebugWatch*)), SLOT(watchCreated(QDeclarativeDebugWatch*)));
......
......@@ -41,7 +41,7 @@ InspectorOutputWidget::InspectorOutputWidget(QWidget *parent)
: QTextEdit(parent)
{
setWindowTitle(tr("Output"));
setFrameStyle(QFrame::NoFrame);
m_clearContents = new QAction(QString(tr("Clear")), this);
m_clearContents->setIcon(QIcon(Core::Constants::ICON_CLEAR));
connect(m_clearContents, SIGNAL(triggered()), SLOT(clear()));
......
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