forked from qt-creator/qt-creator
show LaunchQtCreatorCheckBox at the standalone installer
Some code was there but the ui file and the showing code was missing. Change-Id: I9a865ff7a10995d3b129e0b18c2f250bca852f9e Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
function Component()
|
||||
{
|
||||
component.loaded.connect(this, Component.prototype.loaded);
|
||||
installer.installationFinished.connect(this, Component.prototype.installationFinishedPageIsShown);
|
||||
installer.finishButtonClicked.connect(this, Component.prototype.installationFinished);
|
||||
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
|
||||
}
|
||||
@@ -173,6 +174,17 @@ Component.prototype.createOperations = function()
|
||||
}
|
||||
}
|
||||
|
||||
Component.prototype.installationFinishedPageIsShown = function()
|
||||
{
|
||||
try {
|
||||
if (component.installed && installer.isInstaller() && installer.status == QInstaller.Success) {
|
||||
installer.addWizardPageItem( component, "LaunchQtCreatorCheckBoxForm", QInstaller.InstallationFinished );
|
||||
}
|
||||
} catch(e) {
|
||||
print(e);
|
||||
}
|
||||
}
|
||||
|
||||
Component.prototype.installationFinished = function()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>LaunchQtCreatorCheckBoxForm</class>
|
||||
<widget class="QWidget" name="LaunchQtCreatorCheckBoxForm">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>112</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="launchQtCreatorCheckBox">
|
||||
<property name="text">
|
||||
<string>Launch Qt Creator</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="tristate">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
@@ -14,5 +14,6 @@
|
||||
<AutoDependOn>org.qtproject.qtcreator</AutoDependOn>
|
||||
<UserInterfaces>
|
||||
<UserInterface>associatecommonfiletypesform.ui</UserInterface>
|
||||
<UserInterface>launchqtcreatorcheckboxform.ui</UserInterface>
|
||||
</UserInterfaces>
|
||||
</Package>
|
||||
|
||||
Reference in New Issue
Block a user