File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
10
10
11
+ %ModuleHeaderCode
12
+ #include "qgssearchwidgettoolbutton.h"
13
+ %End
14
+
11
15
class QgsSearchWidgetToolButton : QToolButton
12
16
{
13
17
%Docstring
@@ -19,6 +23,12 @@ class QgsSearchWidgetToolButton : QToolButton
19
23
20
24
%TypeHeaderCode
21
25
#include "qgssearchwidgettoolbutton.h"
26
+ %End
27
+ %ConvertToSubClassCode
28
+ if ( qobject_cast<QgsSearchWidgetToolButton *>( sipCpp ) )
29
+ sipType = sipType_QgsSearchWidgetToolButton;
30
+ else
31
+ sipType = nullptr;
22
32
%End
23
33
public:
24
34
Original file line number Diff line number Diff line change 21
21
#include < QToolButton>
22
22
#include " qgis_gui.h"
23
23
24
+ #ifdef SIP_RUN
25
+ % ModuleHeaderCode
26
+ #include " qgssearchwidgettoolbutton.h"
27
+ % End
28
+ #endif
29
+
24
30
/* *
25
31
* \ingroup gui
26
32
* \class QgsSearchWidgetToolButton
31
37
*/
32
38
class GUI_EXPORT QgsSearchWidgetToolButton : public QToolButton
33
39
{
40
+
41
+ #ifdef SIP_RUN
42
+ SIP_CONVERT_TO_SUBCLASS_CODE
43
+ if ( qobject_cast<QgsSearchWidgetToolButton *>( sipCpp ) )
44
+ sipType = sipType_QgsSearchWidgetToolButton;
45
+ else
46
+ sipType = nullptr ;
47
+ SIP_END
48
+ #endif
49
+
34
50
Q_OBJECT
35
51
36
52
public:
You can’t perform that action at this time.
0 commit comments