aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/compilerexplorer
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Make contents margins handling less specialhjk2024-06-041-2/+2
| | | | | Change-Id: I985419bbb213aba899c83efb49b376e0f3338bd5 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils: Introduce a convenience function creatorColor()hjk2024-05-291-21/+21
| | | | | | | ... forwarding to creatorTheme()->color(...) Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f Reviewed-by: Alessandro Portale <alessandro.portale@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-273-8/+5
| | | | | | | | | | | | 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>
* Compiler Explorer: Add Qt templateMarcus Tillmanns2024-05-243-0/+57
| | | | | | Change-Id: Ib071ceeb4dd1274f353b939f5bea53e0b0ed2bdc Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* Make it possible to add wizards paths via plugin meta dataEike Ziller2024-05-062-3/+2
| | | | | | | | | | That makes it easy with Lua plugins, and is useful on the C++ side as well. Change-Id: I660956bed47e4c1e27a001ad8999d6701cda86ee Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* CompilerExplorer: Use new MenuBuilderhjk2024-04-251-20/+15
| | | | | Change-Id: Iafd26b625493aecd5fa750ac8fcb3da950bda1d8 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* CompilerExplorer: Fix Undo/Redo actionsMarcus Tillmanns2024-04-182-17/+33
| | | | | Change-Id: Ib3f55467764600d0b1e4ef25b53874a4d37a7ba7 Reviewed-by: David Schulz <david.schulz@qt.io>
* Compiler Explorer: Remove unused lambdaMarcus Tillmanns2024-04-121-7/+0
| | | | | Change-Id: Iabef84b8d778449aa0091f29b38e607ab3757b82 Reviewed-by: hjk <hjk@qt.io>
* CompilerExplorer: Remove unused lambda capturehjk2024-04-121-1/+1
| | | | | | | Amends 411100b037. Change-Id: I4835b9aed591f894943fb3625ee5b4eadd99bc0d Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* TextEditor: remove text editor action handlerDavid Schulz2024-04-092-78/+4
| | | | | | | | | | Give each editor a context and register editor actions individually for that context. This removes the need to tell the action handler the current editor. Additionally all actions are now available in editor widgets outside of the EditorManager. Change-Id: I0109866b180889762f8bd8aa07874d8d7c55bfa6 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* CompilerExplorer: Use volatileMarcus Tillmanns2024-03-041-1/+2
| | | | | | | Currently the user can't change the Url. This is for the future. Change-Id: I7854c1dc0e680c9aa4bbb41d44dbcb9540a3b34b Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* CompilerExplorer: Adjust Terminal font sizeMarcus Tillmanns2024-03-011-0/+24
| | | | | | | | Adjust the output Terminal font size based on the text editor font size settings. Change-Id: Id1047f0fce0ac781cbc51b01f0df9657b179d71a Reviewed-by: David Schulz <david.schulz@qt.io>
* CompilerExplorer: Fix value vs. volatileValueMarcus Tillmanns2024-03-011-2/+2
| | | | | | | | Previously adding a new Compiler would not compile the current source, but the last "applied" source. Change-Id: I0979d21a61808e7bc03e5b72e9c8a2492200c8f6 Reviewed-by: hjk <hjk@qt.io>
* CompilerExplorer: Use global network access managerMarcus Tillmanns2024-02-157-19/+4
| | | | | Change-Id: I03589a1b5abd42b36281c1c733adf20fcb51d272 Reviewed-by: hjk <hjk@qt.io>
* Fix ODR violation with SpinnerEike Ziller2024-02-151-1/+1
| | | | | | | | | | | | Spinner is already added to and exported by the Utils library. Do not add it again to more (plugin) libraries. Fixes: QTCREATORBUG-30368 Change-Id: I6ddf43f8bf1c4972b786b82dbafd3201bc8e0a0e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Tim Blechmann <tim@klingt.org> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* CompilerExplorer: Replace QSharedPointer with std::shared_ptrJarek Kobus2024-02-043-7/+7
| | | | | | | | | According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews QSharedPointer impl is poor and it's going to be removed from Qt 7. Change-Id: I591de84b86f91adda73848729149e29004277df2 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* CompilerExplorer: Remove unused class declarationhjk2024-02-021-4/+0
| | | | | Change-Id: Idbf95824e5d43eeff84f06c5b08e182d32bf7ef5 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Various plugins: Remove unused variablesJarek Kobus2024-01-291-1/+0
| | | | | | Change-Id: Ie2e5eb38d81a7582c5715654f09f28deb4ab11c5 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* CompilerExplorer: Add fallback document pathMarcus Tillmanns2024-01-162-0/+7
| | | | | | | Fixes: QTCREATORBUG-30200 Change-Id: Iecbecf9f065a938881e2afa33ff6736bc3f2ee4a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Robert Löhning <robert.loehning@qt.io>
* CompilerExplorer: Avoid using keys()Jarek Kobus2024-01-083-37/+30
| | | | | | | Instead, iterate directly over the container. Change-Id: I6a3cb7d623e083663a11389f15b8d51599f338a3 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils: Proliferate use of <utils/mimeconstants.h>Alessandro Portale2023-12-191-2/+3
| | | | | | | | This deduplicates several mime type strings. Change-Id: Ib1746387e233ca5b7134e65859b5ec1c7832b8e4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CompilerExplorer: Un-static NetworkAccessManagerMarcus Tillmanns2023-12-142-6/+3
| | | | | | | | | | | We have seen crashes on Windows when the static network access manager is deleted (with a "dev" version of Qt). Out of an abundance of caution this patch changes the Network access manager to be owned by the actual settings object. Change-Id: I999a15d99315019b3e5f4ed330a4ac058849f066 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* CompilerExplorer: Add assembly => source linksMarcus Tillmanns2023-12-143-52/+296
| | | | | | | | When hovering over the assembly, the matching source lines are highlighted. Links inside the assembly are now clickable. Change-Id: I22479a2e1badcfd95e0f341b2556fc93c8469625 Reviewed-by: David Schulz <david.schulz@qt.io>
* CompilerExplorer: Use ActionBuilderhjk2023-12-141-14/+14
| | | | | Change-Id: Id5692fdec9194482f0276274d5d772a00eb1994c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* CompilerExplorer: Fix assertMarcus Tillmanns2023-12-122-0/+6
| | | | | | | | | | The default value was not correctly converted to a QVariant. When a LibraryAspect was de-serialized from the default variant value, it would create q QVariant<QMap<QString, QString>> which cannot be converted to a Store by Utils::storeFromVariant and would end in an assert therefore. Change-Id: I6f7b14d78793a07f027a6b375bc554941ffb83de Reviewed-by: David Schulz <david.schulz@qt.io>
* Clean up some lambdashjk2023-12-121-2/+2
| | | | | Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* FancyMainWindow: Use "Store" type for settings instead of custom QHashEike Ziller2023-12-111-1/+1
| | | | | | Change-Id: Id0735af2ee9b138c9a53525a236fde2a0310c695 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Merge remote-tracking branch 'origin/12.0'Eike Ziller2023-12-065-25/+26
|\ | | | | | | | | | | | | | | | | Conflicts: src/plugins/clangcodemodel/clangdfollowsymbol.cpp src/plugins/debugger/debuggerruncontrol.cpp src/plugins/projectexplorer/miniprojecttargetselector.cpp Change-Id: I45b7fee1a1d784c44f2139fb1ede69190d23d6fd
| * CompilerExplorer: Add user-agentMarcus Tillmanns2023-11-285-25/+26
| | | | | | | | | | | | Change-Id: Ia2193a1cf9bd0b3542313162d6befe14649efe97 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | CompilerExplorer: Allow softloadMarcus Tillmanns2023-11-131-0/+1
| | | | | | | | | | Change-Id: If907e7a846ce7d87a5a2ac7b09ef70174410da01 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Merge remote-tracking branch 'origin/12.0'Eike Ziller2023-11-092-3/+15
|\| | | | | | | Change-Id: I2594f193260a103e1c4484fcab974213c881353d
| * CompilerExplorer: Fix crash on undoMarcus Tillmanns2023-11-092-3/+15
| | | | | | | | | | | | | | | | We need to store the source text document so that when the editor is remove and the user triggers undo/read, the pointer is still valid. Change-Id: I571906db1c4424455172a42d72351cd9ba1e7c03 Reviewed-by: David Schulz <david.schulz@qt.io>
* | FancyMainWindow: Remove auto-hide title bars functionalityEike Ziller2023-11-072-13/+7
|/ | | | | | | | | | | | | | | | | | | This added complexity with the hovering to get the title bars shown, and discoverability issues with the action in the views menu to show all title bars, and the issue that some docks then had double titles, because we wanted some title to be shown even if the title bar is hidden. Instead only show the dock control buttons only on hover, which already removes a lot visual clutter that was the main reason for the whole exercise. One issue is that the title is now uselessly repeated for tabbed docks. Another is that the title bar style is ugly and not very compatible to what we otherwise have. Change-Id: Ib093e0a3f2f07ece74b9055015c5523994032c5a Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* CompilerExplorer: Fix adding text marks to ASMMarcus Tillmanns2023-10-311-0/+1
| | | | | | Change-Id: I99d5090f770ad74c0e0c0317186d436ced492280 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Tr: More small fixesEike Ziller2023-10-182-5/+5
| | | | | | Change-Id: I5d9324d3f64eaa522fa1d435efa39fa43d84798a Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Tr: Fix lupdate issuesEike Ziller2023-10-181-1/+2
| | | | | | | | | | Add missing `Tr::` and use some fully qualified namespaces where lupdate fails to resolve it correctly. Change-Id: Ied4ac7bf0438a9080d0b76a9a1f5033dbc94a163 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* TextEditor: Don't export KSyntaxHighlightingMarcus Tillmanns2023-10-171-2/+3
| | | | | Change-Id: I84fa8c758af412d8847391a628deac60279b9448 Reviewed-by: David Schulz <david.schulz@qt.io>
* CompilerExplorer: Fix display of selected libraryMarcus Tillmanns2023-10-171-4/+14
| | | | | | Change-Id: I44085ef914930a16f14a2fc79e2941852dc2e4fb Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* CompilerExplorer: Fix restoring library selectionMarcus Tillmanns2023-10-171-3/+3
| | | | | Change-Id: Iae64cf8629495457e423d9e635b2ffcf912d89b8 Reviewed-by: David Schulz <david.schulz@qt.io>
* CompilerExplorer: Fix highlighter for assemblyMarcus Tillmanns2023-10-171-2/+2
| | | | | Change-Id: Id58546d99232b19252c99da5018c1ce45a2e8dc5 Reviewed-by: David Schulz <david.schulz@qt.io>
* CompilerExplorer: Add "powered by" labelMarcus Tillmanns2023-10-161-0/+17
| | | | | Change-Id: I0006d314ee69f863e48196a7719a3ef7ebc127ae Reviewed-by: hjk <hjk@qt.io>
* CompilerExplorer: Add missing translationMarcus Tillmanns2023-10-161-1/+3
| | | | | Change-Id: If12a0530addf3c815d7b3a25b6dfdd90d29361a6 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CompilerExplorer: Use StyledBarAlessandro Portale2023-10-131-21/+35
| | | | | Change-Id: I9f80a025a6ed3a4732794b4715a25ce3b90f6d43 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* CompilerExplorer: Remove unnecessary emerge()Marcus Tillmanns2023-10-121-9/+8
| | | | | Change-Id: Ibacd732c408a3aad31a5e1254fa2e7c551438a56 Reviewed-by: hjk <hjk@qt.io>
* Utils: Change Stack to QStackedWidgetMarcus Tillmanns2023-10-121-2/+2
| | | | | | | | | | We use a QStackedWidget instead of a QStackedLayout here because the latter will call "setVisible()" when a child is added, which can lead to the widget being spawned as a top-level widget. This can lead to the focus shifting away from the main application. Change-Id: I4746de2ea1a300d7c97735f0bbd9338cd2818b5d Reviewed-by: hjk <hjk@qt.io>
* CompilerExplorer: Fix UI text caps and punctuationLeena Miettinen2023-10-112-7/+7
| | | | | Change-Id: I44fff47e3aef1b2910f22efd05201e81f6995024 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* CompilerExplorer: Improve error reportingMarcus Tillmanns2023-10-112-7/+14
| | | | | | | | Displays network errors as disrupting, instead of just sending them to the log. Change-Id: If5a3dbb733f1433dcc2bcd0a52ad12d8ee3b85ef Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Utils: Add AspectList::createAndAddItemMarcus Tillmanns2023-10-114-20/+8
| | | | | | | Adds a function to add a "default" constructed new item to the list. Change-Id: I3d826b6f3e3705ae431efa5d778219f431509ea8 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* CompilerExplorer: Add Toolbar button to add sourceMarcus Tillmanns2023-10-094-11/+34
| | | | | Change-Id: I0d8fb50fe1ce5305a93b524a9807997124ab119b Reviewed-by: David Schulz <david.schulz@qt.io>