Skip to content
Permalink
Browse files
[QgsQuick] Support of importing data for a text field
Fix spelling
  • Loading branch information
vsklencar authored and nyalldawson committed Apr 9, 2021
1 parent 21c3879 commit 145c0dd4a5f2b849903af0bacbe01fcedfffdf10
Showing with 5 additions and 5 deletions.
  1. +1 −1 src/quickgui/plugin/editor/qgsquicktextedit.qml
  2. +4 −4 src/quickgui/plugin/qgsquickfeatureform.qml
@@ -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
@@ -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).
@@ -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'

0 comments on commit 145c0dd

Please sign in to comment.