aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Make LayoutBuilder setter setup less repetitivehjk2024-06-041-1/+1
| | | | | Change-Id: I9113f7a97566c21cf83dcb95ce8e75e9707360b4 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Add long descriptions to some pluginsLeena Miettinen2024-05-311-1/+5
| | | | | | | | | | | | Edited the short descriptions to answer the question "What can I do with this extension" to help users decide whether they need it. In long descriptions, tell users what else they need to be able to use the plugin. Change-Id: Iefce7505b61fc77cf38cc915f1f7dbd25c9cb570 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* PluginSpecs: Change URLs from http:// to https://Alessandro Portale2024-05-281-1/+1
| | | | | | | | | | Avoid the redirect that is inevitable nowerdays. Also, change necessitas.kde.org to www.qt.io, since the orgininal page is offline. Change-Id: Ib1823f0df97d2df87822fd2bb7552e2f2c7e971e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Use LayoutBuilder V2hjk2024-05-271-1/+1
| | | | | | | | | | | | This puts the implementation introduced in acf1ecb47fdf into use, after significant simplifications in the class hierarchy. CRTP is not used anymore, and the new tag based dispatch is also used for Layout::addItem, effectively reducing the number of different code paths. The Lua based settings access is disabled for now. Change-Id: Idb6d1a25675378757c5267bdb630bcd4c1f52d34 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Utils: Fix build with MSVC with C++20Eike Ziller2024-02-282-2/+2
| | | | | | | | | | | | | | | | | Rename process.h back to qtcprocess.h MSVC's "threads" standard header includes <process.h>, and that ends up including our process.h from Utils. There already was a hacky workaround in place for a similar issue with MINGW, but that doesn't work with MSVC because that doesn't have Simply use a name that doesn't conflict. Change-Id: I1159cd2096b4f2dbc4a1728d0131dd6edd30ebd3 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>
* Vcs: Rename VcsBasePluginPrivate to VersionControlBasehjk2024-02-061-1/+1
| | | | | | | | | | | The classes derived from this had a dual role of implementing the version control interface (IVersionControl) and as the plugin pimpls. The name was focusing on the latter, but plugin pimpls are being phased out in the new 'setupFoo()' world, so only the version control interface part remains. Change-Id: I60396f1729c736bc6c9e4fca250a5926e9d60f51 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Process: Use more rawStd{Out,Err} const methods instead of mutable onesJarek Kobus2024-01-211-1/+1
| | | | | | | | | Avoid using readAllStandard{Output,Error} mutable methods if possible. Use non-mutable methods when we are not connected to readyReadStandard{Output,Error} signals. Change-Id: I2e830e571b9eab2177fd856bbe06dfc5137d9c01 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* GitLabCloneDialog: Don't delete the VcsCommand when doneJarek Kobus2024-01-181-1/+0
| | | | | | | | | This is done internally by the VcsCommand, after the singal is sent. Change-Id: I3e6c9b6c465fc48f6cd9dcd3953c22d45757008e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* GitLab: Hide plugin class definition in .cpphjk2024-01-155-104/+94
| | | | | Change-Id: I362bcbd09ef4694f0478c8982ea627cb9d8c310b Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* GitLab: Register open view action using ActionBuilderhjk2023-12-191-9/+7
| | | | | Change-Id: Id0bb3b2a3e5da266ce9014ffe2c81f9b0d0d442d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Clean up some lambdashjk2023-12-121-1/+1
| | | | | Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* GitLab: Access GitlabParameter singleton more directlyhjk2023-11-209-65/+39
| | | | | Change-Id: Ib4d333b6419bb2bdcdcf124d22d0473f6fd91cb9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Let ProjectPanelFactories auto-registerhjk2023-11-161-1/+0
| | | | | Change-Id: Iaca1438f1199c2dd112b61a8ff74f4707867e7c5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* GitLab: Use new construction pattern for project panel factoryhjk2023-11-163-47/+54
| | | | | Change-Id: I7a52d1a914daf64cb74214628c7f4728d32dbf5d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* All: Remove some unneeded #includeshjk2023-09-271-1/+0
| | | | | Change-Id: If9a8fb5e0b32424e3b37ecf3adefc060f86b3630 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils, all: Standardize on QtcSettingshjk2023-09-272-10/+14
| | | | | Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils: Add missing connections to validChangedMarcus Tillmanns2023-08-221-1/+3
| | | | | | | | | | | FancyLineEdit and PathChoosers valid state can be asyncronously update, so users need to connect to the validChanged signal to correctly update the UI and not just to textChanged, or rawPathChanged etc. Fixes: QTCREATORBUG-29525 Change-Id: I706fef61f6228af7dae9271a146cf739c3202cc7 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* GitPlugin: Simplify return statementsJarek Kobus2023-08-021-1/+1
| | | | | Change-Id: If09c93acade749326b95bb1c6068b2d43a4d8551 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Git: Initialize GitClient on first accesshjk2023-07-261-7/+6
| | | | | | | | | | | | | | | | This does not change the current timing of construction a lot as the GerritPlugin may need it immediately in some cases, in any case the gitGrep instance will need it. There's nothing big going on at destruction time, so the prolonged lifetime until really close to the end does not hurt. The reason here is that this way we will avoid cases like in change 5e5b90a9a1664c. Change-Id: I326d83c1a3d21114322ac6cce8d9e9b782faacdc Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Build: Change plugin json.in files to CMake styleEike Ziller2023-07-251-16/+16
| | | | | | | | | | | | | They were still using variables in qmake style. Directly use CMake variables in the json.in files and remove the no longer needed escaping of quotes. Adds a fatal message if it detects the old style in a .json.in file for easier porting. Change-Id: I8de88d8db2da55781f0e9d72eda03f943723188e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Vcs: Code cosmeticshjk2023-07-141-14/+14
| | | | | | | Drop some Utils:: and rely on some aspects' operator()() Change-Id: I40d2c2973c1c9eff443bb74b8da44e0824d8d5c6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Replace StringAspect::setFilePath()hjk2023-07-041-1/+1
| | | | | | | | | | | | ... by FilePathAspect::setValue(). Closer to the intented uniform API. Task-number: QTCREATORBUG-29167 Change-Id: Ife26046eaeef2e49108e42a31a2d32e453883e3c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Use more FilePathAspecthjk2023-05-191-4/+3
| | | | | Change-Id: Ib348df1460f8610607251498b07010df58d51ddf Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* GitLab: Shift responsibility to signal changeshjk2023-05-096-25/+35
| | | | | | | | | ... from the option pasge (factory) to the settings (storage). This will help with removing the QObject base from IOptionPage Change-Id: I04a6b499bdca6065bf8f742b4624beabe7d8f8cc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* GitLab: Use apply functor in GitLabOptionsWidgethjk2023-05-081-25/+16
| | | | | | | Babystep towards removing QObject inheritance of IOptionsPage Change-Id: Ib36b8ce4dd1f6878abdfe20c0c4e3ddb95e927dd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Rename qtcprocess.{cpp,h} -> process.{cpp,h}Jarek Kobus2023-05-042-2/+2
| | | | | | | | 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-042-2/+2
| | | | | | | | 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>
* Layouts: Add missing "br"s to terminate Form linesAlessandro Portale2023-05-041-4/+4
| | | | | | | | This restores the layout of various forms to the state prior to the LayoutHelper changes. Change-Id: I9b88229485b257ca7454d688aa0a9b1984206496 Reviewed-by: hjk <hjk@qt.io>
* Layouting: Handle attach types via setterhjk2023-05-031-2/+3
| | | | | | Change-Id: I862f5cd109db3582b4f029787ec0cded2da39ce6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Utils: Make Layouting a top level namespacehjk2023-04-251-1/+1
| | | | | | | | | | The whole machinery is now almost only layoutbuilder.{h,cpp}, mostly independent of the rest of Utils. Idea is to finish the separation to make it stand-alone usable also outside creator. Change-Id: I958aa667d17ae26b21209f22412309c5307a579c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Gitlab: Use IOptionPage::setWidgetCreator() for settingshjk2023-04-202-116/+79
| | | | | Change-Id: If5e0cead9092836f23bc8551bb0f1495fe41a400 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-04-131-0/+1
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/python/pipsupport.cpp src/plugins/qtsupport/exampleslistmodel.cpp src/plugins/qtsupport/examplesparser.cpp tests/auto/examples/tst_examples.cpp Change-Id: I00273622423fa99d41621969f6ecbbdaa0e18664
| * Fix lots of tr.h files not being mentioned in CMakeLists.txtEike Ziller2023-04-011-0/+1
| | | | | | | | | | | | | | Change-Id: I63d364ac50d9587339b10a5571870cb9a81c54ee 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>
* | Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-03-132-2/+2
|\| | | | | | | | | | | | | Conflicts: src/shared/qbs Change-Id: I33e13270c8c15a51b4ce4eaa6b4584041ed124e0
| * GitLab plugin: Remove visibility public default valueSamuel Gaist2023-03-102-2/+2
| | | | | | | | | | | | | | | | | | The query currently used does not provide this value and showing public for everything is misleading to the users. Fixes: QTCREATORBUG-28882 Change-Id: Ie47a4fa24e4b1e90b8d1a53c5819742f2b5aca71 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | ProjectExplorer: Move some not-fully-session related bitshjk2023-03-012-9/+13
|/ | | | | | | | | | | | | | | ... out of SessionManager. The idea is to later move SessionManager into the Core plugin, which both is sensible conceptually and also prerequisite to merge the Bookmark plugin into TextEditor plugin. Currently, only the interface is split, as the load/save implemetations are non-mechanical to disentangle. Change-Id: I31631db3094ea192825a2ccaa6add6188662940b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Translations: Change translation context prefix from "::" to "QtC::"Alessandro Portale2023-02-101-1/+1
| | | | | | | lupdate would be confused by translation contexts starting with :: Change-Id: Ie95e73436fd3cafc80a8e89f908efadc747e644c Reviewed-by: hjk <hjk@qt.io>
* GitLab: Tr::tr()Alessandro Portale2023-02-086-80/+81
| | | | | Change-Id: I1f51fbada9d18b6e6e2dae90801de472b3e086d7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use simpler Plugin::initialize() when feasiblehjk2023-01-202-3/+2
| | | | | Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Prefix Tr::tr contexts with ::hjk2023-01-131-1/+1
| | | | | | | To make outliers better visible in Linguist Change-Id: Ic35ea2a858b7e3576d9a416fb494fddb616eaaa1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Rename QtcProcess::readAllStandard* to readAllRawStandard*hjk2023-01-101-1/+1
| | | | | | | | | | | | ... and re-use the old QtcProcess::readAllStandard* names for a QString-returning 'decoded' version. For now, only use that in 'full Utf8' cases, to stay bug-compatible, the plan is, however, to employ the QTextCodecs we have already in the channel buffers. That will be one-by-one, though. Change-Id: Id209e0671920d4ea4197918e872f441254112d52 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Utils: Rename most FilePath::{from,to}Variant uses to {from,to}Settingshjk2023-01-101-2/+2
| | | | | | | | Specifies the main purpose more clearly. The remaining ones a "true" (internal) variants in models and as action data. Change-Id: I8dd3c846e419f29d88283c2f48268ef6685b19fe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-0617-17/+17
| | | | | | | | | | | | | | | 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: Add std::expected implementationMarcus Tillmanns2022-12-141-1/+1
| | | | | | | | | | | | | | | Adds a std::expected implementation that is compatible with >= C++11. FilePath::fileContents and FilePath::writeFileContents as well as FilePath::copyFile are changed to return std::expected. A couple of macros have been added to aid in using the expected types. An auto test was added showing how to use the library. Change-Id: Ibe3aecfc1029a0cf13b45bf5184ff03a04a2393b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Remove unused includes of Q[H/V]BoxLayoutJarek Kobus2022-11-181-2/+0
| | | | | | | Change-Id: Ia90b30b634281414268e00722771470f1e7b69c0 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* UI text: Use a full stop in the end of messagesLeena Miettinen2022-10-201-2/+2
| | | | | | | | | And fix the capitalization of some message box titles. Task-number: QTCREATORBUG-28334 Change-Id: I858eefd5a12494723c40e0253a3708fa77284d1b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Utils: Rename FilePath::relativePath() to relativePathFrom()hjk2022-10-181-1/+1
| | | | | | | Hopefully less confusion about the direction. Change-Id: I61727d6c4d19e0dfe46f24ff24f5d90f9835d05c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-071-1/+1
| | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I88edd91395849574436299b8badda21bb93bea39 Reviewed-by: hjk <hjk@qt.io>
* RunFlags: Add ProgressiveOutput flagJarek Kobus2022-10-061-1/+1
| | | | | | | It replaces VcsCommand::setProgressiveOutput() property. Change-Id: Icebd2205a5b489f60ded1eeee21e2deacbfde1fe Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* GitLab: Limit the usage of std::make_pairJarek Kobus2022-10-041-7/+7
| | | | | | | | Make the code less verbose. Change-Id: If938923022f8bcdb2559328e03035b8b38145f3e Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>