summaryrefslogtreecommitdiffstats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Introduced gui.setTextItems() methodFrerich Raabe2016-06-151-0/+7
| | | | | | | | | | | | | | This utility function can be used to populate a Qt control which is backed by some QAbstractItemModel with a list of strings. E.g. this can be used to populate a QComboBox or any QAbstractItemView with some items. This is very useful since in many cases, the methods for adding elements to such controls are neither slots, nor marked with Q_INVOKABLE and such unreachable from the script code. Change-Id: I2195f41e53765ef3a798477ed08d8f09ab5c4379 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Make usage of authorization fallback optionalSlobodan Vrkacevic2016-05-181-0/+4
| | | | | | | | | | | | | | | | | | | | Asking users to use the authorization fallback in case of authorization errors might be a bit problematic in some cases. If the users are not familiar with the concept, running: "<installer_exe> --startserver PRODUCTION,{GUID},{GUID}" from command line might be confusing or difficult. Also it might not help at all. So let's make this optional. If the config variable DisableAuthorizationFallback is set to true the installer will not ask users to run the authorization fallback but instead it will abort the installation immediately. In RemoteClient this is implemented by adding a new function called setAuthorizationFallbackDisabled. The init function could be also extend for this but the config settings are not loaded at the time when the function is called. Change-Id: I4baf1dea34c5cc0016e98df47a9492ee1418c5ee Reviewed-by: Katja Marttila <katja.marttila@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Fix path to includes directoryLeena Miettinen2016-05-121-2/+1
| | | | | Change-Id: Idf76961685cdc1c1460f5a3d94b10e2830a1eb35 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Add the Predefined Variables in Component Scripting.Takayuki ORITO2016-05-031-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | Add variables - ApplicationsDirX86 - ApplicationsDirX64 Change that the application directory can be selected on Windows, don't depend on the architecture(32bit or 64bit) of QtIFW. For example: When on Windows(64bit version). - QtIFW(32bit version) - ApplicationsDir -> C:\Program Files (x86) - ApplicationsDirX86 -> C:\Program Files (x86) - ApplicationsDirX64 -> C:\Program Files - QtIFW(64bit version) - ApplicationsDir -> C:\Program Files - ApplicationsDirX86 -> C:\Program Files (x86) - ApplicationsDirX64 -> C:\Program Files Change-Id: Idbc41d6f1ba9d7b0b9a9ff5590d05077662345cb Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Niels Weber <niels.weber@qt.io> Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
* Make communication via installer.execute() Unicode safeKarsten Heimrich2016-03-301-1/+8
| | | | | | | | | | | | | | | | | It was impossible to pass Unicode data safely to a process started via installer.execute(), or to read Unicode data printed by that process safely back in. The reason for this is that the code hardcoded the latin1 codec for converting between strings used in the script interpreter and bytes used by the QProcessWrapper API. Fix this by adding two new optional arguments to installer.execute() which can be used to define the codec to be used for writing to stdin resp. reading from stdout. This defaults to latin1 for backwards compatibility. Change-Id: I290d8d9617b286ef90b2f0a05c6e7a47f6df317f Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Frerich Raabe <raabe@froglogic.com>
* Allow specifying the installer size in 'em' or 'ex' unitsSlobodan Vrkacevic2016-02-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | The WizardDefaultWidth and WizardDefaultHeight configuration settings always expected pixel values. This made the installer look somewhat awkward on high DPI displays, in which case the ratio between the font size and the installer window size was such that the fonts looked very big. Let's fix this by allowing to specify the width/height of the installer using units which are defined in terms of the font size, namely 'em' ("The width of the letter M") and 'ex' ("The width of the letter x"). 'px' is supported as well and means the same thing as not specifying any unit at all: the given size is defined in pixels. We choose to *not* use the font width for 'em' and 'ex' to be consistent with what the Qt CSS parser does (see src/gui/text/qcssparser.cpp), which adheres to what the W3C document at https://www.w3.org/WAI/GL/css2em.htm describes. Change-Id: Iaeb5a29c79d437ef4b956cb318158181f6289ec9 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Add new '--sign' switch to binarycreator for signing OS X app bundlesFrerich Raabe2016-02-181-0/+5
| | | | | | | | | | | | | This patch introduces -s/--sign switches for binarycreator which are only available on OS X. Using these switches, a 'Code Signing Identity' can be configured which should be used for signing the generated .app bundle. Signing the application bundles avoids that Apple's Gatekeeper complains about the application coming from an unidentified publisher. Change-Id: I507c6cac0b99faf19faf48c21e47a2df054b0b11 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Merge remote-tracking branch 'origin/2.0'Iikka Eklund2016-01-2025-90/+76
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: installerfw.pri src/libs/kdtools/kdgenericfactory.cpp src/libs/kdtools/kdgenericfactory.h src/libs/kdtools/kdupdaterapplication.cpp src/libs/kdtools/kdupdaterapplication.h src/libs/kdtools/kdupdaterupdatesourcesinfo.cpp src/libs/kdtools/kdupdaterupdatesourcesinfo.h sync.profile Change-Id: Ifdc8b065f89b7e241bd3788ed79768e21888161f
| * Update documentation for --runoperationKai Koehne2016-01-131-4/+3
| | | | | | | | | | | | Change-Id: I031f3e5ef7f23a92185a6ad35fe9575c06ba3eb9 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
| * Update license headersIikka Eklund2015-12-2925-74/+73
| | | | | | | | | | | | | | | | | | Update existing license headers. LGPL -> LGPLv21. Update copyright year as well. Change-Id: Ie1d71f8c68186b8f625f409ddf94691f178093c9 Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
| * Use QQmlV4Function to correctly get empty parameters from script.Karsten Heimrich2015-11-261-12/+0
| | | | | | | | | | | | | | | | | | By using QQmlV4Function to get the parameters, empty strings passed are correctly kept as empty and not null. Task-number: QTIFW-724 Change-Id: I592e2230e574ba82e765bd0079964db29452b2e9 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* | Allow defining non-checkable itemsKatja Marttila2016-01-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | This change will introduce new element 'Checkable' for package. Setting checkable to false will hide checkbox. Useful if use case is to install one sub item instead of all sub items. Change-Id: I8c731e77353b6da539dddcecdc8495b28ef5f7ea Task-number: QTIFW-773 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* | Implemented installer.readFile()Frerich Raabe2015-12-081-0/+11
| | | | | | | | | | | | | | | | | | | | | | For reading an external file using a specific encoding. This is convenient for having installers show the current configuration (e.g. effective license key) in case the configuration is stored in plain files as opposed to using e.g. the Windows registry. Change-Id: I87f8583b4cb192c4bd8b62a03f292a5cbefd52d8 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Implemented support for creating URL shortcuts on WindowsFrerich Raabe2015-12-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to use the CreateShortcut operation for creating http: and ftp: links, too. This is useful for adding links to online resources to the start menu. The detection of hyperlinks is very simplistic at this point, but good enough many purposes. Change-Id: I80b5eea466a37891cb378eb5c603c08f065bd843 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Merge remote-tracking branch 'origin/2.0'Kai Koehne2015-10-121-1/+1
|\| | | | | | | Change-Id: Ia4c0c6766b52626798197c646043407df8de1fd6
| * Doc: Fix the function name in Controller Scripting page.Takayuki ORITO2015-08-111-1/+1
| | | | | | | | | | | | | | | | Callback was not written in the function name. It is targeted for 'Start Menu Directory Page' section. Change-Id: I8e206caf29865e1e01defddc1fb9ae60c5f85632 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Allow to use the stylesheet to customize UIDenis Shienkov2015-09-281-0/+3
| | | | | | | | | | | | | | | | | | | | Now it is possible to set a stylesheet file to customize the wizard's UI. The stylesheet adds to the config.xml file using the new "StyleSheet" element. Change-Id: I66271f755a0f742e96cf433fe557423a2261e432 Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* | Missed to rename classes and to update docs and tests.Karsten Heimrich2015-09-071-2/+2
| | | | | | | | | | Change-Id: I2d79ab4094cb9706287d44160543c19b35a66c95 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Document installer.components() restrictionsKai Koehne2015-08-201-2/+4
| | | | | | | | | | | | | | | | | | | | It's not obvious for the innocent user that components() are only available once the metadata has been fetched (i.e. not in a control script / component constructor). Change-Id: I033a78442d7e676a8aa662898a897af9e4d0ab65 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Doc: list supported license file formatsLeena Miettinen2015-08-101-0/+2
| | | | | | | | | | | | Change-Id: Ia6762aee85f515528b842fbae7795c62f8836680 Task-number: QTIFW-691 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Merge remote-tracking branch 'origin/2.0'Kai Koehne2015-06-0410-45/+853
|\| | | | | | | | | | | | | Conflicts: src/libs/installer/packagemanagercore.cpp Change-Id: Ie3d94fe3a633e189c260bf20682c00a2bb901bc8
| * Doc: Mention what you can do with a control script early onKai Koehne2015-06-041-1/+5
| | | | | | | | | | | | | | | | Task-number: QTIFW-166 Change-Id: I42ff186b7f4203b6f29685d10136e25089892c4d Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
| * Doc: add docs for devtool2.0.1Leena Miettinen2015-06-011-0/+49
| | | | | | | | | | | | Change-Id: Iadb453a02b331bb2cf9f8f0a4e1fe66052abe264 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
| * Doc: Clarify use of addOperationKai Koehne2015-05-292-9/+23
| | | | | | | | | | | | | | | | Make it explicit that addOperation , addElevatedOperation should be usually called from within createOperations(). Change-Id: Id14339b1259716825a9443cc563449025674976f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
| * Doc: Add a link to QInstaller::BinaryContent docs.Leena Miettinen2015-05-271-1/+1
| | | | | | | | | | | | | | | | And remove the ##TODO Task-number: QTIFW-693 Change-Id: Idaef76e75ffef66b37fdd67e62f0760b7ec263c3 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
| * Fix missing details output in example.Karsten Heimrich2015-05-271-1/+5
| | | | | | | | | | | | | | | | | | | | Commit 17e29fc8d3 introduced a behavior change, the installer.components is no longer a array property, it is now a function returning an array. Update docs. Change-Id: I4fcdee6cff4572012236e1ac0768013a1e5689ac Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| * Doc: update screenshots of Settings dialogLeena Miettinen2015-05-272-0/+0
| | | | | | | | | | | | | | | | | | The Network tab changed, but I also updated the Repositories tab screenshot for consistency. Change-Id: Id6e0ffb6620449724da8093aae9816d4a02f7fe8 Task-number: QTIFW-708 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| * Remove leftover. (signal and documentation)Karsten Heimrich2015-05-261-6/+0
| | | | | | | | | | | | | | Change-Id: Ib735d8e7103ade0a9c31fa3d710542cafae3c8f2 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| * Doc: add docs for PackageManagerCoreLeena Miettinen2015-05-261-0/+733
| | | | | | | | | | | | | | | | | | | | | | Move the scripting API documentation to a separate qdoc file. Where possible (no QDoc errors are generated), only link from the C++ API documentation to the scripting API documentation. Change-Id: I969e9afc5cd45c495e6c517b825abb9a9aabdd82 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
| * Document -static-runtime argument for Qt 5.5 onwardsKai Koehne2015-05-121-3/+4
| | | | | | | | | | Change-Id: Ic26cabbc42aa7247a6078f5fdf26320340a1c461 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
| * Doc: link from C++ API ref to scripting API refLeena Miettinen2015-05-081-21/+30
| | | | | | | | | | | | | | | | Remove duplicated text where possible, and unify the text if it is needed in both files (by QDoc). Change-Id: If0c62a4a4abf6c1f61fd24f7947b9bc9bfb14f63 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
| * Doc: add link to controller scripting topicLeena Miettinen2015-05-081-0/+2
| | | | | | | | | | | | Change-Id: I929ced36d59f52621785e44c7d93fd24f237d590 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
| * Doc: Fix layout issues on the operations tableTopi Reinio2015-05-081-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | Replace a \code block with a monospace \c text, and unintended '\n' sequences with spaces, allowing the text to span multiple lines. These changes make the table more readable by reducing its width and avoiding the creation of a scrollbar. Change-Id: Iff87fe2fe1b017e88395701643d278cb868e7f04 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
| * Doc: fix code snippet in controller scripting sectionLeena Miettinen2015-05-051-1/+1
| | | | | | | | | | | | Task-number: QTIFW-687 Change-Id: I5690e9ebd4b8fae9f3f21b6685bec0d2c2999913 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Implemented xml:lang attribute support for DisplayName tag.Dmitry Mordvinov2015-05-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Components in tree view are often need to be localized. Therefore packages.xml syntax is extended with possibility to specify xml:lang attribute for DisplayName tag (similarly to Description one). Test data extended with root component localization. Added new testcase that changes default locale and checks that loaded component names correspond to hard-coded ones. Docs updated with new feature description. Change-Id: Ic330c3c6684e763eb48a2e99e71784913544e686 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Enable feature live preview of dependenciesjkobus2015-05-071-0/+5
|/ | | | | | | | | This feature is available after setting InstallActionColumnVisible property to true inside config.xml Change-Id: I5071d5c5c4562100a96530c581de01760ca0d2d5 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Fix dubious warning about RequiresAdminRights tag.kh12015-04-271-0/+5
| | | | | | | | | | | | | The tag was added once component script is parsed and we did know that addElevatedOperation is called from script. However, the initial commit 7ccd0acdcf35b957e9e7d04cd81902bac362ad04 did not append the node to the parent package update node. Now we decided to have the option statically and declarative available, so we can remove the warning. Task-number: QTIFW-670 Change-Id: I8cd8f702391d7bf80fc4c42074e1fd6d2d4abc57 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Doc: Remove mentioning of "UpdateAgent"Kai Koehne2015-04-171-2/+1
| | | | | | | | It's the only place we mention an 'UpdateAgent' in the documentation/code. Change-Id: I4e26246d7ecd7c9a81c006fb7448a9f788f7df20 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Document the operation storing mechanism more precisely.kh2015-04-141-0/+9
| | | | | | Task-number: QTIFW-669 Change-Id: I7b4a89f74c0e82ec091876effaedf304de345fbd Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Doc: component.virtualStateChanged() signalLeena Miettinen2015-04-131-0/+6
| | | | | | | | Docs were missing from the scripting API docs. Change-Id: I941e387c4226fae2a4640605299d925b3101bf46 Task-number: QTIFW-655 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: AdminTargetDir element is Linux onlyLeena Miettinen2015-04-131-2/+4
| | | | | | | | In the configuration.xml file. Task-number: QTIFW-658 Change-Id: Ia83649aac14be1d24bc1aa1cfee27da4d335e63e Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* "Selected" property has gone.Jarek Kobus2015-04-101-6/+0
| | | | | | | Please see 5f6afc7d268dd16dd3f28d3579ae9517954a6553 Change-Id: I02a026c19d768b4d9c0c9f179d5738a121f46e99 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Mention compiler requirements2.0.0Kai Koehne2015-04-021-0/+7
| | | | | | Change-Id: Iae3637ea149199f9b152efa4ea27a42bd4581974 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Update system requirementsKai Koehne2015-04-021-2/+2
| | | | | Change-Id: I316a737c8a3763baa3b35646e60a9a2d4b3468b3 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Exclude icu on Linux as well when building Qt.Niels Weber2015-03-181-1/+1
| | | | | Change-Id: I8327acb19e7141750caba882a7748bbf5d70a8ba Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Detail LineReplace documentationChristoph VogtlÃĪnder2015-03-131-1/+2
| | | | | | | | Lines are trimmed before the search. Change-Id: I1abbd0fa4abd105802c75ded80fcc82090e50e18 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Update repogen documentationKai Koehne2015-03-111-21/+25
| | | | | | Change-Id: I098b02f1fc0df4c3e2b09c5f97914be9c479d751 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix embedding of installbase manifestKai Koehne2015-03-111-8/+5
| | | | | | | | | | | | Redefining QMAKE_MANIFEST is currently broken in Qt for newer compilers: The content is not embedded at all if the toolchain supports "embedding". But the hack is not needed anyway: Just disable the Qt manifest magic, and include our custom manifest file via .rc. This way we can also avoid changing the mkspec for embed_manifest_exe, embed_manifest_dll. Change-Id: I5155ddabe17f0b61b2d7b9c5b9cd912ad6c53dfe Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: add links to topics that describe the namespacesLeena Miettinen2015-03-113-4/+28
| | | | | | | | | | | | 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-112-1/+141
| | | | | | | | | | 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>