Skip to content
Snippets Groups Projects
Commit 8c5023b3 authored by dt's avatar dt
Browse files

Add the missing black line.

parent 0fee3776
No related branches found
No related tags found
No related merge requests found
...@@ -170,6 +170,31 @@ void ProjectView::updateSizeHint() ...@@ -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 // ProjectWindow
...@@ -205,8 +230,10 @@ ProjectWindow::ProjectWindow(QWidget *parent) ...@@ -205,8 +230,10 @@ ProjectWindow::ProjectWindow(QWidget *parent)
QVBoxLayout *topLevelLayout = new QVBoxLayout(this); QVBoxLayout *topLevelLayout = new QVBoxLayout(this);
topLevelLayout->setMargin(0); topLevelLayout->setMargin(0);
topLevelLayout->setSpacing(0);
topLevelLayout->addWidget(new Core::Utils::StyledBar(this)); topLevelLayout->addWidget(new Core::Utils::StyledBar(this));
topLevelLayout->addWidget(m_treeWidget); topLevelLayout->addWidget(m_treeWidget);
topLevelLayout->addWidget(new OnePixelBlackLine(this));
topLevelLayout->addWidget(m_panelsWidget); topLevelLayout->addWidget(m_panelsWidget);
connect(m_session, SIGNAL(sessionLoaded()), this, SLOT(restoreStatus())); connect(m_session, SIGNAL(sessionLoaded()), this, SLOT(restoreStatus()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment