summaryrefslogtreecommitdiffstats
path: root/src/libs/installer
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't show "safety" space on Ready for install pageNiels Weber2015-03-131-1/+2
| | | | | | | | | | This confused people as it is a different size than what is shown on ComponentSelection page. Change-Id: I3d20250f79b96312bceafb42277452bad7c15465 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@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: add links to topics that describe the namespacesLeena Miettinen2015-03-111-0/+5
| | | | | | | | | | | | In addition to linking to the classes from the top level topic. The namespace topics are generated automatically and list all classes in a namespace with brief descriptions. Add subtitles for listing the classes in each namespace. Change-Id: I0304a86717e018fa3af9f213871f159fdb4ce05c Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: move systeminfo scripting docs to a separate fileLeena Miettinen2015-03-111-21/+23
| | | | | | | | | | Reformat the docs in systeminfo.cpp as C++ code docs. Edit for style. Change-Id: Idec8aaae072a97f889b4d48051341ff766da4247 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Issue a warning when a component depends on auto dependent one.Jarek Kobus2015-03-111-1/+7
| | | | | | | Task-number: QTIFW-510 Change-Id: I57eff879deebf8f31a472a6c66a7e275e34447bd Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@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>
* Fix failing autotestsKai Koehne2015-03-061-1/+1
| | | | | | | | | | | | Commit 603d9bb1f49c58f2 deleted RemoteClientPrivate when the engine is shut down, but the autotests expect to re-use the singleton in the same process afterwards. Fix this by creating a new - clean - RemoteClientPrivate instance instead on shutdown. Change-Id: Iafa701f44c654db2d7e7d838ea7a27e978eb1913 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: move ScriptEngine scripting docs to separate filesLeena Miettinen2015-03-061-313/+0
| | | | | Change-Id: Iac1c810cf52fb4a480ebde956d62830af97b6f8c Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Make sure RemoteClient's localsocket is freed early enough on shutdownKai Koehne2015-03-051-0/+1
| | | | | Change-Id: Idb0afb201f4759696988566f08baeb156c3bb7be Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Simplify KeepAliveObject implementationKai Koehne2015-03-053-49/+19
| | | | | | Change-Id: I5c647510a8aa001183c9bf63ac0e1cae5ec32ce9 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Docs: edit MessageBoxHandler docsLeena Miettinen2015-03-051-61/+161
| | | | | | | | Move scripting docs to another file and add C++ docs. Edit the C++ docs for grammar and style. Change-Id: I2494c573662687cd107916c06e24b0f528596a7e Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: fix a broken \a commandLeena Miettinen2015-03-051-1/+1
| | | | | | | In protocol.cpp. Change-Id: Ib73c055e88bbab8a3e2a7e61bcbddcd8ca42c577 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Restore original behavior for component.installationRequestedKai Koehne2015-02-274-3/+9
| | | | | | | | | | | | | | 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-272-14/+0
| | | | | Change-Id: I739f37bcdbb4ea17e57397e98bc49619938977d5 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: Add docs for QInstaller::PackageManagerGui classesLeena Miettinen2015-02-251-3/+617
| | | | | Change-Id: I2ae0a5b80c22b344d19653bb0dfd6ee71e1b3507 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: add docs for TaskRole, FileTaskItem and FileTaskResultLeena Miettinen2015-02-251-0/+80
| | | | | | | | To suppress QDoc errors. Change-Id: If439fcaff9ca8ac2af1545ebef8d14790b3e3853 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: add docs for ScriptEngine methodsLeena Miettinen2015-02-251-3/+17
| | | | | | | Fix the formatting of a list. Change-Id: I93bcd369f5e685fecacab632b801084199b06d4b Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Do wait an indefinite time for server repliesKai Koehne2015-02-241-1/+1
| | | | | | | | Operations can take sometimes longer than 30 seconds. Do wait forever, provided that the port is still open. Change-Id: If28fab22a42a863d026f2ff04cad5d8d980ea92b Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Remove orphaned fileKai Koehne2015-02-231-530/+0
| | | | | | | The file was supposed to be deleted in 6a38cb8df826216b7d already. Change-Id: I97b166bdc5707f683091065fd8ef47ab8b4cf038 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix handling of incomplete messages in client/server communicationKai Koehne2015-02-207-165/+249
| | | | | | | | | | | | | Do not assume that the socket always contains enough data. Instead, prefix every 'packet' with its size, and back off until the full packet is available. The actual encoding/decoding is done in Protocol::sendPacket, Protocol::receivePacket. To be able to use the methods everywhere, replies are now prefixed by a Protocol::Reply command. Change-Id: I75a89605b2cc3fe2f2f841d8e3159fc8aea65d77 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Use local sockets for client-server communicationKai Koehne2015-02-2014-72/+60
| | | | | | Change-Id: I12bfef671ab31ae9fb8c4bb02776517e7f434d27 Task-number: QTIFW-228 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update CopyrightKai Koehne2015-02-18168-1176/+1176
| | | | | Change-Id: I8dde6629cfd461104364d5cdc255cb54b58283fa Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Doc: add docs for the performinstallationform classLeena Miettinen2015-02-131-1/+69
| | | | | Change-Id: I759a9584abae3293850da18b08a6317810f5ed61 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Doc: fix language and QDoc command issuesLeena Miettinen2015-02-122-19/+24
| | | | | | | | To follow the Qt documentation guidelines. Change-Id: I8f533737b39d7d58645a05b033fc966f70918369 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@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>
* Fix update from 1.6 and earlier to 2.0 installerbase.kh2015-02-061-4/+10
| | | | | | | | | | | | | | The update was broken caused by the attribute rename. We already print a warning and read the old value, though we did not set it for the new introduced tags in case of an update. Thus we where not able to read the .ini file and the values stored, but did fallback to the use the initial values from config.xml. Task-number: QTIFW-625 Change-Id: Iad1c96c690de81c5653864a3777c78bd43007249 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* Fix could not write installer configuration file.kh2015-02-041-4/+5
| | | | | | | | Task-number: QTIFW-621 Change-Id: Iad160efc3c9123476d0fd0d676a0ce751025778a Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Christoph Vogtländer <c.vogtlaender@sigma-surface-science.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Doc: edit docs for the ComponentModel classLeena Miettinen2015-02-041-11/+19
| | | | | | | | | | Add missing information. Fix grammar issues and QDoc command issues. Use the phrase "checked state" consistently. Change-Id: I45f5082bdbdbce933735e902ac24c575a1fc13d3 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* CreateLocalRepository doesn't work on OS X.kh2015-02-041-2/+12
| | | | | | Task-number: QTIFW-622 Change-Id: I0a370801f605a43739ed660afcfe6a4c03f082dc Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Revert "Allow spaces in path by default"Niels Weber2015-02-031-1/+1
| | | | | | | | | The change did the opposite of what it claims. This reverts commit b843bff42705044eb88bc87298873ed6f7a93c55. Change-Id: I79b1527a95ce64472b7cc20bc83649aef1b90127 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Show size in "Programs and Features"Christoph Vogtländer2015-02-033-2/+20
| | | | | | | | | | | Add size as quint32 to always create a REG_DWORD. Calculate size based on installed packages and meta data instead of using the installer binary file size. Change-Id: Id379aafe885d2785251eecf831cb7d07cc44f3d4 Task-number: QTIFW-616 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* RemoteServer: Make sure we don't write to stderrKai Koehne2015-02-021-0/+8
| | | | | | | | | | | | | In adminauthorization_x11.cpp we redirect stderr of the child process to a pipe, but do not read from it anymore after sudo completed. Which means, if the server process continues to write into the pipe it'll block at some point. Avoid this by always closing the stderr handle in production mode. Change-Id: If1e9578f12d7a0f60811f9c2b43cd9c18adfea59 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Set objectName for QThreadKai Koehne2015-02-024-0/+4
| | | | | | | | The objectName of a QThread will be picked up and shown by debuggers. Change-Id: Iabd1006a228a73fff0a9a89bd3d8c1021bab6945 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix use --startclient argumentsKai Koehne2015-02-021-3/+2
| | | | | | | | | So far the arguments to --startclient have been ignored. Change-Id: Ib76b061381a9320e6e4e9e2e970132c2f614aca7 GPush-Base: 92da4093e32040cb7cd7ed5587de78262d825e65 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* RemoteServer: Exit early if authorization failedKai Koehne2015-02-021-1/+3
| | | | | | | | | | There's no point in listening to the socket after the authorization failed. It will then be closed by the client, anyway. Change-Id: I26eb2023e08ac3b16ecb894a89ffa0bfeddc62b0 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Make sure RemoteServerConnection is properly shut downKai Koehne2015-02-023-4/+7
| | | | | | | | | | | QThreadServerConnection is automatically deleted via deleteLater on exit. Anyhow, TcpServer::shutdown() also tries to quit() all child threads by going through the list of children. Making the QThread a child of TcpServer activates this behavior again. Change-Id: If1639ae2c9cd74a83b8ff1814aa2131d9016de14 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Verbose output: Avoid '(:0)' in release buildKai Koehne2015-02-021-1/+1
| | | | | | | | | Do not try to log file, line, function information if it's not available (release build). Change-Id: I1c3348503f08cc57427012ce985277d0e95924b1 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Do not defer deletion of socket in RemoteObjectKai Koehne2015-02-021-2/+1
| | | | | | | | | | | | | The 7z backend can create and close a considerable number of RemoteObjects without ever returning to the event loop. For big archives the socket objects are therefore piling up, slowing down the extraction over time. QTcpSocket::close is documented to close the connection automatically in its destructor, so deleting it instantly is safe. Change-Id: I95323b53e6886a7bc6c0b59dd3c13ade4aa9567c Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Doc: add docs for arguments and return valuesLeena Miettinen2015-01-303-13/+23
| | | | | | | | To get rid of QDoc errors. Change-Id: I4932f1f3ff5fab87eebf24536d63be550582b195 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Doc: edited PackageManagerGui docsLeena Miettinen2015-01-291-5/+6
| | | | | | | Fixed grammar, writing style, and QDoc command issues. Change-Id: Ib2fd4e09793943248a6ec8bc6d73e94fd47b5d59 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Doc: edited binaryformat docsLeena Miettinen2015-01-291-4/+4
| | | | | | | Fixed grammar, writing style, and QDoc command issues. Change-Id: I93e79ad7294651071a2d3ab03cad657da1d23ba7 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Doc: add docs for QDesktopServices JavaScript objectLeena Miettinen2015-01-281-3/+32
| | | | | | | | | Based on Qt 5 documentation for QDesktopServices. Change-Id: Ib1a42505b1c046b5175aae0a76f3c71d58c0e86f Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Make sure component wrapper is not deleted in advanceKai Koehne2015-01-282-11/+16
| | | | | | | | | | Use ScriptEngine::newQObject instead of the stock QScriptEngine one. This one (among other things) sets object ownership to Cpp, preventing dubious "cannot call name on undefined" script failures if the garbage collector runs. Change-Id: Ib3275012d307533c13de3520f4630d1eeee66869 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix the invocation order of entering() and page callbackjkobus2015-01-271-2/+2
| | | | | | | Task-number: QTIFW-620 Change-Id: I1a40aae35dc1c259a96043a1056aa631bf7279b2 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Set correct permissions for ini filesNiels Weber2015-01-266-41/+154
| | | | | | | | | | | This is necessary due to a behavior change in QSettings/Qt 5 that now creates ini files with more restrictive permissions than before. Task-number: QTIFW-589 Task-number: QTBUG-44086 Change-Id: I296ad4b312a933cbda7dd5c1f644294f83e1850d Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Fix deadlock in elevated Settings operationKai Koehne2015-01-261-4/+4
| | | | | | | | | | | There are cases where using the RemoteFileEngine through QSettings will dead-lock. Avoid this by using QSettingsWrapper directly, like we already do in the rest of the code. Change-Id: I2e00e107c5ab471ddd6cd79fed96417bf4351c1e Task-number: QTIFW-618 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Fix a crash in testDynamicPage of scriptengine testjkobus2015-01-231-0/+1
| | | | | | Change-Id: I9fcb599c9b14162d0aa86aad0834737e28203939 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Use a UUID as uninstall registry subkeyChristoph Vogtländer2015-01-233-6/+11
| | | | | | | Change-Id: I365e3bdf529bed7bff526b772d9dec5260d71ba4 Task-Id: QTIFW-615 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Doc: update the Controller Scripting topicLeena Miettinen2015-01-231-1/+1
| | | | | | | | | Fix some style and grammar issues. Add some subtitles and some information. Change-Id: Ibf2a3b4ff2a61782b45d772754859b35c7043192 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Doc: Add docs for QInstaller JavaScript objectLeena Miettinen2015-01-231-19/+38
| | | | | Change-Id: Ied88c365fdbd1cb7fe07d4ed196e7b568f6e892c Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>