Move line drawing class to the top of the file.

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

Reviewed-By: dt
This commit is contained in:
Tobias Hunger
2009-11-25 15:12:34 +01:00
parent 58e562b80a
commit 97ad692684

View File

@@ -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
///