30 #include <QPaintEvent>
32 #include <QSplitterHandle>
41 : QSplitterHandle(orientation, parent)
43 setMask(QRegion(contentsRect()));
44 setAttribute(Qt::WA_MouseNoMask,
true);
56 using namespace Core::Internal;
67 if (orientation() == Qt::Horizontal)
68 setContentsMargins(6, 0, 6, 0);
70 setContentsMargins(0, 6, 0, 6);
71 setMask(QRegion(contentsRect()));
73 QWidget::resizeEvent(event);
78 QPainter painter(
this);
79 painter.fillRect(event->rect(), QColor(48, 48, 48));
91 setChildrenCollapsible(
false);
92 setProperty(
"minisplitter",
true);
96 : QSplitter(orientation)
99 setChildrenCollapsible(
false);
100 setProperty(
"minisplitter",
true);
MiniSplitterHandle(Qt::Orientation orientation, QSplitter *parent)
QSplitterHandle * createHandle()
void resizeEvent(QResizeEvent *event)
void paintEvent(QPaintEvent *event)
MiniSplitter(QWidget *parent=nullptr)