Skip to content

Commit

Permalink
fix ios build adding new component (#41353)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasMizera committed Feb 4, 2021
1 parent ab39dad commit 043b8a7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/quickgui/attributes/qgsquickattributeformmodel.cpp
Expand Up @@ -57,6 +57,11 @@ bool QgsQuickAttributeFormModel::constraintsSoftValid() const
return mSourceModel->constraintsSoftValid();
}

bool QgsQuickAttributeFormModel::rememberValuesAllowed() const
{
return mSourceModel->rememberValuesAllowed();
}

void QgsQuickAttributeFormModel::save()
{
mSourceModel->save();
Expand Down
5 changes: 4 additions & 1 deletion src/quickgui/attributes/qgsquickattributeformmodel.h
Expand Up @@ -56,7 +56,7 @@ class QUICK_EXPORT QgsQuickAttributeFormModel : public QSortFilterProxyModel
Q_PROPERTY( bool constraintsSoftValid READ constraintsSoftValid NOTIFY constraintsSoftValidChanged )

//! Returns TRUE if remembering values is allowed
Q_PROPERTY( bool rememberValuesAllowed WRITE setRememberValuesAllowed )
Q_PROPERTY( bool rememberValuesAllowed READ rememberValuesAllowed WRITE setRememberValuesAllowed )

public:

Expand Down Expand Up @@ -103,6 +103,9 @@ class QUICK_EXPORT QgsQuickAttributeFormModel : public QSortFilterProxyModel
//! \copydoc QgsQuickAttributeFormModel::constraintsSoftValid
bool constraintsSoftValid() const;

//! Whether attribute models remembers or not last entered values
bool rememberValuesAllowed() const;

//! Updates QgsFeature based on changes
Q_INVOKABLE void save();

Expand Down
5 changes: 5 additions & 0 deletions src/quickgui/attributes/qgsquickattributeformmodelbase.cpp
Expand Up @@ -393,6 +393,11 @@ bool QgsQuickAttributeFormModelBase::constraintsSoftValid() const
return mConstraintsSoftValid;
}

bool QgsQuickAttributeFormModelBase::rememberValuesAllowed() const
{
return mAttributeModel->rememberValuesAllowed();
}

QVariant QgsQuickAttributeFormModelBase::attribute( const QString &name ) const
{
if ( !mLayer )
Expand Down
3 changes: 3 additions & 0 deletions src/quickgui/attributes/qgsquickattributeformmodelbase.h
Expand Up @@ -92,6 +92,9 @@ class QgsQuickAttributeFormModelBase : public QStandardItemModel
//! \copydoc QgsQuickAttributeFormModelBase::constraintsSoftValid
bool constraintsSoftValid() const;

//! Attribute model remembers or not last entered values
bool rememberValuesAllowed() const;

/**
* Gets the value of attribute of the feature in the model
*
Expand Down
1 change: 1 addition & 0 deletions src/quickgui/plugin/ios/qgsquick.qrc
Expand Up @@ -16,6 +16,7 @@
<file>qgsquickphotopanel.qml</file>
<file>qgsquickpositionmarker.qml</file>
<file>qgsquickicontextitem.qml</file>
<file>qgsquickcheckboxcomponent.qml</file>
<file>qgsquickscalebar.qml</file>
</qresource>
</RCC>
1 change: 1 addition & 0 deletions src/quickgui/plugin/ios/qmldir
Expand Up @@ -15,6 +15,7 @@ module QgsQuick
# suppose to be used only internally in QgsQuick plugin
EditorWidgetComboBox 0.1 qgsquickeditorwidgetcombobox.qml
IconTextItem 0.1 qgsquickicontextitem.qml
CheckboxComponent 0.1 qgsquickcheckboxcomponent.qml

MapCanvas 0.1 qgsquickmapcanvas.qml
FeatureForm 0.1 qgsquickfeatureform.qml
Expand Down

0 comments on commit 043b8a7

Please sign in to comment.