Created
February 3, 2016 20:16
-
-
Save nritholtz/2df3189e07775d53551f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Emacs mode hint: -*- mode: JavaScript -*- | |
function Controller() { | |
installer.autoRejectMessageBoxes(); | |
installer.installationFinished.connect(function() { | |
gui.clickButton(buttons.NextButton); | |
}) | |
} | |
Controller.prototype.WelcomePageCallback = function() { | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.CredentialsPageCallback = function() { | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.IntroductionPageCallback = function() { | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.TargetDirectoryPageCallback = function() | |
{ | |
gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("HomeDir") + "/Qt"); | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.ComponentSelectionPageCallback = function() { | |
var widget = gui.currentPageWidget(); | |
widget.deselectAll(); | |
widget.selectComponent("qt.55.gcc"); | |
widget.selectComponent("qt.55.qtquickcontrols"); | |
// widget.deselectComponent("qt.tools.qtcreator"); | |
// widget.deselectComponent("qt.55.qt3d"); | |
// widget.deselectComponent("qt.55.qtcanvas3d"); | |
// widget.deselectComponent("qt.55.qtlocation"); | |
// widget.deselectComponent("qt.55.qtquick1"); | |
// widget.deselectComponent("qt.55.qtscript"); | |
// widget.deselectComponent("qt.55.qtwebengine"); | |
// widget.deselectComponent("qt.extras"); | |
// widget.deselectComponent("qt.tools.doc"); | |
// widget.deselectComponent("qt.tools.examples"); | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.LicenseAgreementPageCallback = function() { | |
gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true); | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.StartMenuDirectoryPageCallback = function() { | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.ReadyForInstallationPageCallback = function() | |
{ | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.FinishedPageCallback = function() { | |
var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm | |
if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) { | |
checkBoxForm.launchQtCreatorCheckBox.checked = false; | |
} | |
gui.clickButton(buttons.FinishButton); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment