mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
do not add static QMetaObject to QgsDefaultValue
it has no Q_ENUM so no need for now I do not understand while it doesn't compile though
This commit is contained in:
parent
95ecea897a
commit
2abcfa23b8
@ -48,4 +48,3 @@ QgsProcessingOutputLayerDefinition.__repr__ = processing_output_layer_repr
|
|||||||
QgsProject.blockDirtying = ProjectDirtyBlocker
|
QgsProject.blockDirtying = ProjectDirtyBlocker
|
||||||
QgsReadWriteContext.enterCategory = ReadWriteContextEnterCategory
|
QgsReadWriteContext.enterCategory = ReadWriteContextEnterCategory
|
||||||
QgsTask.fromFunction = fromFunction
|
QgsTask.fromFunction = fromFunction
|
||||||
QgsTolerance.UnitType.parentClass = QgsTolerance
|
|
||||||
|
@ -36,9 +36,6 @@ not set, the default value will only be used when a feature is created.
|
|||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include "qgsdefaultvalue.h"
|
#include "qgsdefaultvalue.h"
|
||||||
%End
|
%End
|
||||||
public:
|
|
||||||
static const QMetaObject staticMetaObject;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit QgsDefaultValue( const QString &expression = QString(), bool applyOnUpdate = false );
|
explicit QgsDefaultValue( const QString &expression = QString(), bool applyOnUpdate = false );
|
||||||
|
@ -602,8 +602,10 @@ while ($LINE_IDX < $LINE_COUNT){
|
|||||||
|
|
||||||
# insert metaoject for Q_GADGET
|
# insert metaoject for Q_GADGET
|
||||||
if ($LINE =~ m/^\s*Q_GADGET\b.*?$/){
|
if ($LINE =~ m/^\s*Q_GADGET\b.*?$/){
|
||||||
write_output("HCE", " public:\n");
|
if ($LINE !~ m/SIP_SKIP/){
|
||||||
write_output("HCE", " static const QMetaObject staticMetaObject;\n\n");
|
write_output("HCE", " public:\n");
|
||||||
|
write_output("HCE", " static const QMetaObject staticMetaObject;\n\n");
|
||||||
|
}
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#define QGSDEFAULTVALUE_H
|
#define QGSDEFAULTVALUE_H
|
||||||
|
|
||||||
#include "qgis_core.h"
|
#include "qgis_core.h"
|
||||||
|
#include "qgis_sip.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
@ -46,7 +47,7 @@
|
|||||||
*/
|
*/
|
||||||
class CORE_EXPORT QgsDefaultValue
|
class CORE_EXPORT QgsDefaultValue
|
||||||
{
|
{
|
||||||
Q_GADGET
|
Q_GADGET SIP_SKIP
|
||||||
|
|
||||||
Q_PROPERTY( QString expression READ expression WRITE setExpression )
|
Q_PROPERTY( QString expression READ expression WRITE setExpression )
|
||||||
Q_PROPERTY( bool applyOnUpdate READ applyOnUpdate WRITE setApplyOnUpdate )
|
Q_PROPERTY( bool applyOnUpdate READ applyOnUpdate WRITE setApplyOnUpdate )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user