diff --git a/src/plugins/debugger/qtmessagelogwindow.cpp b/src/plugins/debugger/qtmessagelogwindow.cpp
index 3be4b73af61f6a4ce33e3200d3d700e4e907211a..0272e4e5d7dcb8821056ff43acde0719c47cc822 100644
--- a/src/plugins/debugger/qtmessagelogwindow.cpp
+++ b/src/plugins/debugger/qtmessagelogwindow.cpp
@@ -79,7 +79,7 @@ QtMessageLogWindow::QtMessageLogWindow(QWidget *parent)
     vbox->setMargin(0);
     vbox->setSpacing(0);
 
-    QWidget *statusbarContainer = new QWidget();
+    QWidget *statusbarContainer = new Utils::StyledBar();
     statusbarContainer->setFixedHeight(statusBarHeight);
     QHBoxLayout *hbox = new QHBoxLayout(statusbarContainer);
     hbox->setMargin(0);
diff --git a/src/plugins/qmljsinspector/qmljsinspector.cpp b/src/plugins/qmljsinspector/qmljsinspector.cpp
index c872bf2b25c47e2d78cf0aad167d186576f857eb..af53c0c85c5dbd5c076071939f8d91bc8710c65d 100644
--- a/src/plugins/qmljsinspector/qmljsinspector.cpp
+++ b/src/plugins/qmljsinspector/qmljsinspector.cpp
@@ -122,24 +122,6 @@ enum {
     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;
 
 QmlJS::ModelManagerInterface *modelManager()
@@ -739,7 +721,7 @@ void InspectorUi::setupDockWidgets()
     inspectorWidget->setWindowTitle(tr("QML Inspector"));
     inspectorWidget->setObjectName(Debugger::Constants::DOCKWIDGET_QML_INSPECTOR);
 
-    QWidget *pathAndFilterWidget = new StyledBackground;
+    QWidget *pathAndFilterWidget = new Utils::StyledBar();
     pathAndFilterWidget->setMaximumHeight(m_crumblePath->height());
 
     QHBoxLayout *pathAndFilterLayout = new QHBoxLayout(pathAndFilterWidget);