qt_installer_windows.qs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. page.completeChanged();
  38. gui.clickButton(buttons.NextButton, 2000);
  39. }
  40. Controller.prototype.LicenseAgreementPageCallback = function() {
  41. gui.currentPageWidget().AcceptLicenseCheckBox.setChecked(true);
  42. gui.clickButton(buttons.NextButton, 2000);
  43. }
  44. Controller.prototype.StartMenuDirectoryPageCallback = function() {
  45. gui.clickButton(buttons.NextButton, 2000);
  46. }
  47. Controller.prototype.ReadyForInstallationPageCallback = function()
  48. {
  49. gui.clickButton(buttons.NextButton, 2000);
  50. }
  51. Controller.prototype.FinishedPageCallback = function() {
  52. var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
  53. if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
  54. checkBoxForm.launchQtCreatorCheckBox.checked = false;
  55. }
  56. gui.clickButton(buttons.FinishButton, 2000);
  57. }