summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/component.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Reset font property when setting "virtual" property to false.Jarek Kobus2015-04-211-2/+3
| | | | | | | Visible in systeminfo example, when run with --show-virtual-components Change-Id: Ie9f82602d86c9be8060bc14ef5b1e524387f5c17 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Do not throw on empty translation filesNiels Weber2015-04-151-3/+5
| | | | | | | | Workaround for QTBUG-31031 (QTranslator::load returns false for empty translation-files) Change-Id: If4587b99c86a5afacada2d022af10460248ecf93 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Doc: update docs for component selectionLeena Miettinen2015-03-111-6/+6
| | | | | | | | | The selected property seems to be gone, so QDoc now wants isSelected() and isSelectedForInstallation() documented. Change-Id: I638f297a77ebd787a627374e71acab2026e49593 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Doc: move component scripting docs to a separate fileLeena Miettinen2015-03-091-231/+195
| | | | | | | | | Reformat the docs in the C++ file as C++ documentation. Fix language and style issues. Change-Id: Ifc2ac0a99700d8b2a2ca6835927cdfb0abd7ed2e Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Restore original behavior for component.installationRequestedKai Koehne2015-02-271-1/+6
| | | | | | | | | | | | | | component.installationRequested() should return true also for components that are selected through dependencies (after they have been resolved). This restores the original behavior on 1.6. To keep the change minimal the 'new' behavior has been saved in a method isSelectedForInstallation . This should be further refactored in the master branch. Task-number: QTBUG-633 Change-Id: I2cb936a399927252a4ad4dd81f73683fa3c28a01 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Remove setSelected that has been deprecated since 1.3Niels Weber2015-02-271-12/+0
| | | | | Change-Id: I739f37bcdbb4ea17e57397e98bc49619938977d5 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update CopyrightKai Koehne2015-02-181-7/+7
| | | | | Change-Id: I8dde6629cfd461104364d5cdc255cb54b58283fa Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Add a translation exampleNiels Weber2015-02-091-1/+11
| | | | | | | | | | Add an example showing how the translation of components works. Also document this. Make translated license files work again. Task-number: QTIFW-469 Change-Id: I3c13ecc9941b09370d0713b19b2683b42454c43c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Don't show checkbox for autodependent componentsjkobus2015-01-231-1/+1
| | | | | | Change-Id: Ia954f6337c188453f05b37725975be98a28d564f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Show "Forced" component as enabled, but without checkboxjkobus2015-01-211-2/+0
| | | | | | | | | The indication that it will be installed will be shown in second column. Task-number: QTIFW-491 Change-Id: I23407fe9376a375e62a7b56a0284b12e42c83f81 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Make sure widgets from .ui files are properly registered to engineKai Koehne2015-01-201-0/+1
| | | | | | | | | | | | | Make the QWidget representing a UI file known to the engine, so that e.g. child objects can be always accessed : component.userInterface("RegisterFileCheckBoxForm").RegisterFileCheckBox.checked; This worked reliably only if the .ui file has been shown to the user, which might not always been the case. Change-Id: I7a87773e29f6210ab7160d8e33c41f6ebeeb82d6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Introduce InstallAction property for componentjkobus2015-01-191-1/+3
| | | | | | | | | | Fixes calculation of component size inside maintenance tool. Don't manipulate check state of components while calculating dependencies. Prepare feature: live preview of dependencies. Change-Id: I0485df8383bc9149a996456e09878fc5676bb27b Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Fix a doc typojkobus2015-01-191-1/+1
| | | | | Change-Id: I4df5650d4a90dfa220b239e431f408bbff34e825 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix space shown for already installed componentsNiels Weber2015-01-131-1/+1
| | | | | | | | | | After 71490cfe450165271a78e519d24ed39217bc440e the change in 8382a7e1ee11d7d408177c9d40a12474ff7fdef2 was wrong. Also update comment for requiredDiskSpace() that it only shows additional required space. Change-Id: I2bd12e9632a635b30d14c3655421790d21ea8b19 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Doc: remove "type" from briefs in Scripting APILeena Miettinen2015-01-131-1/+1
| | | | | | | | These are not QML types, but JavaScript objects. Change-Id: Ib50656c764270a1184c74a2c653438a2f42846fd Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Remove country from most translationsKai Koehne2015-01-061-2/+1
| | | | | | | | | | | | | | | If we provide an en_us translation only this won't be picked up by users having configured 'en', or 'en_uk'. This also mirrors the naming of the qt translations. The exception is zh_CN though, because the difference between simplified and traditional characters is big. I'm not sure whether taiwanese people would rather prefer traditional characters or english. For Qt we have both zh_CN and zh_TW, maybe we will get a zh_TW in the future too... Change-Id: I73490337aef8f54da14b6feca3a035e1e405d65b Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Don't remove "script" value from autoDependenciesJarek Kobus2014-12-091-7/+1
| | | | | Change-Id: I7f7c0df11f9a1a296d1514b7689daf317d9a45b7 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Remove unneeded member holding virtual childrenjkobus2014-12-091-4/+4
| | | | | | | | | Virtual children always lie after the non-virtual ones inside allChildren list anyway. Change-Id: Iefccabfc1d15f41a7e211b8fe4f518d1948013b1 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Remove unneeded Kind enumjkobus2014-12-041-6/+3
| | | | | | | The DirectChildernOnly value was not used at all. Change-Id: I9e6d4160f0964e807a34049b899bb4288b262b40 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Remove unused code.jkobus2014-12-031-23/+6
| | | | | | | | Dead since commit 5359d0a3e8d84699701e73d3d15163fb20200bb0 Change-Id: I40af485876d70a6a68406eafe14258b185e16323 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Add ComponentChecker class for verifying the internal state.jkobus2014-12-011-1/+0
| | | | | Change-Id: I3361ad6c51d5a0f3beee049237e6b370d57a8f0d Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fixed wrong fix in 19549b3b0f224db1bcf164139533473486d61b1cNiels Weber2014-12-011-3/+3
| | | | | | | Some places needed scScript, not scScriptTag Change-Id: Ib18e3b1c2c446765120da5ebe117874bcd36e0a4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Fix ambiguity for scScript symbolsKai Koehne2014-11-281-6/+6
| | | | | | | | | | | | | Commit 41e58eb4a481 introduced a new definition of QLatin1String scScript as "script", which clashes with the definition of scScript as "Script" in component.cpp. Resolve this ambiguity (which is not detected by the compiler) by renaming one instance to scScriptTag. Task-number: QTIFW-590 Change-Id: If1e108270509f7a1a0066d19e09a9f3699f0d19c Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Introduce scScript constant and use whenever neededjkobus2014-11-181-3/+3
| | | | | | Change-Id: Icdbd110f4778bbf8fa75cf54a564fcd0bc8f7a49 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Add LGPLv3 as new licenseKai Koehne2014-10-161-14/+7
| | | | | | | Change-Id: I61158f956894e209dccf83744b4753774676099d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
* Fix c++ documentation creation. Add, fix inline documentation.kh12014-10-081-56/+82
| | | | | | Change-Id: Idd6805afbf5736eebf03c2d1ca6dae272c519634 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* Add small auto test.kh12014-09-221-0/+3
| | | | | | | | | Also fix the implementation for append component in updater case as well as adjust the documentation. The returned list contains all components independent of the run mode. Change-Id: I36523e13c33b9ca6de6e02fcc31e0f0d6606f65b Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* Fix disk space checking for updatesNiels Weber2014-07-231-1/+1
| | | | | | | | | | Makes more sense to check only the space required by components that are about to be installed, not that required by all components already installed as well. Task-number: QTIFW-434 Change-Id: I7b6b5425d5c77b50f1277855e6744596d06b44bc Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Rename pathes -> pathsjkobus2014-07-031-5/+3
| | | | | | Change-Id: I9ad2e5eba7df180dec63ec171d5260c01d9715b2 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Enable QStringBuilderKai Koehne2014-06-191-4/+8
| | | | | | | QStringBuilder improves the speed of string concatenation a lot ... Change-Id: I9dedf7c3335ebf4a9194e837f9eb8135fae11356 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Replace client-server classes and update implementations.kh12014-06-031-2/+2
| | | | | | | | | | Remove superfluous file engine tests. Introduce auto test for newly added client server classes. Fix some wrong implementations serverside for settings array handling and broken arguments in process wrapper. Replace all other parts that with new implementations. Remove now unused classes. Change-Id: I6f9e836993096a2c2c06b06f2b06d7aa4b287e56 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Replace script with js engine.kh12014-06-031-26/+23
| | | | | Change-Id: Ic9c88e27dca1e936ba09a3776df3df7ec166c606 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Cleanup to support Qt5 only.kh12014-06-021-9/+0
| | | | | Change-Id: Ib8f61229ce2f07e52c22a15e10dc817aca860ead Reviewed-by: Niels Weber <niels.weber@digia.com>
* Fix component still visible after it's set "Virtual".kh12014-05-161-0/+5
| | | | | | | | Task-number: QTIFW-466 Change-Id: I6a5e4d0d20703e2d4e867bb2619c82dac0b8a64c Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* Adjust ProductKeyCheck API. (in preparation for multiple pages)kh12013-11-251-1/+1
| | | | | Change-Id: I69d0fc9842df7fb564db57067da5f40e002b61de Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Merge remote-tracking branch 'origin/1.4' into 1.5Tim Jenssen2013-11-061-11/+10
|\ | | | | | | Change-Id: I2725f9bacbe04240dc3f97062c5ebc50884822c8
| * Restart on the wizard needs to cleanup component left-oversTim Jenssen2013-11-061-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - use two different script engine instances - one which lives from the beginning -> the controlScriptEngine - the other one which will be reset if there are some new repositories loaded - now the core has a pointer to the gui object, but it should only be used by the script engine so a QObject type should be enough - engines are deleted as QObject children from the PackageManagerCore - registered downloaded archives are removed Change-Id: I60a4a32fb2e409059839ec11b10c57357454f57a Reviewed-by: Michal Klocek <michal.klocek@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Merge remote-tracking branch 'origin/1.4' into 1.5Tim Jenssen2013-10-231-0/+3
|\| | | | | | | Change-Id: Ib2d382d1aa398b642dc15f4df7c03b19bf638546
| * Fix not moving uninstallation progressBarMichal Klocek2013-09-171-0/+2
| | | | | | | | | | | | | | | | | | | | Set 'component' name value for minimalprogressoperation. Wihout the value sortOperationsBasedOnComponentDependencies puts the operation to execute as the last one. This creates 'freeze' of uninstallation bar Change-Id: I3b894b2c48ed5008d1d265084451da6fc4e3ef86 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
| * Minor. Fixes unregistered type warning.Michal Klocek2013-09-131-0/+1
| | | | | | | | | | | | | | register QList<QInstaller::Component*> Change-Id: I1329ccc9c7ad3405b3a995fb40cc77688953744a Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | Merge remote-tracking branch 'origin/1.4'Tim Jenssen2013-08-261-15/+18
|\| | | | | | | Change-Id: I9ee4395291754fd5a56555e1dd974df19ee39376
| * Display release date in Updater and PackagemanagerNiels Weber2013-08-191-0/+3
| | | | | | | | | | | | | | | | Task-number: QTIFW-25 Change-Id: I8c4d4ac3983b40afd3072fa36dec348b9c67f1d0 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
| * Fix update component selection shows wrong package sizes.kh12013-07-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTIFW-302 During the update of KdTools we removed a bit to much code, so the compressed/ uncompressed size was never passed to the component. Now we keep and set it properly again. Force an update of the uncompressed component size once we have calculated all checked components. Change-Id: I12a796b543bbacdef4fbbdac10ff1103612c4c61 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
| * add component name to operation debug outputTim Jenssen2013-07-261-1/+1
| | | | | | | | | | | | | | | | | | - set the component name to every operation which comes from a component Change-Id: I3e4a1ab2896f7b469fe6606c7e89127c3d6fbc43 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
| * rename operation to operationNameTim Jenssen2013-07-261-12/+12
| | | | | | | | | | | | Change-Id: I6e8f87b40f0bac3a6e50b923cf260f721abc9e07 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Remove deprecated Qt specific operationsKai Koehne2013-08-121-2/+3
| | | | | | | | | | | | | | Change-Id: Iac895970420cfe1d70b1b0fde5f5a7c33dd1bbb0 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Merge remote-tracking branch 'origin/1.4'Tim Jenssen2013-06-271-4/+17
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: installerfw.pri tools/binarycreator/binarycreator.cpp tools/common/repositorygen.cpp tools/common/repositorygen.h tools/repogen/repogen.cpp Change-Id: I97767b2e4ef9b7afd5ce368d99c6a7d38dfbd947
| * Implement dedicated translation settings support.kh12013-06-261-3/+16
| | | | | | | | | | | | | | Change-Id: I41dd23f01e9b511c217fee7f736d9187b8a8623a Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
| * fix designer warningTim Jenssen2013-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | - MessageBoxHandler::currentBestSuitParent() is a QWizard in most cases and then it tries to add QWidgets to it, but it allows only QWizardPage - this results in a memory leak of the translatewatch objects inside the loader, but needs to be fixed in the QUiLoader see QTBUG-31818 Change-Id: I67b0cc78c3843d4bbe70f015a63b5c26bb7f9e2c Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* | Do not use don't, can't ... in outputKai Koehne2013-06-201-3/+3
|/ | | | | | | | | | Don't, Can't, etc abbreviations are used in informal speech. This is okay in code comments etc, but user output should use the correct, non-abbreviated terms. Change-Id: I53c0dfa91596c151bfa7ef7b65f57d5084ceccde Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>