From 8c5023b36c774a892d1b4dc0c404633397e3ee4e Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Thu, 6 Aug 2009 16:48:39 +0200 Subject: [PATCH] Add the missing black line. --- src/plugins/projectexplorer/projectwindow.cpp | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp index 8ed1401edf9..6854ea960ce 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())); -- GitLab