QGIS/python/gui/qgsproxystyle.sip.in
Nyall Dawson dfa6b6ae19 Correctly set base style for QgsLayerTreeViewProxyStyle
Creates a new QgsProxyStyle subclass of QProxyStyle which
automatically sets the base style to match the current
application style (creating a new QStyle object, since
setting the base style takes ownership). Additionally,
QgsProxyStyle correctly parents the style to a parent
widget, avoiding leaks since calling QWidget::setStyle
doesn't transfer ownership.

Fixes incorrect theme used for layer tree view since
addition of indicator icons.
2018-03-11 10:23:18 +11:00

41 lines
1.6 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsproxystyle.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProxyStyle : QProxyStyle
{
%Docstring
A QProxyStyle subclass which correctly sets the base style to match
the QGIS application style, and handles object lifetime by correctly
parenting to a parent widget.
.. versionadded:: 3.2
%End
%TypeHeaderCode
#include "qgsproxystyle.h"
%End
public:
explicit QgsProxyStyle( QWidget *parent /Transfer/ );
%Docstring
Constructor for QgsProxyStyle. Ownership is transferred to the ``parent`` widget.
The base style for the QProxyStyle will be set to match the current QGIS application style.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsproxystyle.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/