diff options
author | Katja Marttila <katja.marttila@qt.io> | 2020-06-24 08:00:52 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-06-25 12:16:25 +0300 |
commit | 519899850f86cb99cdd4c2f84f63ac2a28bfe193 (patch) | |
tree | 319e17fa14ec946c85d4895fdba905ec6225ce41 /doc | |
parent | 7ab5e03c384f0a9364697743bd274486b1b6c2dd (diff) |
Add possibility to add custom widget from script to certain position
If several custom widgets are added to same page, the order of the
widgets is arbitrary. Added a new member to addWizardPageItem which can
define the position of the widget in the page, relative to another
custom widgets. Non-custom widgets are always placed on top as before.
Task-number: QTIFW-1847
Change-Id: Iadafef3a08e60a8b05b959cb06caea2a2042b419
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/scripting-api/packagemanagercore.qdoc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/scripting-api/packagemanagercore.qdoc b/doc/scripting-api/packagemanagercore.qdoc index d448f657c..8a31f54ea 100644 --- a/doc/scripting-api/packagemanagercore.qdoc +++ b/doc/scripting-api/packagemanagercore.qdoc @@ -230,9 +230,11 @@ */ /*! - \qmlsignal installer::wizardWidgetInsertionRequested(Widget widget, WizardPage page) + \qmlsignal installer::wizardWidgetInsertionRequested(Widget widget, + WizardPage page, int position) - Emitted when a \a widget is inserted into \a page by addWizardPageItem. + Emitted when a \a widget is inserted into \a page by addWizardPageItem + ordered by \a position. */ /*! @@ -461,10 +463,13 @@ */ /*! - \qmlmethod boolean installer::addWizardPageItem(Component component, string name, int page) + \qmlmethod boolean installer::addWizardPageItem(Component component, + string name, int page, int position) Adds the widget with objectName() \a name registered by \a component as a GUI element - into the installer's GUI wizard. The widget is added on \a page. + into the installer's GUI wizard. The widget is added on \a page ordered by \a position. + If several widgets are added to the same page, the widget with lower position number + will be inserted on top. See \l{Controller Scripting} for the possible values of \a page. |