mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
SipConvertToSubClass code for QgsSearchWidgetToolButton
This commit is contained in:
parent
bdc47a48d9
commit
ddca8b6550
@ -8,6 +8,10 @@
|
||||
|
||||
|
||||
|
||||
%ModuleHeaderCode
|
||||
#include "qgssearchwidgettoolbutton.h"
|
||||
%End
|
||||
|
||||
class QgsSearchWidgetToolButton : QToolButton
|
||||
{
|
||||
%Docstring
|
||||
@ -19,6 +23,12 @@ class QgsSearchWidgetToolButton : QToolButton
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgssearchwidgettoolbutton.h"
|
||||
%End
|
||||
%ConvertToSubClassCode
|
||||
if ( qobject_cast<QgsSearchWidgetToolButton *>( sipCpp ) )
|
||||
sipType = sipType_QgsSearchWidgetToolButton;
|
||||
else
|
||||
sipType = nullptr;
|
||||
%End
|
||||
public:
|
||||
|
||||
|
||||
@ -21,6 +21,12 @@
|
||||
#include <QToolButton>
|
||||
#include "qgis_gui.h"
|
||||
|
||||
#ifdef SIP_RUN
|
||||
% ModuleHeaderCode
|
||||
#include "qgssearchwidgettoolbutton.h"
|
||||
% End
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \ingroup gui
|
||||
* \class QgsSearchWidgetToolButton
|
||||
@ -31,6 +37,16 @@
|
||||
*/
|
||||
class GUI_EXPORT QgsSearchWidgetToolButton : public QToolButton
|
||||
{
|
||||
|
||||
#ifdef SIP_RUN
|
||||
SIP_CONVERT_TO_SUBCLASS_CODE
|
||||
if ( qobject_cast<QgsSearchWidgetToolButton *>( sipCpp ) )
|
||||
sipType = sipType_QgsSearchWidgetToolButton;
|
||||
else
|
||||
sipType = nullptr;
|
||||
SIP_END
|
||||
#endif
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user