Commit 97ad6926 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Move line drawing class to the top of the file.

 * This way it becomes available to all classes in this file.

Reviewed-By: dt
parent 58e562b8
......@@ -68,6 +68,31 @@ namespace {
bool debug = false;
}
///
// OnePixelBlackLine
///
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(Utils::StyleHelper::borderColor()));
}
};
///
// PanelsWidget
///
PanelsWidget::PanelsWidget(QWidget *parent)
: QScrollArea(parent)
{
......@@ -626,27 +651,6 @@ void ProjectPushButton::actionTriggered()
emit projectChanged((ProjectExplorer::Project *) action->data().value<void *>());
}
///
// OnePixelBlackLine
///
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(Utils::StyleHelper::borderColor()));
}
};
///
// ProjectWindow
///
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment