summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/plugininstallwizard.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Rename qtcprocess.{cpp,h} -> process.{cpp,h}Jarek Kobus2023-05-041-1/+1
| | | | | | | | Follows QtcProcess -> Process rename. Change-Id: I97235a9a40cb7fd52944515b7ab878d96528f919 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Utils: Rename QtcProcess -> ProcessJarek Kobus2023-05-041-1/+1
| | | | | | | | Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Utils: Rename asynctask.{cpp,h} -> async.{cpp,h}Jarek Kobus2023-05-031-1/+1
| | | | | | | Follows AsyncTask -> Async rename. Change-Id: I37f18368ab826c9960a24087b52f6691bb33f225 Reviewed-by: hjk <hjk@qt.io>
* RunExtensions: Move onResultReady and onFinished into asynctask.hJarek Kobus2023-04-171-1/+0
| | | | | | | Change-Id: I96dbf5b0253251224ae678172cd5fca12b34326a Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* PluginInstallWizard: Use QtConcurrent invocation for async runJarek Kobus2023-03-091-10/+11
| | | | | | Change-Id: I82fad61c765af283e5d5cee4d7262e13a6843a84 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* ExtensionSystem: Remove the IPlugin back pointer to pluginspechjk2023-02-101-1/+2
| | | | | | | | | | | | | The price of having to loop in two places seems small compared to cleaner relations between the classes. There's a new hack in the helpmanager to make sure we aren't looping to often. The hack wouldn't be needed if the (odd(?)) check there weren't there. Change-Id: Ifed50213b2de8feedfb45c185808d163c00c19ca Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Core: Tr::trhjk2023-01-171-40/+32
| | | | | Change-Id: I0064814b0689f0f65072d2b0f60e26162587fd54 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Replace PathChooser::{fileP,p}athChanged signalshjk2022-09-061-5/+5
| | | | | | | | | | | | | | | | | ... by a new PathChooser::textChanged signal. They were both emitted in reaction to the underlying line edit's textChanged() signal. Use 'textChanged()' as name to mimic/match the Qt side. This also makes it more clear on the user code side, when this happens. Some textChanged() consumers should probably use editingFinished() instead, but that's left for later changes. Change-Id: Ib07347f616cbf1c5d09bc2f8671ca860d185d1f9 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Archive: Avoid calling blocking stopProcessJarek Kobus2022-03-251-49/+51
| | | | | | | | | | | | | | | | | | | | Make Archive constructor public. Make the caller responsible for deleting the Archive object. Don't automatially run the unarchive process when constructing Archive object. Provide a start() method, to be called after the caller has connected to Archive signals. Add Archive::isValid() method. Remove Archive::unarchive() gui overload, as it's unused. Make sure we don't leak the Archive object in AndroidSdkDownloader. Change-Id: Idf67262554cdfef50aef4a2234b6a5089110f9a2 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Use FilePath in copy helpershjk2021-08-101-8/+8
| | | | | Change-Id: I81b367a5851c0fbcdf45c63c5536c206845a8337 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Use FilePath in TemporaryDirectory APIhjk2021-07-021-3/+3
| | | | | | | | | | | | This helps to lower impedance in the using code. Even though TemporaryDirectory will very likely always stay on the local host, this is one of the entry points into path related string manipulation that we want to base on FilePath nowadays. Change-Id: I302016b8d65e54df94296659a54a93935d9e4627 Reviewed-by: David Schulz <david.schulz@qt.io>
* All: Replace most SynchronousProcess by QtcProcesshjk2021-06-231-1/+1
| | | | | Change-Id: I0bf22fef2cd4a7297ef5a1e9aa9c3e2b9348ba42 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: add FilePath::(complete)suffixDavid Schulz2021-06-041-1/+1
| | | | | | | The same as FilePath::(complete)baseName avoid some toFileInfo. Change-Id: Id1901ce2a4bef675215a9e020280df1c846df405 Reviewed-by: hjk <hjk@qt.io>
* Utils: Remove CommandLine argument from QtcProcess::run{,Blocking}hjk2021-05-191-1/+2
| | | | | | | | | | | Makes run() more similar to what start() looks like. Also add some asserts to make sure run() and related functions are only called on SyncronousProcesses, as these are currently the only ones where this works. Change-Id: Idee6076c3f40a484db5c17f5bb348698cc83d220 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Merge {synchronous,qtc}process.{h,cpp} file pairshjk2021-05-101-1/+1
| | | | | | | | Mechanical to prepare merging the actual classes. Adapting #includes. Change-Id: I77a2c28129287778bc870c30cb890cd26bc2e62b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/4.14'Eike Ziller2021-02-181-2/+3
|\ | | | | | | Change-Id: I214b8d59e8ff7fe0511cd6116ec7725ddc4376ee
| * Fix installation directory in plugin install wizardEike Ziller2021-02-151-2/+3
| | | | | | | | | | | | | | | | | | | | Correctly initialize the bool variable that decides where the plugin is installed. Fix creation of installation directory: QDir::cdUp does not do anything for directories that do not exist. Change-Id: I5ee559a663380f293046eded7a2c3efbb1023776 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Improve plugin install wizard on macOSEike Ziller2021-02-151-2/+17
| | | | | | | | | | | | | | | | | | Downloaded files get a quarantine flag on macOS, which prevents loading them as a plugin in Qt Creator. Remove the quarantine flag when copying the plugin. Change-Id: I3edef3ddfbab299be750e728a9fac0536634ba1b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/4.14'Eike Ziller2020-11-191-4/+7
|\ \ | |/ | | | | Change-Id: Iea84f23cf394de13e99a9ed777c8c113e4eff473
| * Plugin install wizard: Search in subdirectories of archive tooEike Ziller2020-11-181-4/+7
| | | | | | | | | | | | | | | | Default install structure of a plugin is in a subdirectory like in a Qt Creator installation. Change-Id: Ia4e5a08eb9fbe4b1586ff5d406cae1883e7dbd59 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Don't access static functions via Utils::HostOsInfo instanceAlessandro Portale2020-11-181-5/+5
| | | | | | | | | | Change-Id: Ic45b8f324cb7c6a4691545fc8d668eed69dfeced Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Add missing "final" to unexported/unshared classesAlessandro Portale2020-11-181-6/+6
|/ | | | | Change-Id: I84d5fc39d7ef5588a20545854d0cfd0b993db090 Reviewed-by: hjk <hjk@qt.io>
* Plugin install: Check if archive contains a usable pluginEike Ziller2020-07-021-9/+100
| | | | | | | | Checks if there is a library file which is a Qt Creator plugin that is compatible with the version of Qt Creator that is running. Change-Id: Ic5284e3803c45b8e2ef0d30afccb1680fabf43f3 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Plugin install: Fix state when going back from archive checkEike Ziller2020-07-011-1/+4
| | | | | | | | We can ignore the Archive result when the user goes back, and we need to reset the warning label style when she checks another archive. Change-Id: I76ce07d1a46875ac72696bcf7ab6c804d63b906b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Plugin Wizard: Investigate archive before installingEike Ziller2020-06-171-37/+162
| | | | | | | | | So far that only moves unarchiving and the check if that succeeds to within the wizard. To be extended with additional checks for the archive content's sanity. Change-Id: I6798937826fbe9cb584d83a920e67b6cfcc119ed Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Extract plugin install wizardEike Ziller2020-06-051-0/+270
It will become more complicated, so pull it into its own files. Change-Id: If362f0775cc9d97a3c715c046d32d6a20c30a1f9 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>