qt_installer.qs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. function Controller() {
  2. installer.autoRejectMessageBoxes();
  3. installer.installationFinished.connect(function() {
  4. gui.clickButton(buttons.NextButton);
  5. })
  6. }
  7. Controller.prototype.WelcomePageCallback = function() {
  8. gui.clickButton(buttons.NextButton, 3000);
  9. }
  10. Controller.prototype.CredentialsPageCallback = function() {
  11. gui.clickButton(buttons.NextButton);
  12. }
  13. Controller.prototype.IntroductionPageCallback = function() {
  14. gui.clickButton(buttons.NextButton);
  15. }
  16. Controller.prototype.TargetDirectoryPageCallback = function()
  17. {
  18. gui.currentPageWidget().TargetDirectoryLineEdit.setText("/qt");
  19. gui.clickButton(buttons.NextButton);
  20. }
  21. Controller.prototype.ComponentSelectionPageCallback = function() {
  22. var widget = gui.currentPageWidget();
  23. widget.deselectAll();
  24. widget.selectComponent("qt.qt5.5132.gcc_64");
  25. gui.clickButton(buttons.NextButton);
  26. }
  27. Controller.prototype.LicenseAgreementPageCallback = function() {
  28. gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
  29. gui.clickButton(buttons.NextButton);
  30. }
  31. Controller.prototype.StartMenuDirectoryPageCallback = function() {
  32. gui.clickButton(buttons.NextButton);
  33. }
  34. Controller.prototype.ReadyForInstallationPageCallback = function()
  35. {
  36. gui.clickButton(buttons.NextButton);
  37. }
  38. Controller.prototype.FinishedPageCallback = function() {
  39. var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
  40. if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
  41. checkBoxForm.launchQtCreatorCheckBox.checked = false;
  42. }
  43. gui.clickButton(buttons.FinishButton);
  44. }