2018-06-26 16:01:52 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/editorwidgets/qgsqmlwidgetwrapper.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsQmlWidgetWrapper : QgsWidgetWrapper
|
|
|
|
{
|
|
|
|
%Docstring
|
2018-09-05 15:59:01 +02:00
|
|
|
Wraps a QQuickWidget to display QML code
|
2018-06-26 16:01:52 +02:00
|
|
|
|
2018-09-05 15:59:01 +02:00
|
|
|
.. versionadded:: 3.4
|
2018-06-26 16:01:52 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsqmlwidgetwrapper.h"
|
|
|
|
%End
|
|
|
|
public:
|
2018-09-05 07:57:09 +02:00
|
|
|
|
2018-06-26 16:01:52 +02:00
|
|
|
QgsQmlWidgetWrapper( QgsVectorLayer *layer, QWidget *editor, QWidget *parent );
|
2018-09-05 15:59:01 +02:00
|
|
|
%Docstring
|
|
|
|
Create a qml widget wrapper
|
|
|
|
|
|
|
|
:param layer: The layer on which the feature is
|
2019-02-26 21:19:42 +10:00
|
|
|
:param editor: An editor widget. Can be ``None`` if one should be autogenerated.
|
2018-09-05 15:59:01 +02:00
|
|
|
:param parent: A parent widget
|
|
|
|
%End
|
2018-06-26 16:01:52 +02:00
|
|
|
|
|
|
|
virtual bool valid() const;
|
|
|
|
|
|
|
|
|
|
|
|
virtual QWidget *createWidget( QWidget *parent );
|
|
|
|
|
|
|
|
|
|
|
|
virtual void initWidget( QWidget *editor );
|
|
|
|
|
|
|
|
|
2018-09-03 16:22:51 +02:00
|
|
|
void reinitWidget();
|
2018-09-05 07:57:09 +02:00
|
|
|
%Docstring
|
2018-09-06 13:24:30 +02:00
|
|
|
Clears the content and makes new initialization
|
2018-09-05 07:57:09 +02:00
|
|
|
%End
|
2018-09-03 16:22:51 +02:00
|
|
|
|
2018-08-30 08:28:54 +02:00
|
|
|
void setQmlCode( const QString &qmlCode );
|
2018-09-05 07:57:09 +02:00
|
|
|
%Docstring
|
|
|
|
writes the ``qmlCode`` into a temporary file
|
|
|
|
%End
|
2018-08-30 08:28:54 +02:00
|
|
|
|
2018-06-26 16:01:52 +02:00
|
|
|
public slots:
|
|
|
|
virtual void setFeature( const QgsFeature &feature );
|
|
|
|
|
2018-08-03 10:14:00 +02:00
|
|
|
|
2018-06-26 16:01:52 +02:00
|
|
|
};
|
|
|
|
|
2018-09-05 17:07:43 +02:00
|
|
|
|
|
|
|
|
2018-06-26 16:01:52 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/editorwidgets/qgsqmlwidgetwrapper.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|