mirror of
https://github.com/QuasarApp/installer-framework.git
synced 2025-04-28 06:24:32 +00:00
Doc: Don't indicate that you can add pages in a control script
Change-Id: I6ddfc27334d8f14852cd926653b5ab56851c3fec Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
This commit is contained in:
parent
89f772f819
commit
b07d55203b
@ -430,20 +430,13 @@
|
||||
component.userInterface( "MyPage" ).checkbox.checked = true;
|
||||
\endcode
|
||||
|
||||
\section2 Using Control Scripts to Add Pages
|
||||
|
||||
To register a custom page, use the installer::addWizardPage() method
|
||||
and the object name set in the UI file (for example, \c "MyPage"). Then
|
||||
call the \c{Dynamic${ObjectName}Callback()} function (for example,
|
||||
\c {DynamicMyPageCallback()}):
|
||||
You can also have a callback for the page that is added. To access it,
|
||||
use the object name set in the UI file (for example, \c "MyPage"). Then
|
||||
create the \c{Dynamic${ObjectName}Callback} function (for example,
|
||||
\c {DynamicMyPageCallback}):
|
||||
|
||||
\code
|
||||
function Controller()
|
||||
{
|
||||
installer.addWizardPage(component, "MyPage", QInstaller.TargetDirectory)
|
||||
}
|
||||
|
||||
Controller.prototype.DynamicMyPageCallback()
|
||||
Component.prototype.DynamicMyPageCallback = function()
|
||||
{
|
||||
var page = gui.pageWidgetByObjectName("DynamicMyPage");
|
||||
page.myButton.click,
|
||||
|
@ -483,13 +483,13 @@
|
||||
|
||||
Example code:
|
||||
\code
|
||||
function Controller()
|
||||
function Component()
|
||||
{
|
||||
// add page with widget \c SomePageWidget before the target directory page
|
||||
installer.addWizardPage(component, "SomePageWidget", QInstaller.TargetDirectory)
|
||||
}
|
||||
|
||||
Controller.prototype.DynamicSomePageWidgetCallback = function()
|
||||
Component.prototype.DynamicSomePageWidgetCallback = function()
|
||||
{
|
||||
var page = gui.pageWidgetByObjectName("DynamicSomePageWidget");
|
||||
page.myButton.click, //direct child of the UI file's widget
|
||||
|
Loading…
x
Reference in New Issue
Block a user