Skip to content

Commit

Permalink
[QgsQuick] Support of importing data for a text field
Browse files Browse the repository at this point in the history
Fix spelling
  • Loading branch information
vsklencar authored and nyalldawson committed Apr 9, 2021
1 parent 21c3879 commit 145c0dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/quickgui/plugin/editor/qgsquicktextedit.qml
Expand Up @@ -109,7 +109,7 @@ Item {
// Icon
Item {
id: importDataBtn
visible: supportDataImport
visible: supportsDataImport
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.rightMargin: customStyle.fields.sideMargin
Expand Down
8 changes: 4 additions & 4 deletions src/quickgui/plugin/qgsquickfeatureform.qml
Expand Up @@ -114,15 +114,15 @@ Item {
}

/**
* A handler for extra events withing a TextEdit widget .
* A handler for extra events for a TextEdit widget .
*/
property var importDataHandler: QtObject {

/**
* Suppose to set `supportDataImport` variable of a feature form. If true, enables to set data by this handler.
* Suppose to set `supportsDataImport` variable of a feature form. If true, enables to set data by this handler.
* \param name "Name" property of field item. Expecting alias if defined, otherwise field name.
*/
property var supportImportData: function supportImportData(name) { return false }
property var supportsImportData: function supportsImportData(name) { return false }

/**
* Suppose to be called to invoke a component to set data automatically (e.g. code scanner, sensor).
Expand Down Expand Up @@ -474,7 +474,7 @@ Item {
property var featurePair: form.model.attributeModel.featureLayerPair
property var activeProject: form.project
property var customWidget: form.customWidgetCallback
property bool supportDataImport: importDataHandler.supportImportData(Name)
property bool supportsDataImport: importDataHandler.supportsDataImport(Name)

active: widget !== 'Hidden'

Expand Down

0 comments on commit 145c0dd

Please sign in to comment.