source: subsurface/qt-installer-noninteractive.qs

Last change on this file was 4e16bd7, checked in by Dirk Hohndel <dirk@…>, 6 months ago

Android build script: update for Qt 5.9

Signed-off-by: Dirk Hohndel <dirk@…>

  • Property mode set to 100644
File size: 1.9 KB
Line 
1// http://stackoverflow.com/a/34032216/78204
2
3function Controller() {
4    installer.autoRejectMessageBoxes();
5    installer.setMessageBoxAutomaticAnswer("OverwriteTargetDirectory", QMessageBox.Yes);
6    installer.installationFinished.connect(function() {
7        gui.clickButton(buttons.NextButton);
8    })
9}
10
11Controller.prototype.WelcomePageCallback = function() {
12    gui.clickButton(buttons.NextButton);
13}
14
15Controller.prototype.CredentialsPageCallback = function() {
16    gui.clickButton(buttons.NextButton);
17}
18
19Controller.prototype.IntroductionPageCallback = function() {
20    gui.clickButton(buttons.NextButton);
21}
22
23Controller.prototype.TargetDirectoryPageCallback = function()
24{
25    //gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("HomeDir") + "/Qt");
26    gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("InstallerDirPath") + "/Qt");
27    //gui.currentPageWidget().TargetDirectoryLineEdit.setText("/scratch/Qt");
28    gui.clickButton(buttons.NextButton);
29}
30
31Controller.prototype.ComponentSelectionPageCallback = function() {
32    var widget = gui.currentPageWidget();
33
34    widget.selectAll();
35    widget.deselectComponent('qt.59.src');
36
37    gui.clickButton(buttons.NextButton);
38}
39
40Controller.prototype.LicenseAgreementPageCallback = function() {
41    gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
42    gui.clickButton(buttons.NextButton);
43}
44
45Controller.prototype.StartMenuDirectoryPageCallback = function() {
46    gui.clickButton(buttons.NextButton);
47}
48
49Controller.prototype.ReadyForInstallationPageCallback = function()
50{
51    gui.clickButton(buttons.NextButton);
52}
53
54Controller.prototype.FinishedPageCallback = function() {
55var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
56if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
57    checkBoxForm.launchQtCreatorCheckBox.checked = false;
58}
59    gui.clickButton(buttons.FinishButton);
60}
Note: See TracBrowser for help on using the repository browser.