Commit Graph

72385 Commits

Author SHA1 Message Date
Marco Bubke
3fd3cc307e QmlDesigner: Don't export members which are not used outside
Change-Id: I2eb756484a13ce81fd55e7b991d3a509045974e8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-04 13:49:17 +00:00
Jarek Kobus
75df106c37 Remove unused method declaration
Amends 20d19aa5bf

Change-Id: I8231a331d1200a82f88b96fb703b9e2945efad1d
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-04 13:12:08 +00:00
Orgad Shaneh
28334638ab Debugger: Fix MSVC warning
warning: C4305: '/=': truncation from 'int' to 'IntType'

with q[u]int8 template argument.

Change-Id: I0f0063191b0e51ab79f94073ead65da86ea82440
Reviewed-by: hjk <hjk@qt.io>
2022-01-04 12:46:49 +00:00
David Schulz
14f40f3cdf RemoteLinux: fix qbs build
Change-Id: Id2ba2decfca5941e2b5c2503b78a089ca69d92e5
Reviewed-by: hjk <hjk@qt.io>
2022-01-04 12:36:52 +00:00
Leena Miettinen
d55b50eabb Doc: Add filename extension to \inlineimage ok.png
...to remove a qdoc warning about the image not existing.

Change-Id: Id04dcb6cc76cbaaee6d8c9782add779d7f9dfbc9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-01-04 12:01:00 +00:00
Marco Bubke
b1760d15fe QmlDesigner: Add ExplicitImageCacheImageProvider
Task-number: QDS-5860
Change-Id: I755ddedebbfb9f7bcf0b6c93069f3e762706cb7f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-01-04 12:00:18 +00:00
Marco Bubke
24087bd8b6 QmlDesigner: Add AsynchronousImageFactory
Task-number: QDS-5861
Change-Id: I3d938b3ddaa965da2105a326ea68f498dbb60fa0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-01-04 12:00:11 +00:00
Marco Bubke
d479047275 QmlDesigner: Use optional for ImageCache*
There are now matcher in google test for optional.

Change-Id: Ib3389fb0f537fd19a2930e7108483736bbba1628
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-01-04 12:00:04 +00:00
Marco Bubke
3816250f27 QmlDesigner: Add AsynchronousExplicitImageCache
Task-number: QDS-5859
Change-Id: I962be68f22ba0c0118c14149a0d0ecf395934db5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-01-04 11:59:59 +00:00
hjk
20d19aa5bf RemoteLinux: Implement some of the remote file API
Implementation of remote file API for correct FilePath
work with RemoteLinux.
Added tests for this functionality

Run ssh shell in separate thread.
The linux device instance keeps its own thread for running
SshRemoteProcess. In this way all calls to filepath
interface of linux device coming from different threads
are executed in one thread (SshRemoteProcess is reentrant,
but not thread safe). The redirection to the device thread
is done by invoking SshRemoteProcess' methods through
BlockingQueuedConnection.

Done-by: Artem Sokolovskii
Change-Id: Id8756738d3a4597f175c8ef000c148d0c8536eeb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-01-04 11:16:14 +00:00
Leena Miettinen
05d7343018 Doc: Copy icons from sources to images\icons
Copy black icons with white background to be able to
turn them gray with transparent background as a first
step of making them visible in both light and dark online
doc modes.

Task-number: QDS-5693
Change-Id: I317714ba355d7c05742434fcdcafa87aef732dd4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-01-04 11:07:44 +00:00
Eike Ziller
5a135ba442 Modeling: Fix queued connections for Qt 6
The argument must be registered as a meta type for queued connections.
This also depends on a consistent naming of the type in the signal
arguments (which best is fully qualified).

Fixes: QTCREATORBUG-26760
Task-number: QTCREATORBUG-24098
Change-Id: I83991326f051d592a1665ae8cdb472d8376e74bc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-01-04 11:03:08 +00:00
Leena Miettinen
8d06519211 Doc: Describe new and modified Debugger keyboard shortcuts
F9 (F8 on macOS) is now Set or Remove Breakpoint and
Ctrl+9 (Ctrl+8) was added for Enable or Disable Breakpoint.

Task-number: QTCREATORBUG-26788
Change-Id: I54ddf2f15812dd5349ac31c8afade84c0e3fff96
Reviewed-by: hjk <hjk@qt.io>
2022-01-04 09:47:24 +00:00
Orgad Shaneh
be9922c357 QmlJS: Add a missing include
Amends 125d7c0cce.

Change-Id: Ibfd6bb7da52547f743534105bf759387b674c2c1
Reviewed-by: hjk <hjk@qt.io>
2022-01-04 07:00:14 +00:00
hjk
f2dea561ba Debugger: Introduce a Ctrl-F9 shortcut to enable/disable breakpoints
Since "toggle" now becomes ambiguous, change "Toggle Breakpoint"
to "Set or Remove Breakpoint" and add a new "Enable or Disable
Breakpoint"

Fixes: QTCREATORBUG-26788
Change-Id: I7902308298570360af202fced90bf44fc1a59adb
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-01-04 06:14:16 +00:00
Petar Perisin
32ed2df2f9 Autotools: setup configure command if it did not exist
since 'configure' file does not exist before 'autoreconf' is
executed first time, it is possible that initially 'configure'
does not exist. Therefore command need to be recalculated again
when step is about to be executed

Change-Id: I7eeeaefd6d41adb2bcb247e35a3de5862899c8db
Reviewed-by: hjk <hjk@qt.io>
2022-01-03 15:41:30 +00:00
Eike Ziller
7d92375b2f Merge remote-tracking branch 'origin/6.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri
	src/plugins/clangcodemodel/clangdclient.cpp

Change-Id: I75c954d2e573d65089205d2542747bba3276be2a
2022-01-03 14:14:12 +01:00
hjk
ea13ade822 Debugger: Add QStringView dumper
Fixes: QTCREATORBUG-20918
Change-Id: Ib16ac37000d227e6af2bc6d6640136ba0a7333b1
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-03 13:07:56 +00:00
hjk
bf00252a34 Ssh: Simplify SshRemoteProcess interface a bit
Change-Id: I6871b16c05172d6b705f666c7962dd82320c6e8f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-03 12:48:23 +00:00
hjk
a68f2b48ac Ssh: Drop unneeded #include in sshprocess.cpp
Change-Id: Ibea173e81dc515e55d2a15be3c794016b6a49b99
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-01-03 12:45:57 +00:00
hjk
e8ae475fcf Debugger: Add a "Char Code Integer"
Fixes: QTCREATORBUG-22849
Change-Id: Id601eb5cbe1211cff595f04b5910a21f1ba33128
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-03 12:45:39 +00:00
Jarek Kobus
035ba1c10e Use ranged for loop in DeviceManager
Change-Id: Ic3017de13be1cdff63d800bfe94af46055d93b54
Reviewed-by: hjk <hjk@qt.io>
2022-01-03 12:45:37 +00:00
hjk
42abef3434 Utils: Make FileSystemModel more flexible wrt to case sensitivity
We need to handle more than a host file system.

Change-Id: Ia5940f35437f9953df007616bb998698740db9ad
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-01-03 12:45:20 +00:00
Jarek Kobus
34ada7c1ff SshConnection: Remove unneeded includes
Change-Id: I03bc01ca1f9143bc0aa1574957bc30112d07a8dd
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-01-03 12:34:33 +00:00
Jarek Kobus
ee2960989e Remove unused SshConnection::dataAvailable() signal
Change-Id: I1e12965931a7623ed03d0e703b275eb02ddaf6c7
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-03 12:34:24 +00:00
Jarek Kobus
04362afed2 Make connParams a const member
Change-Id: I1dc75414766b9ec6c16a1c7080878da51310863c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-01-03 12:34:03 +00:00
Jarek Kobus
3ac6e7aaa3 Remove unneeded SshConnection member
Change-Id: I8c4d3af7c183fa0bcc4d80f7bdb64acc7c745e73
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-01-03 12:33:52 +00:00
hjk
09e4e7ff28 Debugger: Use Book case for start action
Re-using the tooltip gets capitalization wrong...

Change-Id: Id9a5147a5be8e7c20a8b82d108dbec092799a48c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-03 11:29:49 +00:00
Thomas Hartmann
cf5fc98a2c QmlDesigner: Prefer content subfolder for assets
Task-number: QDS-5823
Change-Id: Ic66d85c594a8711b4961e5481bd82bc05b666361
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-01-03 09:02:11 +00:00
Jarek Kobus
b55a42840b Move some static private methods of DeviceManager into cpp file
Change-Id: Ia37ca1e69ecb93d335cc2800d17951ac3f7974a1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-01-03 08:58:59 +00:00
Alessandro Portale
f6c26233c8 QmakePM: Treat QMAKE_CC/CXX as user input when converting to FilePath
qmake may construct QMAKE_CC and QMAKE_CXX by using paths from
environment variables that have native delimiters. That is the case with
Android (see mkspecs/android-clang/qmake.conf).

That leads to QMAKE_CC and QMAKE_CXX having mixed-style path separators,
and that is the reason to treat them as user input.

Change-Id: I1baf180c16710f4cd00ac182fa241b84ae99fa38
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-01-03 08:30:11 +00:00
David Schulz
76921ea170 Editor: skip short lines in block selection
Do not include lines into the block selection that are shorter than the
block selection start column.

Task-number: QTCREATORBUG-26548
Change-Id: I6e4e26e1c498fb02dd0ebc8b78b8907c23f356b8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-01-03 07:17:30 +00:00
Tim Jenssen
57381ab358 Utils: fix windows compilation
Change-Id: I96eaa8d9141ea966914b881f60746661a4f0ae51
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2021-12-27 12:03:45 +00:00
Alessandro Portale
a6147a0683 ProjectExplorer: Use a constant for "default" session name
Some duplications of a string may perhaps be fine, but eight occurrences
need a constant. Also, understanding code works better by using the code
model instead of full-text search.

Change-Id: I2944cf9216c825b930dedaae1085491fd10feba5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-12-25 10:07:35 +00:00
Thomas Hartmann
e35dedcf32 QmlDesigner: Add a plugin for studio wizards
This plugin contains the Qt Design Studio specific wizards.
Beforehand the plugin was part of another private repository.
With this patch, those wizards become open source.

The wizards require a specificly configured Qt kit that
comes with Qt Design Studio.
This is checked by
"featuresRequired": [ "QtStudio" ] in the wizards.

Task-number: QDS-5703
Change-Id: Ic9adcc7ff0cbb3ec6a7dfe51b506b4f86c6f50bc
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-12-23 13:57:39 +00:00
Thomas Hartmann
4d1e10e7d4 QmlDesigner: Fix crash
Create an id for nodes if keyframe is added.
Added missing ::executeInTransaction().
Using executeInTransaction() catches exceptions.

Task-number: QDS-5769
Change-Id: I395d98eec6ead091bd8578019ec3f958b4099db8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2021-12-22 14:58:35 +00:00
Tapani Mattila
41ad55a789 Fix missing const in function signature: generatecmakelists.cpp
Change-Id: I3ceae315513f94cb402ba22a48849138ae3944d3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-21 18:00:38 +00:00
Jarek Kobus
f25300cadf Fix a possible crash in process launcher
It may apparently happen that when calling QProcess::start()
we may receive a synchronous signal QProcess::errorOccurred()
from the process we are trying to start. In this case
the handler of the error signal might have removed the
process from m_processes hash, which invalidated the
"Process *& process" reference inside
LauncherSocketHandler::handleStartPacket(). So, using
process reference after calling start() may be dangerous.

Refactor ProcessStartHandler so that it stores the pointer
to the process it handles. The pointer to the handler
should still be valid after calling start(), since
the process itself is being deleted with a delay.

Make ProcessStartHandler a member of ProcessHelper. In this
way it's being reused in QProcessImpl and ProcessLauncher.

Fixes: QTCREATORBUG-26726
Change-Id: I8e3f39953035d76c83bbbb13bd78e3042ba2a14e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-12-21 12:47:05 +00:00
Tapani Mattila
8a14a14aae CMake generator: Include qt control configuration file in executable
Task-number: QDS-5815
Change-Id: I8ea049c60ce2f0217e3598e2a2a92dad7a776449
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-21 10:31:50 +00:00
hjk
d76fab2685 Debugger: Add dumper for quint{16,32,64}_{be,le}
Change-Id: Ieaa27a98b829455b69de0f8051fee8cbc3fa78f0
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-12-21 08:52:30 +00:00
Petar Perisin
8bc1559dc6 Fix SUBDIRS parsing in autotools
Make this example work:

  SUBDIRS =
  SUBDIRS += \
             src
  SUBDIRS += \
             src2

Change-Id: I9beb8e6b22d2a8bf647590f872e8fe0b2c677eba
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2021-12-21 08:48:03 +00:00
Tapani Mattila
9b3575f9cf CMake generator: Generate environment header
Task-number: QDS-5706
Change-Id: I650a70ec3dc821458332d86effe872ffe19f2a60
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-12-20 13:00:48 +00:00
Christiaan Janssen
fc25c76a4f McuSupport: provide RunConfigurations for multiple CMake targets
Task-number: QTCREATORBUG-26656
Change-Id: I2177044580f9137a5c530cc0a862d69d389fe447
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-12-20 08:10:36 +00:00
Christian Kandeler
32de9edfae ClangSupport: Fix build with MSVC 2022
Change-Id: I0d37548c48081caee4dd3e470799353fc56b1b3a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-12-17 19:03:57 +00:00
Christian Kandeler
3cf51b0cc7 ClangCodeModel: Fix build with MSVC 2022
Change-Id: Ifd0e1e67057e57e4c978784e9634f987edb9dfe4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-12-17 19:03:28 +00:00
Alessandro Portale
b1db3d2506 WebAssembly: Proper fix for targetname != projectname
Insipred by a similar fix in McuSupport, it became now clear to me how
to get the target name (aka buildkey) for a runconfiguration.

The hack of searching for .html files can be removed.

At the same time, remove the very detailed update connections, and just
update on Target::buildSystemUpdated.

Amends: dd1882b817

Task-number: QTCREATORBUG-26562
Change-Id: Ic07b36a1e618d6cc2b6f2ee50b4170170f707632
Reviewed-by: hjk <hjk@qt.io>
2021-12-17 17:14:36 +00:00
Jarek Kobus
44e839ac0f Reuse shared ssh connection in LocalAddressFinder
This reduces the time spent on making a new connection
from about 100 ms to 0.

Change-Id: I56508d1d0031b166a8f28604dde0b80375c438f0
Reviewed-by: hjk <hjk@qt.io>
2021-12-17 16:20:23 +00:00
Jarek Kobus
46db545a90 Install LocalAddressFinder also as stop dependency
The LocalAddressFinder was installed as a start dependency
for MemcheckToolRunner. However, it wasn't registered as
stop dependency for it. This means that when
MemcheckToolRunner was finished, its RunControl couldn't
finish as one of its RunWorkers wasn't finished yet.

Install LocalAddressFinder as a stop dependency and
implement a stop() method which disconnects the conneciton.

This also prevents the ApplicationOutput pane to open
a new tab on successive run of Memcheck for the same
application.

Fixes: QTCREATORBUG-26758
Change-Id: Ib71ddbe787e5c1bcc7b96687ebf15c9b63b714dc
Reviewed-by: hjk <hjk@qt.io>
2021-12-17 16:20:15 +00:00
Eike Ziller
303f958ee0 Bump version to 6.0.2
Change-Id: I4e6fcbded04028bf20433984f0679fafa54da310
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-12-17 13:24:30 +00:00
Allan Sandfeld Jensen
2b0a4a1245 Do not pick up KF5 libraries when building against Qt6
Fixes: QTCREATORBUG-26742
Change-Id: I535c4b3f0718104136ed1b498166083c6eba5688
(cherry picked from commit 4ccbbc2f24)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-12-17 13:16:17 +00:00