QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
src
gui
qgsproxystyle.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsproxystyle.h
3
---------------
4
Date : March 2018
5
Copyright : (C) 2018 by Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSPROXYSTYLE_H
17
#define QGSPROXYSTYLE_H
18
19
#include "
qgis_sip.h
"
20
#include "
qgsgui.h
"
21
#include <QProxyStyle>
22
30
class
GUI_EXPORT
QgsProxyStyle
:
public
QProxyStyle
31
{
32
Q_OBJECT
33
34
public
:
35
41
explicit
QgsProxyStyle
( QWidget *parent
SIP_TRANSFER
);
42
};
43
45
#ifndef SIP_RUN
46
51
class
GUI_EXPORT QgsAppStyle :
public
QProxyStyle
52
{
53
Q_OBJECT
54
55
public
:
56
57
explicit
QgsAppStyle(
const
QString &base );
58
QPixmap generatedIconPixmap( QIcon::Mode iconMode,
const
QPixmap &pixmap,
const
QStyleOption *opt )
const override
;
59
60
QString baseStyle()
const
{
return
mBaseStyle; }
61
67
QProxyStyle *clone()
SIP_FACTORY
;
68
69
private:
70
71
QString mBaseStyle;
72
};
73
74
#endif
75
77
#endif // QGSPROXYSTYLE_H
qgsgui.h
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsProxyStyle
A QProxyStyle subclass which correctly sets the base style to match the QGIS application style,...
Definition:
qgsproxystyle.h:31
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20