Commit Graph

8843 Commits

Author SHA1 Message Date
Artem Sokolovskii
c671cd7fbc Wizard: Improve GitHub Workflow for loading plugin to the server
The goal is to create a workflow that allows building the plugin on
GitHub and uploading it to the server, making the plugin available
in the QtCreator Extension Manager.

Added registerPlugin.js script:
- This script creates a plugin.json file compatible with the server API.
- The file can be sent to the server, requiring TOKEN_QT in GitHub
  secrets and API_URL set in the script.

Updated main build_cmake script:
- Added a state that generates plugin.json and includes it in artifacts
  and releases.
- Gives possibility use GitHub releases directly in QtCreator to load
  the plugin, even if the plugin data wasn't uploaded to the server.

Added ./build directory to .gitignore.

To use workflow:
- Create in github repository->settings->Secrets and variables->Actions
  ->Repository secrets new TOKEN and set the value from your Qt Account
- Add to the Repository secrets API_URL from your Qt Account
- In github reposytory->Settings->Actions->General->Workflow permissions
  ->Read and write permissions set to true
- Create relase tag in format "vx.x.x" e.g. "v0.0.1" by git tag v0.0.1
- Push chages and tag git push --tag origin main

Change-Id: I2135e0684bd3560736ecf7be1d25199713661c39
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-08-08 12:55:21 +00:00
Lukasz Papierkowski
a9c51df53f AI Assistant: Don't request suggestions when suggestion is locked
Change-Id: I35d171d89d2a0b497d412f5a80ea4aa44a7fc6ea
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-08-08 12:01:50 +00:00
The Qt Project
7c7c6123d6 Merge "Merge remote-tracking branch 'origin/qds/dev'" 2024-08-07 12:55:01 +00:00
Eike Ziller
26b4ccb618 Merge remote-tracking branch 'origin/14.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	src/libs/solutions/tasking/tasktree.cpp
	src/plugins/coreplugin/imode.cpp
	src/plugins/cppeditor/cpphighlighter.cpp

Change-Id: I5114911d18e377076c5c07b27d6ca918774f34b9
2024-08-07 10:20:08 +02:00
Tim Jenssen
b4061e223e Merge remote-tracking branch 'origin/qds/dev'
Change-Id: I907e067abba640d27313ce03bc41326d3ed750f0
2024-08-06 19:04:41 +02:00
Christian Stenger
cad822dfe5 Dumper: Silence debug output
Left-over from refactorings.

Change-Id: Ib37e04e5ea7ab9269bda98dc052e3fae1a862187
Reviewed-by: hjk <hjk@qt.io>
2024-08-06 08:49:01 +00:00
Mahmoud Badri
5032863679 QmlDesigner: Enable content lib user context menu when section is empty
Fixes: QDS-13309
Change-Id: I6f42ec07af998160b269ec8b89a63ae97f64427d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-08-05 14:04:49 +00:00
Lukasz Papierkowski
44ff3f5e33 AI Assistant: Increase idle delay for suggestions request
Change-Id: Iefffafdf5aa23410701fe16872145019711db83c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-08-05 09:24:21 +00:00
hjk
c1316e998e Debugger: Fix dumper for Qt4
Creator 14.0.0 effectively assumed "less then Qt 6 is Qt 5", even if it
is (incompatible) Qt 4.

We are now falling back to the expensive version extraction for anything
less then Qt 6  but it gets the distinction between 4 and 5 right again.

The check (once per debugger session) happens now unconditionally again
for Qt 5 and earlier and is arguably a performance regression for
Qt 5 / Creator 14 users, but it's not worse then Creator 13 where we
didn't have the shortcut mechanism

For master we should consider extending the qtVersionPing() to also
provide a cheap distinction between Qt 4 and Qt 5.

Change-Id: I4073395280fdf137e89c834bf014b9f31d74a1cd
Fixes: QTCREATORBUG-31355
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-08-02 13:05:11 +00:00
Lukasz Papierkowski
a8126b2b49 AI Assistant: Initial server installation for Linux
Change-Id: I802345f01d1dcd55d784af11ef147ff7473856c0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-08-02 08:48:56 +00:00
Lukasz Papierkowski
bad36c744d AI Assistant: Settings UI
Change-Id: Icb98ac9869d01295d9e64737766d37e51ba86a76
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-08-02 08:48:36 +00:00
Christian Stenger
70c4d3f8c5 Debugger: Install old dumper files
They are still meant to be shipped.

Change-Id: Ice6cf566638463fd49df79ee787de53cfd3e188b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-08-01 10:56:14 +00:00
Alessandro Portale
fb18e5e992 Theming: Fix AlternateBase palette role for light theme on dark system
In order to run a non-dark theme on a system where a dark theme is set,
Qt Creator overrides the dark application palette which is set by Qt.
The override palette is defined in light-palette.inc.

This change fixes the AlternateBase role to be just a bit darker than
Base.

Fixes: QTCREATORBUG-31226
Change-Id: Idca65198d1b2b8876ca580f2a0d3ba19dd03805d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-31 13:39:19 +00:00
Mahmoud Badri
9a85110f91 QmlDesigner: Add icons for lights and cameras when added to content lib
Also small relevant tweaks.

Fixes: QDS-12903
Change-Id: If9d4c9c34005ca0853ec8bda52ebb0234a2223e8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-07-31 09:51:50 +00:00
Alexandre Laurent
01acba9533 Fix some QtC:AutoTest translations
Change-Id: Idf7e34954d17ccb9ab01be292c5ae5cb1b3bf373
Reviewed-by: Olivier Delaune <olivier+qt@delaune.info>
Reviewed-by: Johnny Jazeix <jazeix@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-30 14:56:15 +00:00
Marco Bubke
d9f7392b14 Add more appstream data
Adding some fields for helpful links.

Change-Id: I306eaccd48412b836ae78d5be50d171c4d1d87d8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 15:35:25 +00:00
Christian Stenger
41aaf556cc Dumper: Comment out debug message
Left over from writing another patch.

Change-Id: I3d2eeda4a1ea3c7dda3f9062bb30ed5137c7b09f
Reviewed-by: hjk <hjk@qt.io>
2024-07-29 11:29:33 +00:00
Eike Ziller
2bb42bed1c Merge remote-tracking branch 'origin/14.0'
Change-Id: If26b4607afe758e81feb334b7628797f8fd9c016
2024-07-29 10:15:58 +02:00
Alessandro Portale
b24492c6e9 ExtensionSystem: Add field "DocumentationUrl" to PluginSpec
Task-number: QTCREATORBUG-31199
Change-Id: Ieb20d35cc9b4fe976207491bd201750fa4ca0032
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-29 07:27:03 +00:00
Shrief Gabr
87466e4900 QmlDesigner: Fix Content Library messages for QtQuick3D import
Fixes: QDS-12897
Change-Id: Ia972238b556557e948c9eddb6c2dc6a5b69767fd
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-26 09:27:50 +00:00
Lukasz Papierkowski
1ed31ef52b AI Assistant: Add automatic suggestions
Change-Id: I5d3297a96a215ed07dfb9d2afa85c9bb081c5cf2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-26 06:40:42 +00:00
Eike Ziller
3f47819893 Translations: Add an english file for short-term spelling fixes
If there is just a spelling error in the source text that can be fixed
without changing the text's semantics, we can do that after string
freeze without interfering with the work of translators that might
already have run lupdate and started translating, by adding an english
translation file.

This should never be used to fix the meaning of the string in any way,
and should be dissolved into the tr() calls (+ fixing source tags in
translations) before the next string freeze.

Change-Id: If72505b0ca22c35ef41c0cfabed669a800315f20
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 12:49:16 +00:00
Eike Ziller
3bbfd66bad Merge remote-tracking branch 'origin/14.0'
Conflicts:
	src/plugins/android/androidmanager.cpp
	src/plugins/android/androidrunner.cpp
	src/plugins/android/androidrunner.h
	src/plugins/qmldesigner/components/texteditor/texteditorview.cpp
	src/plugins/qmldesigner/components/texteditor/texteditorview.h
	src/plugins/qmldesigner/designmodecontext.cpp
	src/plugins/qmldesigner/designmodecontext.h
	src/plugins/qmljseditor/qmljseditingsettingspage.cpp

Change-Id: Idada49bb7441e8c5b748bd75b2e6bb2351bd323e
2024-07-25 12:56:53 +02:00
Lukasz Papierkowski
2e7358f0a4 AI Assistant: Check for selection before request for suggestions
Change-Id: I12207d9a9fcfea0b868c5d1c2fe5e2f7c6578f37
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-25 06:46:39 +00:00
Lukasz Papierkowski
b8dbcf3c9c AI Assistant: Add trigger suggestion on user demand
Change-Id: I3f2432266e6fe52311ffa5ac2f2a76af72161a3d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-25 06:44:12 +00:00
Christian Stenger
f91af7106a Lua: Fix qbs build
Amends 1220db049e.

Change-Id: I5e9f7898ec4d421fe44105c58cfd17eda68c8a6b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 10:58:54 +00:00
Marcus Tillmanns
1220db049e Lua: Add support for translation
Change-Id: I5398480233c830bb08c641bc8193b068fb037032
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-24 10:04:26 +00:00
Eike Ziller
4ec2f0bf54 German translation: font -> Schrift
- "Schriftart" is the graphical style
- "Zeichensatz" is a collection of characters, similar to what printers
  had, used for typesetting
- "Zeichenkodierung" is character encoding
- "Schriftschnitt/Schriftstil" is a variant of a "Schriftart", like
  weight, italic etc.
- "Schriftfamilie" is the collection of all "Schriftstile" of a
  "Schriftart"

"Schriftschnitt/stil" seems to be the most direct translation of "font",
but keep it simple and just use "Schrift".

Change-Id: I8705dda02879a69fe94c529a96644d6ba4efe706
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-24 08:12:58 +00:00
Eike Ziller
2b2746c274 German translation: Unify "remove" -> "entfernen" vs "löschen"
Unfortunately we are not very consistent with "remove" versus "delete"
in English either.
Anyway, default the translation of "remove" to "entfernen" (like for
breakpoints etc), except where it obviously refers to deleting files
where we use "löschen".

Change-Id: I4898fe4c85fe0372d6cd314dd71e9583f8084480
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-24 08:12:46 +00:00
Tim Jenssen
e5d8d1cef0 Merge remote-tracking branch 'origin/14.0' into qds/dev
Change-Id: I1c354102209ba0c3505e3e2745e64ce77cc22bb3
2024-07-23 15:28:59 +02:00
Eike Ziller
bec20925d0 German translation: Unify to built-in -> integriert
Change-Id: I88c06f2aa9ea7d6c524e7825087bdb1929e5941f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-22 11:42:52 +00:00
Eike Ziller
d513663828 German translation: Unify to feature -> Funktion
Change-Id: I298c9eb2edeb4dc36dc4fe774fb4d3cf2a872032
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-22 10:46:03 +00:00
Eike Ziller
da9b4803e7 German translation: Sync a string between ProjectExplorer and TextEditor
Change-Id: I833c58d0fbc3ad5565ee1c6346a9b0bd0bf13cbd
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-22 10:45:25 +00:00
Henning Gruendl
50421642e3 QmlDesigner: Allow underscore in dynamic property
* Add PropertyNameValidator
* Add missing qml js keywords to model utils
* UI tweaks in the dynamic property popup
* Fix clipping issue in StudioControls TextField

Task-number: QDS-10451
Change-Id: I763fab5533b8d949fe3e4b967dcb62581fa02ff9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-19 07:38:00 +00:00
Marcus Tillmanns
543f8731b4 LuaLS: Change startBehavior to RequiresProject
The Language Server works better when started per project.

Change-Id: I96ec7204292d7e41119fd7d26b988a9a3a17dc37
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 12:06:22 +00:00
Marcus Tillmanns
9434355b3e Wizards: Add install steps
Change-Id: Ib196496f1f3e8188392182de53ae0ac00d10e9bf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-18 08:41:17 +00:00
Marcus Tillmanns
d2e14ffe86 Lua: Cleanup Hooks
Change-Id: I8e3a1d66ea6125d2cc5ee9c8f8442cca0913fec6
Reviewed-by: <lie@spyro-soft.com>
Reviewed-by: hjk <hjk@qt.io>
2024-07-18 07:19:15 +00:00
Alexandre Laurent
2d3c9b3ffd French translations for 14.0
Change-Id: I17c9adfbe88bfac05208a84b9219de18301e7984
Reviewed-by: Johnny Jazeix <jazeix@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Olivier Delaune <olivier+qt@delaune.info>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-17 14:37:30 +00:00
Thomas Hartmann
7af9acc445 QmlDesigner: Fix font loading path
Task-number: QDS-13204
Change-Id: I6e54dd3c7831b246c7baf85128bc4fbd823c4dc6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2024-07-17 12:03:31 +00:00
Robert Löhning
350ede8d5b German translation: Improve compilers' default names
%5 is the executable's path so translating "at" to "an" does not fit.

Change-Id: I3135164ba2b7d12d9cf685efcde5b695dfb5021f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-17 11:29:07 +00:00
Ali Kianian
f7549f04f3 QmlDesigner: Add Qt6.8 to QDS wizards
Task-number: QDS-13227
Change-Id: Iac4fa0308a546d952dbe07495874a94fcd5bc401
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-07-17 10:05:40 +00:00
Eike Ziller
18937fd44b Merge remote-tracking branch 'origin/14.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	src/plugins/qmljseditor/qmljseditordocument.cpp

Change-Id: Ibef70b4c0eba5ccd5da7b05ca2bd3a9e8ee1cc0c
2024-07-17 11:43:34 +02:00
Cristian Adam
01bfa99a92 Wizards: Fix plugin CMAKE_PREFIX_PATH on macOS
Check explicitly for the presence of "lib/cmake/QtCreator" directory in
order to validate a QtCreatorBuild path.

Change-Id: Ifb3a09d459ceead8c9d49a5779127f95319bd053
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-17 07:01:08 +00:00
hjk
75e5b46ec0 Wizards: Rename "Qt Creator Plugin" to "Qt Creator C++ Plugin"
In line with the recent "Qt Creator Lua Plugin".

Change-Id: If05fd2365c82aa8d349ae461e063835354e0141e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-17 06:41:18 +00:00
Eike Ziller
6a8f1a7683 German translation: QmlProjectManager
Change-Id: If8a3842dea59910d00c43322eacf24efb1de4bc7
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-15 11:15:09 +00:00
Eike Ziller
5181f6e37b German translation: QML, RemoteLinux, ScreenRecorder, TextEditor, Utils
Change-Id: I710949be8dc74e03c5ce0cfc52cd727017b7de08
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-12 10:26:23 +00:00
Thomas Hartmann
f5f5ed15cf QmlDesigner: Rename qmldir to qmldir.tpl to avoid error
The qmldir file breaks detailsPage.qml for Qt 6.8.

Task-number: QDS-13209
Change-Id: I39f17b5d544523d067542a09af84c46b9b69b44c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-12 08:56:25 +00:00
Marcus Tillmanns
bbb6053374 Wizards: Add Qt6 cmake option to qtwidgetsapp template
Change-Id: I92764d37a11654cf7f04748fac6a8ac81a386672
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-12 07:36:25 +00:00
Marcus Tillmanns
3b6f0f9ede Wizards: Add Qt6 cmake option to consoleapp template
Change-Id: Ibe234e03dbb7ac2ce2a2cbccd8630006c050ce3a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-12 07:36:19 +00:00
Henning Gruendl
a91e190612 QmlDesigner: Add lite designer specific workspace
* Load lite workspace in lite mode
* Do not write workspace related settings to user configuration when
  in lite mode

Task-number: QDS-13169
Change-Id: I65c23fff271b4aa9bfd52d3c002eb801cb87d854
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-07-12 07:07:58 +00:00