Skip to content
Permalink
Browse files

SipConvertToSubClass code for QgsSearchWidgetToolButton

  • Loading branch information
m-kuhn committed Nov 3, 2017
1 parent bdc47a4 commit ddca8b6550697efb9fae76dc9aeb1d685d6109be
@@ -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:

0 comments on commit ddca8b6

Please sign in to comment.
You can’t perform that action at this time.