File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99
1010
11+ %ModuleHeaderCode
12+ #include "qgssearchwidgettoolbutton.h"
13+ %End
14+
1115class QgsSearchWidgetToolButton : QToolButton
1216{
1317%Docstring
@@ -19,6 +23,12 @@ class QgsSearchWidgetToolButton : QToolButton
1923
2024%TypeHeaderCode
2125#include "qgssearchwidgettoolbutton.h"
26+ %End
27+ %ConvertToSubClassCode
28+ if ( qobject_cast<QgsSearchWidgetToolButton *>( sipCpp ) )
29+ sipType = sipType_QgsSearchWidgetToolButton;
30+ else
31+ sipType = nullptr;
2232%End
2333 public:
2434
Original file line number Diff line number Diff line change 2121#include < QToolButton>
2222#include " qgis_gui.h"
2323
24+ #ifdef SIP_RUN
25+ % ModuleHeaderCode
26+ #include " qgssearchwidgettoolbutton.h"
27+ % End
28+ #endif
29+
2430/* *
2531 * \ingroup gui
2632 * \class QgsSearchWidgetToolButton
3137 */
3238class GUI_EXPORT QgsSearchWidgetToolButton : public QToolButton
3339{
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+
3450 Q_OBJECT
3551
3652 public:
You can’t perform that action at this time.
0 commit comments