qt_installer_windows.qs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. function Controller() {
  2. installer.autoRejectMessageBoxes();
  3. installer.installationFinished.connect(function() {
  4. gui.clickButton(buttons.NextButton, 2000);
  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, 5000);
  17. }
  18. Controller.prototype.TargetDirectoryPageCallback = function() {
  19. gui.currentPageWidget().TargetDirectoryLineEdit.setText("C:/Qt");
  20. gui.clickButton(buttons.NextButton, 5000);
  21. }
  22. Controller.prototype.DynamicTelemetryPluginFormCallback = function() {
  23. var page = gui.pageWidgetByObjectName("DynamicTelemetryPluginForm");
  24. page.statisticGroupBox.disableStatisticRadioButton.setChecked(true);
  25. gui.clickButton(buttons.NextButton, 2000);
  26. }
  27. Controller.prototype.ComponentSelectionPageCallback = function() {
  28. var widget = gui.currentPageWidget();
  29. widget.deselectAll();
  30. widget.selectComponent("qt.qt5.5152.win64_msvc2019_64");
  31. gui.clickButton(buttons.NextButton, 2000);
  32. }
  33. Controller.prototype.ObligationsPageCallback = function()
  34. {
  35. var page = gui.pageWidgetByObjectName("ObligationsPage");
  36. page.obligationsAgreement.setChecked(true);
  37. var individualPerson = gui.findChild(page, "IndividualPerson");
  38. individualPerson.setChecked(true);
  39. page.completeChanged();
  40. gui.clickButton(buttons.NextButton, 2000);
  41. }
  42. Controller.prototype.LicenseAgreementPageCallback = function() {
  43. gui.currentPageWidget().AcceptLicenseCheckBox.setChecked(true);
  44. gui.clickButton(buttons.NextButton, 2000);
  45. }
  46. Controller.prototype.StartMenuDirectoryPageCallback = function() {
  47. gui.clickButton(buttons.NextButton, 2000);
  48. }
  49. Controller.prototype.ReadyForInstallationPageCallback = function()
  50. {
  51. gui.clickButton(buttons.NextButton, 2000);
  52. }
  53. Controller.prototype.FinishedPageCallback = function() {
  54. var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
  55. if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
  56. checkBoxForm.launchQtCreatorCheckBox.checked = false;
  57. }
  58. gui.clickButton(buttons.FinishButton, 2000);
  59. }