qt_installer_windows.qs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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, 5000);
  9. }
  10. Controller.prototype.CredentialsPageCallback = function() {
  11. gui.currentPageWidget().loginWidget.EmailLineEdit.setText("ci@semlanik.org");
  12. gui.currentPageWidget().loginWidget.PasswordLineEdit.setText("1QazxsW2");
  13. gui.clickButton(buttons.NextButton, 5000);
  14. }
  15. Controller.prototype.IntroductionPageCallback = function() {
  16. gui.clickButton(buttons.NextButton);
  17. }
  18. Controller.prototype.TargetDirectoryPageCallback = function()
  19. {
  20. gui.currentPageWidget().TargetDirectoryLineEdit.setText("C:/Qt");
  21. gui.clickButton(buttons.NextButton);
  22. }
  23. Controller.prototype.ComponentSelectionPageCallback = function() {
  24. var widget = gui.currentPageWidget();
  25. widget.deselectAll();
  26. widget.selectComponent("qt.qt5.5132.win32_msvc2017");
  27. gui.clickButton(buttons.NextButton);
  28. }
  29. Controller.prototype.LicenseAgreementPageCallback = function() {
  30. gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
  31. gui.clickButton(buttons.NextButton);
  32. }
  33. Controller.prototype.StartMenuDirectoryPageCallback = function() {
  34. gui.clickButton(buttons.NextButton);
  35. }
  36. Controller.prototype.ReadyForInstallationPageCallback = function()
  37. {
  38. gui.clickButton(buttons.NextButton);
  39. }
  40. Controller.prototype.FinishedPageCallback = function() {
  41. var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
  42. if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
  43. checkBoxForm.launchQtCreatorCheckBox.checked = false;
  44. }
  45. gui.clickButton(buttons.FinishButton);
  46. }