Commit 63d4115d authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fix single-pixel splitters with Oxygen style

Oxygen does some interesting tweaks with content
margins and event filters to draw dock widgets.
This had to be explicitly disabled in order to look
parent 8c0821db
......@@ -197,6 +197,7 @@ int ManhattanStyle::pixelMetric(PixelMetric metric, const QStyleOption *option,
if (panelWidget(widget))
retval = 16;
case PM_DockWidgetHandleExtent:
case PM_DockWidgetSeparatorExtent:
return 1;
case PM_MenuPanelWidth:
......@@ -257,10 +258,12 @@ void ManhattanStyle::polish(QWidget *widget)
// OxygenStyle forces a rounded widget mask on toolbars
// OxygenStyle forces a rounded widget mask on toolbars and dock widgets
if (baseStyle()->inherits("OxygenStyle")) {
if (qobject_cast<QToolBar*>(widget))
if (qobject_cast<QToolBar*>(widget) || qobject_cast<QDockWidget*>(widget)) {
widget->setContentsMargins(0, 0, 0, 0);
if (panelWidget(widget)) {
......@@ -424,6 +427,12 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
switch (element) {
case PE_IndicatorDockWidgetResizeHandle:
painter->fillRect(option->rect, Utils::StyleHelper::borderColor());
case PE_FrameDockWidget:
QCommonStyle::drawPrimitive(element, option, painter, widget);
case PE_PanelLineEdit:
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