forked from qt-creator/qt-creator
QmlDebugging: Use Utils::StyledBar
Use the StyledBar instead of custom widgets in inspector and messagelog window. Change-Id: I3bb8fc3aef20caf9c6c2b3c5e214d3642f5f8397 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -79,7 +79,7 @@ QtMessageLogWindow::QtMessageLogWindow(QWidget *parent)
|
|||||||
vbox->setMargin(0);
|
vbox->setMargin(0);
|
||||||
vbox->setSpacing(0);
|
vbox->setSpacing(0);
|
||||||
|
|
||||||
QWidget *statusbarContainer = new QWidget();
|
QWidget *statusbarContainer = new Utils::StyledBar();
|
||||||
statusbarContainer->setFixedHeight(statusBarHeight);
|
statusbarContainer->setFixedHeight(statusBarHeight);
|
||||||
QHBoxLayout *hbox = new QHBoxLayout(statusbarContainer);
|
QHBoxLayout *hbox = new QHBoxLayout(statusbarContainer);
|
||||||
hbox->setMargin(0);
|
hbox->setMargin(0);
|
||||||
|
@@ -122,24 +122,6 @@ enum {
|
|||||||
ConnectionAttemptSimultaneousInterval = 500
|
ConnectionAttemptSimultaneousInterval = 500
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* A widget that has the base color.
|
|
||||||
*/
|
|
||||||
class StyledBackground : public QWidget
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
explicit StyledBackground(QWidget *parent = 0)
|
|
||||||
: QWidget(parent)
|
|
||||||
{}
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void paintEvent(QPaintEvent *e)
|
|
||||||
{
|
|
||||||
QPainter p(this);
|
|
||||||
p.fillRect(e->rect(), Utils::StyleHelper::baseColor());
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
InspectorUi *InspectorUi::m_instance = 0;
|
InspectorUi *InspectorUi::m_instance = 0;
|
||||||
|
|
||||||
QmlJS::ModelManagerInterface *modelManager()
|
QmlJS::ModelManagerInterface *modelManager()
|
||||||
@@ -739,7 +721,7 @@ void InspectorUi::setupDockWidgets()
|
|||||||
inspectorWidget->setWindowTitle(tr("QML Inspector"));
|
inspectorWidget->setWindowTitle(tr("QML Inspector"));
|
||||||
inspectorWidget->setObjectName(Debugger::Constants::DOCKWIDGET_QML_INSPECTOR);
|
inspectorWidget->setObjectName(Debugger::Constants::DOCKWIDGET_QML_INSPECTOR);
|
||||||
|
|
||||||
QWidget *pathAndFilterWidget = new StyledBackground;
|
QWidget *pathAndFilterWidget = new Utils::StyledBar();
|
||||||
pathAndFilterWidget->setMaximumHeight(m_crumblePath->height());
|
pathAndFilterWidget->setMaximumHeight(m_crumblePath->height());
|
||||||
|
|
||||||
QHBoxLayout *pathAndFilterLayout = new QHBoxLayout(pathAndFilterWidget);
|
QHBoxLayout *pathAndFilterLayout = new QHBoxLayout(pathAndFilterWidget);
|
||||||
|
Reference in New Issue
Block a user