Commit Graph

89152 Commits

Author SHA1 Message Date
Leena Miettinen
93fcd753c8 Doc: Fix navigation
- Add "User Interface" and "Configuring Qt Creator" to the TOC
- Fix a \previouspage link to point to the How To topic
- Arrange Reference topic categories in alphabetic order

Change-Id: I674db28d089f5dd13a0bd16d34682fff8887b8ee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-10 09:16:51 +00:00
David Schulz
3d37e20dd6 Core: add convenience function generating a documents context menu
Change-Id: I1f00bccf3c24d0bde8764277e1cfb4ef0c6e758b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-10 09:16:40 +00:00
David Schulz
5382d735fb Core: allow pinning documents from the editor toolbar
This is now inline with the context menu of the open documents view in
the open documents view in the side bar.

Change-Id: I026f94e0296d0704382bb49790226608503ef94f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-10 09:16:24 +00:00
Marcus Tillmanns
d30ddb101f Docker: Use kill to stop container
Calling "stop" often times takes a while or outright fails to stop
some containers. "kill" is more reliable.

Change-Id: I46a33c8f4e38aa9a71b1f64d74042433f7a90ccc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 08:32:42 +00:00
Jarek Kobus
84171887bb QmlJsEditor: Remove warning about unused variable
Change-Id: If67c3330130a90b84f593cb8a83999f47f3849e0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 08:26:27 +00:00
Friedemann Kleint
32af4964ce Add a converter for converting an exported Axivion JSON table into a task file
Change-Id: If722af7472cc174e23a9d98e266874660e86842f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 08:11:57 +00:00
David Schulz
0cfdf2f5ae LanguageClient: show unreachable servers in the lsp menu
Task-number: QTCREATORBUG-31125
Change-Id: I6526955fe4e3d65c6d83b88876eb47692d694955
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 06:42:34 +00:00
David Schulz
3b5547214c LanguageClient: add state changed signal to client
Change-Id: I13b69eb386b4e356f4f23c3b464f83a2a1d9ab14
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 06:41:59 +00:00
Eike Ziller
e1560a3c7c Make mode hiding and style available from mode selector
Add the View > Modes menu as a context menu to the mode selector in the
emtpy areas. Add a context menu with "Hide" and the mode style to the
modes that don't have a menu, and extend existing mode menus (Debug
mode) with these items too.

Change-Id: I28106d9b6c4f0d69b2d06c4ec9664eb67e2b1216
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 06:06:41 +00:00
Eike Ziller
d386421998 Move actions for mode style to mode manager
Change-Id: Ic3ea8dcc12511f0f115b0c9124419ac5178f5c8f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-10 06:06:11 +00:00
Eike Ziller
a555bc3801 QmlDesigner: Remove special completion action
It was necessary to override the existing completion action, because
that would always work on the current editor in the editor manager
instead of on the text editor in Design mode.
(Though instead of changing the context for the TextEditorView, the code
could just have registered a context for the text editor widget itself
for that purpose.)

Since 411100b037 the text editor widgets
have their own individual contexts and actions, without the detour via
the editor manager, so this workaround is no longer needed.

Change-Id: I7e2b18dd7b953a56b5f2c99152d2eeabdb76f726
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-07-10 06:05:54 +00:00
Marcus Tillmanns
30e44ae15f Docker: Improve error output when bridge fails to start
Change-Id: I86d9d3972c483d21cd2ff64d3581b518e6b0a819
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 05:52:12 +00:00
Marcus Tillmanns
cba0f779a9 Terminal: Add error checking
Change-Id: I28395f50f03b853468a229416d5942fc591f9957
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-10 05:51:57 +00:00
Cristian Adam
6c63c42799 CMakePM: Do not open CMakeLists.txt for adding/renaming/removing files
Other build systems like qmake / qbs do not do this.

Change-Id: I615ea3556c694e7a18426558c5bf6f3ea142068d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-09 14:46:37 +00:00
Alessandro Portale
c9d5504fa5 ExtensionManager: Add filtering and sorting
As per UI design spec, this change inserts two widgets between the
search field and the extensions list. One for filtering, one for
sorting.

The widgets are derived from QComboBox, with custom paintEvent. The
selected filter/sort options are applied to the custom
SortFilterProxyModel which is inserted between the "search" proxy model
and the view.

Fixes: QTCREATORBUG-31179
Change-Id: Ia7768fa4f31b5bf5682918e724a3a299e851eb46
Reviewed-by: hjk <hjk@qt.io>
2024-07-09 13:09:40 +00:00
hjk
df658d1a96 QmlDesigner: Inline TransitionContext
Change-Id: I2f6d101a7d7ae06f11b780ea754e1b4ce6028b4c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-09 12:06:53 +00:00
hjk
63bb621694 QmlDesigner: Inline EffectComposerContext
Change-Id: Id4b32bde5b1b12b023cffb4bc3f134627dec508b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-09 12:06:43 +00:00
hjk
e0ae91a775 QmlDesigner: Inline TimeLineContext
Change-Id: Ifa002d1c9100c28ac9a382c8fced3b834122ef85
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-09 12:06:37 +00:00
Marcus Tillmanns
20e1335922 Docker: Change documentation to reflect requirement change
Change-Id: Iab47be4f663bd4ee09d909d2659cc6f59b4c59b7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-07-09 11:46:23 +00:00
Christian Stenger
da797a8f21 PerfProfiler: Fix release build for qbs on macOS
Change-Id: I965f7ac9947425d08878d401abb22a3daf470ce1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-09 11:25:09 +00:00
hjk
b15af55946 Translation: Fix typo in README.md
Change-Id: Id0aeda9686887027c5048a2a9c85a303f011c1f2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-09 11:00:59 +00:00
Eike Ziller
57e45131f5 German translation: Lua
Change-Id: I4e75db6547818f0d762eb661f95456dab5e83b53
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-09 11:00:43 +00:00
Eike Ziller
3b08077cef German translation: ProjectExplorer, Python, QMake
Change-Id: I9a5dd2b7aafdd3542aa231307701b30d72ead170
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-09 10:59:03 +00:00
Eike Ziller
11e713eb4b German translation: ModelEditor, qmt
Change-Id: I808f55ccb3efb088d243a025130f20953803be3f
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-09 10:58:55 +00:00
Eike Ziller
80fcd782f5 German translation: Extension*
Change-Id: I4a10d877a8f679498d1f1c56cf1d5925828dd8d4
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-09 10:58:45 +00:00
Mathias Hasselmann
da2e60fa3e Core: Show context of filter matches
When inspecting logs often enough the relevant information is next to
the line with the unique expression that's easy to match. The `grep`
tool solves this problem by providing various `--*context` options
which configure how much context to show for each match.

This change tries to replicate this feature.

Task-number: QTCREATORBUG-30167
Change-Id: I6432870c0b958df8c5dc616009aea4ca54973245
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-09 09:00:17 +00:00
Mathias Hasselmann
54532795ab Core: Allow numeric options in OptionsPopup
For numeric options a spinbox is added to the popup. The text shown
before and behind the spinbox is controlled via the action's label:

    "Show {} preceding lines"

A label with the text "Show " is created before the spinbox, and another
label with the text " preceding lines" is created behind.

Task-number: QTCREATORBUG-30167
Change-Id: Id0fba97c3a674ae41d4ab9d767694f5f5674ef18
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-09 09:00:02 +00:00
Mathias Hasselmann
5374705531 Core: Change filterNewContent() to use a predicate
At this point this might appear slightly over-designed, but when adding
context matching and highlighting of matches the body of the lastBlock
loop will become much more complex. Something you surly don't want to
copy and paste. On the other hand the following changes are way too
complex to mix them with this refactoring. That's what this change
prepares for, and that's why it is separate.

Task-number: QTCREATORBUG-30167
Change-Id: Idb0ed2471006ebaa199acb164043f8fea8fc0d42
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-09 08:59:51 +00:00
hjk
3f636a710f QmlDesigner: Register the remaining contexts more directly
The texteditor case remains somewhat special as it modifies
the set context after construction.

Change-Id: I8dadeff9177db5281d91f7826f06b994ff132883
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-09 08:55:20 +00:00
Marcus Tillmanns
5e87f2f705 Github: Install UPX
Change-Id: Ie7438f2bb6a35f87d1c3014b4bc8d4e761c9a2fb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-09 08:54:32 +00:00
Marcus Tillmanns
f66ec13a8b Github: Add go compiler
Change-Id: I13dba50f659c23d7c37b6f2b2ae62b8cd4719ba7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-09 08:54:26 +00:00
Marcus Tillmanns
b3db7c1095 Docker: Guard m_fileAccess
Change-Id: Ic7df2d44d39ba54b15ad24181bfcddcc13c6d02b
Reviewed-by: hjk <hjk@qt.io>
2024-07-09 07:57:08 +00:00
Jarek Kobus
b507a0039f QMakeStep: Simplify recipe
Use conditional expression with nullItem.

Change-Id: I38e14fceef1a7e3e72c6b3598831241966062bb5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-09 07:03:50 +00:00
Jarek Kobus
6c2c287335 GitClient: Call done handlers also in case of an error
This removes the "Precedes: <resolving>" label when
doing git show on a very fresh, local commit.

The same fix applies to "Branches", though not sure if
it's possible that there is no branch.

Change-Id: I08614d47b229bd04256de1a059876d679cc57b99
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-09 07:03:43 +00:00
Jarek Kobus
faff9bb220 GitClient: Simplify recipe
Use LoopList element instead of constructing large tree.

Change-Id: Ie10af350c7ed15a7d06363414174042b65c7ec53
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-09 07:03:34 +00:00
Jarek Kobus
9035454afb DiffFilesController: Simplify recipe
Drop inner TaskTree and use LoopUntil iterator instead.

Change-Id: I683efb52c3527c36c2cd98e2e2767521817f7d13
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-09 07:03:25 +00:00
Marcus Tillmanns
fb96b34337 Utils: Add "amd64" arch detection
Change-Id: I04930aa61714231f54bd4a2d2b644f2e43de2b61
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-09 07:00:20 +00:00
Eike Ziller
fcf76f7b2b Remove empty file
Change-Id: Ib27b1976f04cfa5337f772a3b35318ae89174f52
Reviewed-by: hjk <hjk@qt.io>
2024-07-09 06:53:34 +00:00
Marcus Tillmanns
9dc0a77503 Docker: Make GoCmdBridge optional
Change-Id: I29dbaafca3878b8130ae00eefc57881e35fd31e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-09 06:44:55 +00:00
Christian Stenger
cd0d02f248 Docker: Fix qbs build
Change-Id: I9485518845cf98c6bedd7d9d383518c900636337
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-09 04:36:50 +00:00
Christian Kandeler
38a2189757 ProjectExplorer: Allow build and deploy steps to be run as root
Fixes: QTCREATORBUG-31012
Change-Id: Ie4e6c0da3e17176f61c61ead9d20f203d3c607dc
Reviewed-by: hjk <hjk@qt.io>
2024-07-08 15:43:45 +00:00
Christian Kandeler
332db8de18 qbs build: Do not use relative paths in Export items
Those will be interpreted relative to the importing product in the
future.

Change-Id: I57f6159053acf1e0334d3289de1f93545e2e871b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
v14.0.0-rc1
2024-07-08 14:41:55 +00:00
hjk
c66b02d37e QmlDesigner: Register AssetsLibraryContext more directly
... in the constructor of the relevant AssetsLibraryWidget.

This simplifies the code and ensure the context gets set in all paths
creating such an object. One was missing.

Change-Id: I00daf9ef9f932a35bdc8b2b258c471a655b97fbf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-08 14:38:27 +00:00
hjk
4156287a03 Core: Introduce a IContext::attach() version taking a help provider
... and use it to dissolve the DesignerContext as example.

Change-Id: I0b67989050390fd9017203ec48068c144e0b8ac9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-08 13:57:52 +00:00
hjk
baf20b8491 Core: De-virtualize IContext::contextHelp()
Adapt the using code.

Change-Id: I2f46de253d5f00c4bd74b2adea163b7c23145393
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-08 13:51:08 +00:00
hjk
90e0cd4912 Core: Prepare de-virtualization of IContext::contextHelp
... by providing a way to specify modified implementation
by setting a functor.

Change-Id: Ib0907dd00fdb2ef15242a7ec2e25a5f8a9cc6979
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-08 13:51:01 +00:00
hjk
4992a686e8 Core: De-virtualize IContext widget and context related members
They are not used polymorphic anymore.

Change-Id: Ibb20a5617dcbb65de39214f84c5b29f262f69644
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-08 13:22:36 +00:00
Eike Ziller
028f27781f Core: Fix saving document after showing editor context menu
The editor context menu generated for the drag mark contains actions
that also gets the same shortcut as the global save command, to make
them visible in the menu. This leads to ambiguous shortcut events if
these actions are still taken into account after closing the context
menu.
Avoid this by removing the actions from the context menu again when
hiding it. This was previously done before the menu was shown again, so
this just does it earlier.

Fixes: QTCREATORBUG-31205
Change-Id: I49490c2d6cbd3b000c717f35373e7f9b6b5393e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-08 13:16:22 +00:00
Christian Stenger
533f03f248 SquishTests: Adapt to doc changes
Change-Id: If67606f85b45a9c787cf8cef7fc42721f0be8eaa
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-08 13:08:19 +00:00
David Schulz
7dfbab418f TextEditor: fix toggle visualize whitespace and text wrapping
Fixes: QTCREATORBUG-31202
Change-Id: I9d601dfb9d9b00e2c92525b55874c8314051ae02
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-08 13:04:32 +00:00