summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Update translations for a number of languagesAndy Shaw2019-03-016-7342/+5361
| | | | | | | | The translations were contributed from an external and are for Spanish, French, Italian, Japanese, Polish and Chinese. Change-Id: I737c88e727c61fb358ab2cf99ce4b80a89817311 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix RepositoryUpdate functionalityKatja Marttila2019-02-201-0/+2
| | | | | | | | | After adding the categories, RepositoryUpdate got broken. This commit fixes the issue Task-number: QTIFW-1300 Change-Id: I01671a547712088d344852dc169661ac9587894e Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* Fix essential updateKatja Marttila2019-02-191-3/+3
| | | | | | | | | | | | Essential components should be updated before any other component is updated/installed. This did not happen always as when one essential component was found and that did not have any updates, the search was stopped and normal install flow was continued. Fixed so that all essential components are checked if they contain update. Task-number: QTIFW-1299 Change-Id: I754c50f672dd5f13105c710522603e90799d61c5 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Change quantity information unit textKatja Marttila2019-02-079-104/+104
| | | | | | Task-number: QTIFW-1288 Change-Id: Ie5a6fdc27bb5eb96b080638839ee09f06370848e Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Write desktop entry and items to the correct foldersRainer Keller2019-02-042-11/+5
| | | | | | | | | | | | Data should not be written to directories in XDG_DATA_DIRS. The spec state that files should only be writen to the directory in XDG_DATA_HOME. Change-Id: I755963fa2f70d03c77d7beec0e3f87accde925d0 Fixes: QTIFW-1269 Reviewed-by: Nikos Chantziaras <realnc@gmail.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Add tooltip for categoriesKatja Marttila2019-02-044-3/+25
| | | | | Change-Id: I852a236bc2cff0d532a825581e3da4dcdcbbab90 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Minor changes to category namingKatja Marttila2019-02-042-2/+2
| | | | | Change-Id: I7459535dd49047f9bf2d56a6598e9e631723444f Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Reset error before every new metadata jobKatja Marttila2019-01-281-0/+2
| | | | | | | | | | | Installer crashed when invalid QBSP package was selected and after that new categories were fetched. This was because the error message was not cleared, although the metadata job was succesfull, installer thought there was still problems causing it to eventually crash. Task-number: QTIFW-1272 Change-Id: I8a5a6fd8568dcabd9c857c462b83d0e0b77669f8 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Fix tmp file removalKatja Marttila2019-01-223-15/+7
| | | | | | | | | | | | | | | Tmp files were not removed when all or these were met: 1. Using Linux 2. Installing to a folder which needs authorization 3. Installing a component which has no metadata Tmp 'remoterepo-XXXXXX' is created before acquiring authorization. In previous version if above list was met, a tmp folder was created inside remoterepo-XXXXX after authorization leading to permission error when deleting the folder. Task-id: QTIFW-1268 Change-Id: I937fe3ce13440c817d1264c80ad060dfc966e456 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Fix build error in macOSKatja Marttila2019-01-181-1/+1
| | | | | Change-Id: Ib1e3cb1cead8a856d74ef23808072a085e4d268d Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Fix QWindowsPipeWriter errorKatja Marttila2019-01-171-1/+2
| | | | | | | | | Read/write operators were not in sync causing a write fail in QWindowsPipeWriter. Task-id: QTIFW-1254 Change-Id: I0c2ead9c6af9ea0459f7ed55b09540c50cc60a6c Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Allow unstable components when categories are usedKatja Marttila2019-01-171-0/+1
| | | | | | | | | | | | | | | Unstable component means that the component has unresolved dependency, script error etc. Installer cannot recover if we are already in component selection view and fetch new packages from a category which has unstable components if AllowUnstableComponent is false. Fixed so that allowing unstable components is forced when categories are used. Ideal solution would be to recover and rollback the install tree if unstable components are found but that requires huge changes to IFW. Task-id: QTIFW-1257 Change-Id: I786df1b8b54c238f50e15b94a06005e244417c97 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Add possibility to preselect categories in config.xmlKatja Marttila2019-01-172-3/+8
| | | | | Change-Id: I280247cb5155622ade604074c5a71a276b0fb629 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Fix Next button state in component selection viewKatja Marttila2019-01-161-2/+5
| | | | | | Task-number: QTIFW-1261 Change-Id: Ied506e68d430eef94d482ee2390aa5a8acc3b36e Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Organize categories alphabetically to ComponentSelectionPageKatja Marttila2019-01-164-5/+25
| | | | | | Task-number: QTIFW-1264 Change-Id: I14a54082c30107d9242632a69d73a637803c6f2d Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Revert RemoteFileEngineHandler removalKatja Marttila2019-01-152-0/+5
| | | | | | | | Seems this is used for gaining admin rights in Windows Task-id: QTIFW-1254 Change-Id: Ia169200ead7a95d152378ba68ba9b8ad3054d5bb Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* Do not allow unstable component installKatja Marttila2019-01-111-1/+6
| | | | | | | | | | Unstable component was installed if component had unresolved dependency and was fetched from category. Fixed so that unstable component which is not already installed gets never selected in restoreCheckState(). Task-id: QTIFW-1265 Change-Id: I04176d095f6d79b2aabae73b490adc36706f597a Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Hide category widgets in updater modeKatja Marttila2019-01-093-1/+13
| | | | | | | | | | We don't need categories in updater mode, the categories were accidently visible if we first visited the 'Add or remove components' page before going to 'Update components' Task-number: QTIFW-1259 Change-Id: I945c2b7e8cdfbb8bfeefbfa0ed07222189573179 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Fix ability to select node which children are unstableKatja Marttila2019-01-091-1/+1
| | | | | | Task-number: QTIFW-1260 Change-Id: If806f62382eb430c858cb483e3bd25562df7b21a Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Replace 0 with nullptrKatja Marttila2019-01-0941-168/+168
| | | | | | | Prevents a lot of warnings seen in QtCreator Change-Id: I63bf95aca68a04fc9fd0eecbe29c63e9b9c47efd Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Merge "Merge remote-tracking branch 'origin/3.0' into master"Katja Marttila2018-12-1819-61/+63
|\
| * Merge remote-tracking branch 'origin/3.0' into masterKatja Marttila2018-12-1019-61/+63
| |\ | | | | | | | | | Change-Id: I73cb43e090c6ff34f1ceb774490d01818465e2e0
| | * Fix 'Bad allocation' error in Windows3.0.63.0Katja Marttila2018-12-0511-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to bug in QTextDocument (QTBUG-65865), installer will crash if it will write a lot of logs to 'Details View' in 'PerformInstallationPage'. Fixed so that instead of writing all extracted filenames to log, write only the name of package which is extracted. This will reduce the huge amount of log written and thus prevents the 'Bad allocation' crash. Task-number: QTIFW-1242 Change-Id: I98ff0df25bcc10d0f7bb79d6c4010665b5e2ac51 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
| | * Remove 'Your install seems to be corrupted' messageboxKatja Marttila2018-11-061-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Messagebox is replaced with log. The critical messagebox is a bit harsh as you can continue using the installer despite of the 'corrupted install' message. 'Your install seems to be corrupted' can happen for number of reasons: the installer for some reason was not able to write the needed information to components.xml or maintenancetool.dat. Reason could be that the installer was forcely interrupted or crashed during write, or the files cannot be opened for write. 'Your install seems to be corrupted' occurs if components.xml contains an element which has no operations in maintenancetool.dat or vice versa. If you get an error "Critical: Operations missing from installed packages ("missing.package.name"), remove the package from components.xml to get rid of the log. Error: "Critical: Orphaned operations("package.name")" you can ignore Or you can install the package again if it is still found from repositories. Task-number: QTIFW-1003 Change-Id: I02c0a945ca3ce30ef4b0a80190d91638ab54c6bf Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
| | * Register virtual component for uninstallKatja Marttila2018-11-062-0/+16
| | | | | | | | | | | | | | | | | | Task-number: QTIFW-1102 Change-Id: I5033f095eece1f1e588c00f518cf7d9d046c2003 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
| | * Optimize ExctractArchiveOperation::fileFinished()Morten Johan Sørvig2018-11-052-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code was spending a lot of time detaching and copying the file list, due to exporting it via the setValue() call on each file finished iteration. This was causing the install process to slow down, and also made the UI freeze, giving the impression that the install process had stopped. Add the file paths to a local list instead, and then call setValue when file extraction is complete. Profiling shows that the installer now spends 95% of its time extracting files on the ExctractArchiveOperation, thread and 5% on the main thread. Fixes: QTBUG-51337 Change-Id: Ieb4c44c03cb28eb46928730ca023f7419d72e45b Reviewed-by: Katja Marttila <katja.marttila@qt.io> Reviewed-by: David Faure <david.faure@kdab.com>
| | * Do not reset core data values in restartKatja Marttila2018-10-165-29/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not reset core data values as that removes all data set using setValue() which are needed. Restart is called when pressing 'Restart' after maintenancetool finish page or when changing settings from Settings Dialog. Task-number QTIFW-504 Change-Id: I0713b0371811957b93623433d26f0b10e4c8fb12 Reviewed-by: Janne Anttila <janne.anttila@qt.io> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* | | Remove unused variableKatja Marttila2018-12-182-5/+0
|/ / | | | | | | | | Change-Id: Ie9fc97244b10e821965ac42ce3c9ab3720aa3d00 Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* | Fix wizard's maximum sizeKatja Marttila2018-11-132-0/+10
| | | | | | | | | | | | | | | | | | | | User can set height and width for wizard in config.xml. If the given dimentions does not fit to the screen, wizard was clipped and buttons were of the screen. Fixed so that the screen size cannot be exceeded. Task-number: QTIFW-1016 Change-Id: Iab6970d4203fc1271b93475aec71c946d0508653 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Do not compare empty target to QDir::root() or QDir::home()Katja Marttila2018-10-291-1/+1
| | | | | | | | | | | | | | | | Comparing empty target will cause 'Empty filename passed to function' warning in unix. Change-Id: I2ee1490ef342031703638c201b5e2d6d745a1c98 Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* | Refactor component selection pageKatja Marttila2018-10-235-452/+573
| | | | | | | | | | | | | | | | | | | | | | | | Component selection page has a lot of widgets compared to other pages so moved the implementation to own file. Also fixed the following issues in component selection page: 1. Fixed crash when there were no categories and QBsp button was pressed 2. QBsp button opened multiple dialogs if next/back buttons were pressed 3. Made progressbar use the entire vertical space Change-Id: I30cf1599ecb06a633719622427855a57696d5987 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* | Merge remote-tracking branch 'origin/3.0' into masterKatja Marttila2018-10-105-47/+68
|\| | | | | | | Change-Id: Ifaa114464151f5ed84ce47a3368c1521eb17a0be
| * Fix maintenancetool writing in WindowsKatja Marttila2018-10-041-31/+41
| | | | | | | | | | | | | | | | | | | | | | In Windows, maintenancetool is written using vb script. Installer assumed that extension .vbs is always executed with script engine which is not always true. In such cases create own extension (.qtInstaller) which can be run with script engine Task-number: QTIFW-1096 Change-Id: Ic52427e778fc7f3a540256e16b9e67b728c70d41 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
| * Fix performOperation() documentationKatja Marttila2018-09-261-1/+4
| | | | | | | | | | | | | | | | Task-number: QTIFW-1034 Change-Id: I56164e3d5c355bd6a02f9a706b3f375d19d63afb Reviewed-by: Niels Weber <niels.weber@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
| * Fix environment variables for XDG paths not being recognizedRainer Keller2018-09-242-7/+6
| | | | | | | | | | | | | | | | | | | | A QProcessEnvironment was used, which is empty by default. Instead of using QProcessEnvironement::systemEnvironment I switched to qgetenv(...) . Task-number: QTIFW-1043 Change-Id: I0bc31641c8ac175254664c61cdb24bf9051d8345 Reviewed-by: Niels Weber <niels.weber@qt.io>
| * Delete directory if there are readonly filesKatja Marttila2018-09-241-8/+17
| | | | | | | | | | | | | | Task-number:QTIFW-637 Change-Id: I38b947b10517de68aee5619915886c719cd5e2bf Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Add objectnames and rename variablesKatja Marttila2018-10-091-34/+37
| | | | | | | | | | | | | | | | | | | | We have decided to rename the archive as category. We already renamed some of the classes etc. but some variable names were still with the old name. Rename those to avoid confusion. Also add some object names so the elements are available using control script. Change-Id: I9ea50805a04acbd982eb742c906100afed86567a Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* | Add signal to inform about unstable componentsKatja Marttila2018-09-275-9/+21
| | | | | | | | | | | | Task-number: QTIFW-1197 Change-Id: If9d7941f4c7bfc478daa83dcd73dfa71c9163561 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Allow maintenancetool signing in WindowsKatja Marttila2018-09-262-33/+32
| | | | | | | | | | | | | | | | | | | | | | | | Maintenancetool signing was broke as installer modified the maintenancetool binary. Fixed so that maintenancetool is not modified, instead the needed data is written to a separate installer.dat file. Installer.dat is written and needed only after install so we can continue using and deploying only one executable. Task-number: QTIFW-667 Change-Id: I30bf2ebe81d7c7146a78840d234c5c813f8e1da5 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* | Enable usage of categorized repositoriesKatja Marttila2018-09-2614-75/+606
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows to categorize repositories in component selection page. Using categorized repositories will by default show only uncagetorized repository items in tree. Selecting one or several categories using checkbox will update the treeview to show all selected categorized repository content. Repository's metadata is fetched only after the category is selected. Categorized repositories can be defined in config.xml: <RepositoryCategories> <RemoteRepositories> <Displayname>category 1</Displayname> <Repository> <Url>(url)</Url></Repository> </RemoteReposiories> ... <RepositoryCategories Change-Id: I6eae9daee70b1afa322144d52c11f25d0b655ebf Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Merge remote-tracking branch 'origin/3.0' into masterKatja Marttila2018-09-176-737/+624
|\| | | | | | | Change-Id: I77d539e079f3c7d61c4a965b222f4e02c35b1108
| * Fix typo in French translationThomas Quinot2018-09-171-1/+1
| | | | | | | | | | Change-Id: Ib166c9730c54bff58f19323148a1950e385a18b2 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| * Update german translation fileKatja Marttila2018-09-131-731/+606
| | | | | | | | | | | | | | Task-number: QTIFW-1084 Change-Id: I023180400efd73655df004df417d9cf1ed86f23e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Niels Weber <niels.weber@qt.io>
| * Fix minor translation stringsKatja Marttila2018-09-131-1/+1
| | | | | | | | | | Change-Id: I059903b407a44f07b16af29fb5f0973395ee1f50 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * Prepend file:// on Windows when calling QJSEngine::evaluate()Andy Shaw2018-09-101-1/+10
| | | | | | | | | | | | | | | | | | | | Due to a bug reported at QTBUG-70425, it is necessary to ensure that QJSEngine will see the filename passed in as a valid URL. So we prepend file:// for those cases to ensure qsTr() will find the right context when looking for translations. Change-Id: Ib38b1f8467de78ec82c2c6c6909487f3a06c09bb Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| * Fix admin query retryKatja Marttila2018-09-051-2/+1
| | | | | | | | | | | | Task-number: QTIFW-988 QTIFW-1173 Change-Id: Ie424f4dcb97236015d4287f1b73baee5ec8477b3 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
| * Fix install fail if there is no metadataKatja Marttila2018-06-121-1/+3
| | | | | | | | | | | | | | | | | | | | Installer was never able to continue from metadata download phase in case there was no metadata in any of the packages. If metadata not found, emit finished signal to continue installation. Task-number: QTIFW-1150 Change-Id: I0d3f8fb147899fff4b1a1cc0c6de7a587aae9053 Reviewed-by: Antti Kokko <antti.kokko@qt.io>
| * Reset meta information download resultKatja Marttila2018-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | As metadata can be downloaded in chunks, there are extra step counter in UI in case there are more than 1 chunk to be fetched. Reset the counter and result in case e.g. repositories are changed from settings and meta information is retrieved again. Task-number: QTIFW-1137 Change-Id: I1bfe06dc0ba375508efb0b6ebe5edce884310ea8 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* | Fix recursive error when there are unstable componentsKatja Marttila2018-09-141-3/+2
| | | | | | | | | | Change-Id: Iecaf849368904a72bae1a1ca6e51b45cfafb54ef Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Add possibility to check/uncheck repositories with one button clickKatja Marttila2018-09-103-2/+40
| | | | | | | | | | | | Task-number: QTIFW-1132 Change-Id: I4d71dedf6f099f8ccc7ecefcfa02cae78d28244b Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>