Commit Graph

14 Commits

Author SHA1 Message Date
hjk
fe7d6f0def Utils: Drop QProcess specific parameters from QtcProcess::finished()
Mid-term plan is to concentrate on use of QtcProcess::result()
instead which is a bit more system-agnostic.

There's quite a bit of potential for downstream cleanup by
re-using QtcProcess::exitMessage() now.

Change-Id: I3806b3f5933d96e64b7cfb18cc6c52823fddcbcd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-14 13:31:05 +00:00
hjk
d5ff8b1c24 Remove some redundant uses of QtcProcess::exitCode
Change-Id: I0dd60ec9c8774fe2ec667695ee57644d2d6cf1d6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-06-03 10:33:57 +00:00
hjk
08040e4e94 Utils: Move QProcess base to QtcProcessPrivate
Change-Id: I4c6811d42e051fadfcf32edb664ff3bc09e692e6
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-06-02 13:21:08 +00:00
hjk
dcba96d16e Utils: Copy some SynchronousProcess function to QtcProcess
Start using it in Utils::Archive.

The idea is to merge SynchronousProcess into QtcProcess (or avoid its
use) to have fewer classes to make "remote-aware".

Change-Id: Ieb08f6f66eab63fd058b75e3bafa79bfbf140387
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-04-30 09:16:28 +00:00
Thomas Hartmann
c22ed5528d Add support for powershell Expand-Archive for archives
This will work with any Windows 10 installation.

Change-Id: Ia7ca25a5ba4e199ccfc37138e228c4d56f0f8a6a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-02-23 08:03:52 +00:00
Eike Ziller
0238bff7d5 Plugin install: Make 7z verbose
Change-Id: I1f2dbb607f8c38018f6ee8631539caef1213ee8f
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-25 06:58:22 +00:00
Eike Ziller
028c0b1cdd Plugin install: Fix crash on cancel
When the process is aborted, both errorOccurred and then finished is
sent. Because of the combination of deleteLater and QueuedConnection
this leads to m_process being already nullptr when finished is sent, so
add some guards.

Change-Id: I446114176f8fa5934b411b39d77c97d6267303fa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-23 13:48:02 +00:00
David Schulz
5bd0894813 Utils: Fix compile on unix
amends 72b35aa12b

Change-Id: I934ef8420b998db367f004d2f58782abdc843af9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-16 08:36:27 +00:00
David Schulz
72b35aa12b Utils: check windows registry for archive tools
Change-Id: I2acff0347a0bd04a808b5f4a0049263168e11f51
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-16 07:40:43 +00:00
Tobias Hunger
630f43c02d Fix build: Utils/archive.cpp needs to include QTimer
Change-Id: I99f15e6bf2f0879b7cd0f6d859174c95299e4f93
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-15 09:00:26 +00:00
Eike Ziller
18ee72ac3f Utils/Archive: Add simple async API
So we can integrate it deeper into the plugin wizard.

Change-Id: I7f7a9eb8e07d3eeab6a4ecf92161f7d04f5fa5c2
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-15 07:45:10 +00:00
Christian Stenger
304a417de0 Utils: Fix compile with gcc 5.3
Amends 26c26c0dad.

Change-Id: I019759179626df45a31492846e05b1dca55f4fea
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-02 11:45:31 +00:00
Eike Ziller
26c26c0dad Support more file formats for unarchiving plugins
Use tar, or cmake -E tar, for .tar, .tar.gz, tar.xz, tar.bz2.
Use 7zip for 7zip.
Zip is supported by unzip, 7zip, tar, and cmake.

Change-Id: I799c3211325398add150644b57c32b7ad5bb8903
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-29 13:17:02 +00:00
Eike Ziller
cc8148606a Move unarchiving code out of the plugin dialog code
Change-Id: I2b6510ae527d57a06692336cfd7b0434cdcbda51
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-29 12:39:49 +00:00