QGIS/python/gui/auto_generated/qgsproxystyle.sip.in
Nyall Dawson 2ec051374f Add custom QStyle override to allow more flexibility with theming
Allows us to apply custom style overrides. Initially, this just
improves the appearance of disabled icons on dark themes.

The default Qt style method of displaying disabled icons only
works well on light backgrounds, on dark backgrounds it makes the
icons stand out due to the extreme contrast between the background
and the lightened icons.

Replace with a custom approach which desaturates icons and reduces
their opacity. This arguably also improves their appearance on
light themes too (I think so).
2018-12-30 05:22:44 +10:00

42 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 *
************************************************************************/