aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cvs
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Rename FileName to FilePathhjk2019-05-283-6/+6
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Qt Creator CMake portCristian Adam2019-05-171-0/+13
| | | | | | | | | | | | | | Based on Tobias Hunger's work from a few months ago. The CMake configuration needs libclang and Qt paths specified as CMAKE_PREFIX_PATH. Auto tests are run with "ctest". At the moment the pass rate is 87%. Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* VCS: Improve dialog on submit promptOrgad Shaneh2018-11-121-6/+3
| | | | | | | | | | | The dialog appears when closing the commit dialog without committing, or when "prompt to submit" setting is enabled. Fixes: QTCREATORBUG-18799 Change-Id: I8eb20becbcee7281b9f673a35ec698c6f8e04a40 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* CVS: ModernizeOrgad Shaneh2018-09-208-22/+23
| | | | | | | override, auto, nullptr Change-Id: I1611ca33b1c3ddd563d9e74f77dbcdc903b65b78 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* VCS: Consolidate submit editor actions setupOrgad Shaneh2018-08-282-26/+2
| | | | | Change-Id: I36754779b6a9aa35de705b368daf8c2a1de058c6 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* VCS: Unify default and maximum timeout in all setting pagesOrgad Shaneh2018-06-191-0/+3
| | | | | | | Task-number: QTCREATORBUG-16009 Change-Id: Ibbaaef441ac2dc0147af2bc0631e0b0d98b4f57d Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Vcs/Text search: Remove a few addAutoReleaseObject useshjk2018-02-063-9/+8
| | | | | | | Using a QObject parent suffices here. Change-Id: I4dc5448511d55bf14fbd8f810e91336a49e94094 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Core: make useMacShortcut constexprDavid Schulz2018-02-021-3/+3
| | | | | Change-Id: I293b96428784b6efecac6dae4f2f9690af0027da Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* VCS: Offer to save-all before commitTobias Hunger2017-09-121-0/+3
| | | | | | Task-number: QTCREATORBUG-3857 Change-Id: I3ff3d90803eec4134b9da4af5567753ad7bffafb Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Merge remote-tracking branch 'origin/4.4'Orgad Shaneh2017-08-301-1/+1
|\ | | | | | | Change-Id: I9ab2c68d2bd07b0dd89051a2f5f6fa51676d8594
| * Fix copyright year in plugin info, --version, and macOS infoEike Ziller2017-08-241-1/+1
| | | | | | | | | | | | | | | | By using the new QTCREATOR_COPYRIGHT_YEAR variable Task-number: QTCREATORBUG-18612 Change-Id: I3bcf0319660d210436d3130c00f43325c460a66c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Replace QLatin1String, QStringLiteral ("") with QString()Nikita Baryshnikov2017-08-211-1/+1
| | | | | | | | | | | | Change-Id: I21e6165e7e8858df8436c04c9afcc1be5242bda4 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* | Merge remote-tracking branch 'origin/4.4'Eike Ziller2017-07-251-9/+9
|\| | | | | | | | | | | | | Conflicts: qtcreator.pri Change-Id: If5f4a9821a23ac0df81eb84b3980f9cf7ecd70ba
| * Plugins: Fix that mimetype definition was not valid JSONEike Ziller2017-07-251-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | JSON officially does not support multiline strings, so we should use the same mechanism that we already use for the plugin description (i.e. additionally support arrays of strings which are interpreted as lines). This just happens to work because Qt's JSON parser eats it without choking. Change-Id: I25ef04600b209775c5a7af916c687fda4a8b1a4d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | VcsManager: Register IVersionControls with VcsManagerTobias Hunger2017-07-101-1/+1
|/ | | | | | | Get some more objects out of the pool. Change-Id: Id93021b712307c4777dc39b9d15aa18a46318885 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move mimetype definitions to plugin specsEike Ziller2017-02-276-19/+11
| | | | | | | | | | | | - Avoids the hassle of QRC files and manually registering mime types - Avoids performance regressions because of mime types that are registered after mime database has been used - Makes it technically possible to detect that a disabled plugin could handle a mime type if it was enabled Change-Id: I373008b1b56e9c6b4853055f20b3eeb112a6eff9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* CVS: Re-enable plugin unit testsChristian Stenger2016-12-051-0/+1
| | | | | | | They had been lost while the latest refactorings. Change-Id: I248b274c948a2265aa11d95bbeff143b4a439735 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* VCS: Use Qt5 connect for annotateOrgad Shaneh2016-11-282-3/+1
| | | | | | | Connect directly to the editor widget, which has a strong type. Change-Id: I4d9778bc4a3c8ba1b37c5a5c0286fd72cda135de Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* VCS: Replace describe slots with lambdasOrgad Shaneh2016-11-282-12/+6
| | | | | Change-Id: I05ca25aad8be43fdfa15d3fb5eaaa9bf753ee79f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Rename VcsBaseEditorParameterWidget -> VcsBaseEditorConfigOrgad Shaneh2016-10-242-10/+9
| | | | | | Change-Id: I5626e66ba2b7a760ce55263edce9e716067ea6a4 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* VCS: Replace QToolButtons in VCS toolbar with QActionsJarek Kobus2016-10-241-5/+6
| | | | | | | | | | | | Change VcsBaseEditorParameterWidget to add actions/widgets to an existing toolbar, instead of being a widget itself. The class is renamed in a follow-up commit. Task-number: QTCREATORBUG-14934 Change-Id: I473a439d12a096f4cbb64f06faa0598ee72000de Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* VCS: Fix inverse conditionOrgad Shaneh2016-10-241-1/+1
| | | | | | | compare returns 0 when the strings are equal Change-Id: I4dfd3b402d48a3043e9674f1d82e66c968e8ba94 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* VCS: Add a way to filter out files/directories that belong to a VCSTobias Hunger2016-10-212-0/+9
| | | | | Change-Id: I4dcbe6242cfe327e3b72d3dd550309be45e326a9 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* VCS: "final"-ize IVersionControl implementationsTobias Hunger2016-10-211-15/+15
| | | | | Change-Id: I123a8da9b08b2fe5de679d5caac7fa20bfb0ef4a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* UI files: Fix tab order in lots of UI formsNazar Gerasymchuk2016-08-021-0/+7
| | | | | | | | | | For unknown reasons tab order in listed UI files was set incorrectly and behave unexpectedly. Now tab order behave naturally. Changes made for listed objects and touches only UI. Change-Id: I057b95eb21943ddb29b108682618382661db7be9 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* SynchronousProcess: Store raw bytes from stdout/stderr of the processTobias Hunger2016-07-151-2/+2
| | | | | | | | | | | | | | | Only convert the raw output later in a stdOut() and stdErr() method of the SynchronousProcessResponse. This is necessary since we have processes that use different encodings for different sections of the file (I am looking at you, git). Also remove the signals for raw data on stdout/stderr, leaving only the signals returning buffered QString lines. This should be safe, even with UTF-16 output. Change-Id: Ida613fa86d1468cbd33bc6b3a1506a849c2d1c0a Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* SynchronousProcess: Change exit code interpreter to function objectEike Ziller2016-04-272-24/+8
| | | | | | Change-Id: Ic48d4f5810f171c070f0980581fb6e45f6fe6b4a Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* CVS: ModernizeTobias Hunger2016-02-0419-165/+42
| | | | | | | | | * Use pragma once * Use some more overrides * Tiny clean-ups here and there Change-Id: I951afa8ed31c5f414d4ae872c79f80db19909ee0 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* cvsutils: Fix build with gcc 5.3.Friedemann Kleint2016-02-041-1/+1
| | | | | Change-Id: I9499b688a3fe42d0d67ea82f69b0ad3c39193384 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Preferably use QStringRef::toInt().Friedemann Kleint2016-02-041-2/+2
| | | | | | | Avoid allocations for converting to int. Change-Id: Id8c79334f4809ec075ffe7e6b7635be4873eafd8 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-1920-327/+231
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* IDocument: Rename defaultPath and suggestedFileNameEike Ziller2016-01-141-1/+1
| | | | | | | | To fallbackSaveAsPath and fallbackSaveAsFileName. That makes it clearer what they are for, and that they actually belong to each other. Change-Id: Ie5b83b9db77d39a7fe9e979cc8f22b7f5b9101a3 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* CVS: We still need some public slots:-/Tobias Hunger2015-11-231-1/+2
| | | | | Change-Id: I48ee8706d564b9d537b7117ba48f1d6b47a4a870 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* CVS: Use Qt5-style connectsTobias Hunger2015-11-232-35/+34
| | | | | | | The heavy lifting was done by clazy. Change-Id: I8a36528605e5de791ece191e94a0911112b5a237 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* CvsPlugin: Introduce member initialization.Jarek Kobus2015-06-182-66/+31
| | | | | Change-Id: Ia47961240643944b33a1d00deef4c812b26e4d82 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Properly delete plugins dependent on failed pluginJarek Kobus2015-06-171-1/+1
| | | | | | | | | | | | | | | | | | | Init all class member pointers to NULL. This fixes possible crash on exit when dependent plugin was not loaded (e.g. TextEditor was missing). In this case plugin's constructor gets called, initialize() method is _not_ called and destructor gets called -> crash. Properly delete dependent plugins on a plugin which failed to initialize properly. Fix labels of deleted plugins inside an error dialog after pressing "Error Details" from "Installed Plugins" dialog. Change-Id: Iddc029a0f07dcba2501d734d142fb0e69e9383d3 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* VcsBase: Make some slots protected and update users accordinglyTobias Hunger2015-06-111-1/+1
| | | | | Change-Id: If38be72e9037126b6b697c5064a07de29a2ef8e5 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Add override keyword to IEditor & TextEditorWidget implementationsEike Ziller2015-06-091-4/+5
| | | | | Change-Id: I403101d788d9edfea5c5c9440ab4f39ad00e81f7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* UI text: fix capitalizationLeena Miettinen2015-06-011-1/+1
| | | | | Change-Id: I1fa557f75b0a8d9ab37cdf47ed4564eca4634d8f Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* CVS: Replace CVS checkout wizard with a Json wizardTobias Hunger2015-05-1510-252/+3
| | | | | | | Change-Id: I27c5c76923bae3e4df514e228873330fd8232c7f Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* CheckoutWizards: Use IVersionControl::createInitialCheckoutCommandTobias Hunger2015-05-111-18/+4
| | | | | Change-Id: I09dd38f66b9cad46d561493c2e27a833595d8728 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Utils: Add a WizardPage to show progress of a ShellCommandTobias Hunger2015-05-111-0/+4
| | | | | | | Use the new page in favor of the CheckoutProgressWizardPage. Change-Id: I7801c146fa67d6fcf550616f3798a7a919aafb96 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* CheckoutWizards: Simplify code to look up specific pagesTobias Hunger2015-05-111-6/+2
| | | | | Change-Id: I0098e17585d73e05632027676e7712ef9c843da2 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* IVersionControl: Add method to get a ShellCommand for initial checkoutsTobias Hunger2015-05-112-0/+26
| | | | | Change-Id: Iabc056dad186d788003b221afb34303c37fef728 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Vcs: Sprinkle overrides over IVersionControlsTobias Hunger2015-05-081-14/+14
| | | | | | | Do this in a separate step to keep the next patch more readable. Change-Id: I37cfd5481dcbfda52135eccec30852aefde1b950 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Vcs: Split up VcsCommandTobias Hunger2015-05-041-17/+18
| | | | | | | | | Move the biggest chunk into Utils::ShellCommand, add some Qt Creator specific magic in Core::ShellCommand and leave the rest in VcsBase::VcsCommand. Change-Id: I5fe6f7076e96023ad2164bcfaacfb3b65a7ff8a8 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Vcs: Push the binary into the Jobs of VcsCommandTobias Hunger2015-04-291-3/+2
| | | | | | | This is the first step to generalizing the class for wider use. Change-Id: I40ccb5bec4fdcb9d0a67388160c867799331007b Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Vcs: Standardize on second based timeoutsTobias Hunger2015-04-132-23/+23
| | | | | Change-Id: Ia273fda05a4c4a1934819f26e5dc1b6b80a89f6f Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Vcs: Unify options pages for VcsBaseClientImpl based VCSesTobias Hunger2015-04-093-45/+8
| | | | | Change-Id: Ia5dd7746f5857e7254251e3510c0987737cfad6d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Vcs: Move handling of settings from VcsBaseClient to VcsBaseClientImplTobias Hunger2015-04-089-78/+81
| | | | | | | | | | ... and update users of that functionality accordingly. Unexpected plus: Now every supported VCS actually saves their setting when requested. Change-Id: I02db7b2ce14e5f52d26409b2a01aea290c2a294a Reviewed-by: Orgad Shaneh <orgads@gmail.com>