Commit c9236bb2 authored by Noah Davis's avatar Noah Davis 🌵 Committed by Nate Graham
Browse files

Don't do custom graphics for splitter handle

parent ed015668
......@@ -33,22 +33,6 @@ public:
SplitterHandle(Qt::Orientation orientation, QSplitter* parent)
: QSplitterHandle(orientation, parent)
{}
protected:
void paintEvent(QPaintEvent* event) override
{
QSplitterHandle::paintEvent(event);
QPainter painter(this);
painter.setPen(palette().mid().color());
if (orientation() == Qt::Vertical) {
painter.drawLine(rect().topLeft(), rect().topRight());
painter.drawLine(rect().bottomLeft(), rect().bottomRight());
} else {
//painter.drawLine(rect().topLeft(), rect().bottomLeft());
painter.drawLine(rect().topRight(), rect().bottomRight());
}
}
};
/**
......@@ -60,8 +44,7 @@ class Splitter : public QSplitter
public:
Splitter(Qt::Orientation orientation, QWidget* parent)
: QSplitter(orientation, parent)
{
setHandleWidth(handleWidth() + 2);
{
}
protected:
......
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