forked from qt-creator/qt-creator
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:
@@ -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
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user