diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp index 8ed1401edf9fad7582b300ccb6846aa1aa812f41..6854ea960ce48b0180c4c662de17518008a6748b 100644 --- a/src/plugins/projectexplorer/projectwindow.cpp +++ b/src/plugins/projectexplorer/projectwindow.cpp @@ -170,6 +170,31 @@ void ProjectView::updateSizeHint() } } +/// +// OnePixelBlackLine +/// + +#include <QtGui/QPainter> +#include <QtGui/QPaintEvent> +#include <utils/stylehelper.h> + +class OnePixelBlackLine : public QWidget +{ +public: + OnePixelBlackLine(QWidget *parent) + : QWidget(parent) + { + setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); + setMinimumHeight(1); + setMaximumHeight(1); + } + void paintEvent(QPaintEvent *e) + { + QPainter p(this); + p.fillRect(e->rect(), QBrush(StyleHelper::borderColor())); + } +}; + /// // ProjectWindow @@ -205,8 +230,10 @@ ProjectWindow::ProjectWindow(QWidget *parent) QVBoxLayout *topLevelLayout = new QVBoxLayout(this); topLevelLayout->setMargin(0); + topLevelLayout->setSpacing(0); topLevelLayout->addWidget(new Core::Utils::StyledBar(this)); topLevelLayout->addWidget(m_treeWidget); + topLevelLayout->addWidget(new OnePixelBlackLine(this)); topLevelLayout->addWidget(m_panelsWidget); connect(m_session, SIGNAL(sessionLoaded()), this, SLOT(restoreStatus()));