/***************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the release tools of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Digia. For licensing terms and ** conditions see http://qt.digia.com/licensing. For further information ** use the contact form at http://qt.digia.com/contact-us. ** ** $QT_END_LICENSE$ ** *****************************************************************************/ function Component() { } showB2QtDocumentation = function(aComponent) { installer.installationFinished.connect(aComponent, Component.prototype.installationFinishedPageIsShown); } Component.prototype.installationFinishedPageIsShown = function() { if (installer.value("showB2QtDocumentation", "false") == "false") { installer.setValue("showB2QtDocumentation", "true"); installer.finishButtonClicked.connect(component, Component.prototype.installationFinished); if ((installer.isInstaller() || installer.isUpdater() || installer.isPackageManager()) && installer.status == QInstaller.Success) installer.addWizardPageItem(component, "ReadMeCheckBoxForm", QInstaller.InstallationFinished); } } Component.prototype.installationFinished = function() { installer.setValue("showB2QtDocumentation", "false"); if ((installer.isInstaller() || installer.isUpdater() || installer.isPackageManager()) && installer.status == QInstaller.Success) { var isReadMeCheckBoxChecked = component.userInterface( "ReadMeCheckBoxForm" ).readMeCheckBox.checked; if (isReadMeCheckBoxChecked) QDesktopServices.openUrl("https://doc.qt.io/QtForDeviceCreation/index.html?welcome"); } }