Project

General

Profile

treeview.patch

Thomas Lange, June 06, 2020 10:51

View differences:

src/libaudqt/treeview.cc
59 59
        return QProxyStyle::styleHint(hint, option, widget, returnData);
60 60
    }
61 61

  
62
    void drawPrimitive(PrimitiveElement element, const QStyleOption * option,
63
                       QPainter * painter,
64
                       const QWidget * widget) const override
65
    {
66
        if (element == QStyle::PE_IndicatorItemViewItemDrop &&
67
            !option->rect.isNull())
68
        {
69
            QStyleOption opt(*option);
70
            opt.rect.setLeft(0);
71
            if (widget)
72
                opt.rect.setRight(widget->width());
73

  
74
            QProxyStyle::drawPrimitive(element, &opt, painter, widget);
75
            return;
76
        }
77

  
78
        QProxyStyle::drawPrimitive(element, option, painter, widget);
79
    }
80

  
62 81
private:
63 82
    void resetBaseStyle()
64 83
    {