Fix null pointer exception in silent modeRunning in silent mode (using gui.setSilent(true) in a controller script)
QApplication::activeWindow() returns a null pointer as no application window
has the focus.
Change-Id: I440746b540110ebf336b6078b87b250660ee95be
Task-number: QTIFW-764
Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Fix translations README file to correspond how language can be changedChange in QTIFW-390 caused that LANG cannot be used anymore in Windows and
Linux to change the language. Instead LANGUAGE should be used in Linux and
system settings changed in Windows
Change-Id: I2fa6881652e31836d85e2b7442a39a418654ee80
Task-number: QTIFW-791
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Fix scriptengine autotestWas failing in Windows because NativeSeparators was not taken into account
when verifying the error message
Change-Id: I79c17ad91875918501d84b102d16f84bb2008038
Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Allow to use the stylesheet to customize UINow 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.Change-Id: I2d79ab4094cb9706287d44160543c19b35a66c95
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Fix errors when running updates in a directory requiring elevationisWritable() is not a reliable way to check for permissions on Windows.
Instead, just try to create a file.
The alternative would be to set the magic qt_ntfs_permission_lookup
variable to 1. Anyhow, this might slow down things and cause other
regressions ...
Task-number: QTIFW-746
Change-Id: I1b5637670bfcfe29966f0545ce2c6b1f663a9738
Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
Re...
Document installer.components() restrictionsIt'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: Fix the function name in Controller Scripting page.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>
Fix usage of system proxy with credentialsSo far we've been using the entered credentials only for custom
proxies on Windows and OS X. If one selected 'System Proxy' we asked
or the credentials, but tried again without setting them.
This fixes a regression introduced in 2.0, where we started to
interactively ask for credentials.
Task-number: QTBUG-46547
Change-Id: If059a9c68a0976db0453abdc795d9546c4b3aa4a
Reviewed-by: Niels Weber <ni...
add silent modeAdd possibility to run silently without a gui. Silent mode can be
enabled in a controller script using gui.setSilent(true).
Change-Id: I5c5d0cc2be734e8e447edfe4e71106fe08f87188
Task-number: QTIFW-166
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Make the installation relocatable (with some limitations).Replace the install path with a constant that's updated while
loading the stored configuration and operation values. Dynamic
variables now need to be set after reading the .ini file, cause
there we store the values we found during installation. Makes
an installation relocatable, though with some limitations:
* Uninstaller entry might break on Windows
* Start menu sortcuts might break on Wind...
Rework handling of repository testing.- Show message box on error/success.
- Show informative text only if necessary.
- Add option to enable/disable repo after test.
Change-Id: I5608aa1c94f804db1754c9f789697eab614b21c6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Make use of the new varadic template feature + cosmetic changes.Change constructor to take the a package manager argument. Add a
package manager member to the operation. Remove setter function.
Change-Id: Iffb860e24089beb6496ac4ee479d547a29463728
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Add factory auto test. Update template parameter + documentation.The create function cannot be documented properly, cause qdoc
does not understand the ellipsis(...) operator as of right now.
Change-Id: I6569372ed37621eeaaa7a41ea49aa795676ca65b
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Fix build on WindowsFix breakage introduced with b2a65ce68
Change-Id: I587e9c7d681e8197fa0c967441b52ef58cfe23e6
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Sanitize QDebug outputPrefer using the stream operator logic instead of using
QString::fromLatin1. Add a noquote() where a QString should be printed
without any quotes/escapes.
This also fixes the tests with Qt 5.5, where QString's are further
escaped.
Change-Id: Ie3afd14b9355101d3c0b52f30f66ec759c76526c
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Implement repository testing using our task classes.Motivation is to get rid of the KD(}Downloader classes.
Change-Id: Idab1b3b56c2a879e1076e9f400ccec92a4484197
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Fix canceling the download done by an external call.Fix canceling the download on blocking connections without
events, it will not trigger the Downloader::testCanceled().
Change-Id: Ia74c70cb1ab98189872d39feb1b9ab47f3ccbd22
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Print Qt version in verbose outputHelps diagnosing whether an error is due to bugs in the Qt version.
Also remove the quotes.
Change-Id: I7d85094e19d7d2a695ea4ac7be2006673ffa17e2
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Unify handling of translationsMimic the logic implemented in installerbase/QTranslator::load() by
- using QLocale().uiLanguages()
- splitting up the locales into candidates (first en-US, then en ...)
- implicitly assuming the default is English
Task-number: QTIFW-390
Change-Id: I294288d5fc739ebf12c93a0e1a43d613b3834721
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Init all components with proper install actionTask-number: QTIFW-727
Change-Id: Iae9d232310370fefc0c9dca771e6b2cca6b5b433
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Unify translated error messages* Enclose file paths in ""
* Localize file paths with QDir::toNativeSeparators.
* Make sure sentences end with a '.'
* Append error details always by ':', e.g.
tr("Failed to copy file '%1': %2").(...)
* Use 'directory' instead of 'folder' everywhere
Change-Id: Ie045f429f72ad5045c96537465c5fb9d2e99d250
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Follow description on MSDN to implement time utils.Task-number: QTIFW-445
Change-Id: I8c3bc221f57043cc876f1927edf0d591303b5687
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Fix missing operation 'installer' value and update documentation.Commit 478a8a1db3eed2 was done under the assumption that after
UpdateOperation::fromXml(...) existing values are still set.
That is wrong and we have to set the 'installer' value again.
The same commit was trying to fix the empty 'installer' value
in the operations destructor, though the value got removed in
PackageManagerCore::writeMaintenanceToolBinaryData() already.
We now skip it once we w...
Fix usage of Lib7z::createArchive(), do not use static.Change-Id: I749fefeafc924540a8c6119f669685895a69e07d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Convert to Qt 5 connect syntaxConvert to new signal/slot syntax where it does not make things more
complicated: connections where the signal or slot is an overloaded
method, or where the receiver method is not in a QObject, are left alone.
The new syntax allows compile-time checking of the connection.
Change-Id: I2cc3c93b9812797bd67f64a8728569491eeec668
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Rev...
Remove %0 from tr() callsThe placeholder of the first argument to QString::tr() is %1, not %0.
Change-Id: I69fcddb42ddbfda27dfb4430f03ebef156280c64
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>