Fix ConnectionView ComboBox to also include connection targets for
alias and custom properties in inherited external components.
Change-Id: Ic130adebef9de93efef5d2ed61178fed45242cb7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
The code makes an effort to qobject_cast a pointer and check it, yet it
accesses another pointer to do its thing.
If the currentWidget is a QPlainTextEdit, this simply crashes.
Amends: da3b83589b
Change-Id: Ie79fa233b04c392fd5aa72cd512fcd0f0d829659
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Also, fix the broken link to the Qt for MCUs
supported platforms page.
Change-Id: If0a0702b0821e2e46eca2ad57676c53cb20040e2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit implements a possibility to open the memory viewer/editor
for the specified address.
Take into account that it is impossible to open a memory viewer/editor
for a specific local variable or a stack, because the UVSC engine
does not provide an addresses for a local variables.
Change-Id: Ib65a9f9ba2534283c7e3404bc66785767c926053
Reviewed-by: hjk <hjk@qt.io>
The default command is supposed to be a placeholder not
an entry done by the user.
Allow entering an empty string again to rely on the default.
As on it fix place holders inside strings.
Amends e04b9a5348.
Change-Id: I111c843d9620ecc8cf5a7a3c63ca7ac92e588e0c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Name the metadata file after the project being exported
Task-number: QDS-2612
Change-Id: Ia073f6969708f2ed89552dfc7a38305563e2bef2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
These overloads did not add any value, but were just confusing.
Change-Id: Icf3f69a30e2fccc4a4695e79bcf32457b2fb481b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
... on Windows.
We need to open the test file in text mode. Otherwise the raw string
literal will contain carriage returns. As these get dropped by
QTextDocument, the offsets will be inconsistent with the ones reported by
the tokens, causing the test to fail.
Change-Id: I161a3f5791c33416ff732f90fd615cf39d8152ce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Add alias properties to StudioControls AbstractButton
* Add color to StudioControls theme
* Update StateEditor layout due to issue with default label placement
Task-number: QDS-2623
Task-number: QDS-2615
Change-Id: If46daab2293d42dff7d73c4cf9a0c370442c5694
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Amends 4886375994. Compiles for me without.
Change-Id: Iaccbe6a2000d1b87008496f0e515a94aa7955061
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Amends b41ea23233.
Missed that because the file is gone in master.
Task-number: QTCREATORBUG-24544
Change-Id: I7e5948d564c370f9ed197d999778151f2fe61b38
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Step towards aspectification. The new position of the method
implementation are intentional to keep the follow-up patch small.
Change-Id: I89c6982c8380c2a6b0e2bc50fb10f48d5413fc51
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
It's an int. Still, the position is 3 pointer-sizes back due to padding
(the next member after this struct is the char pointer).
The pointer-size + bitwise stripping of the LSB probably doesn't work
on big-endian archs.
Change-Id: I4413d9b32986d1ea0be9abe1be4382ee36a9456c
Reviewed-by: hjk <hjk@qt.io>
The transform properties are only available for Image and Text.
Task-number: QDS-2512
Change-Id: I7c3eb6cb07182afe1e9d307bb5d210f1f2cf9c9f
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Task-number: QDS-2681
Change-Id: I1b4eb312ce88e1ee7bf052020fd4e9d5cf95021c
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Dragging an image to TextureInput item creates a new Texture item at
the same level as the TextureInput and binds TextureInput.texture
property to the newly created texture. Any existing texture binding
is overwritten.
Task-number: QDS-2657
Change-Id: I79cf1a11608914ded4b868336a7d1a9c83071d87
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
In addition, drop the instructions to enable
or disable a plugin. It is already documented
else where and is less relevant in this
context.
Fixes: QTCREATORBUG-24531
Change-Id: Icd1f46333e1d1f64ff24ab0b2eb1e571d533e5ed
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This enables us to get rid of the product name "Qt Quick Designer"
in Qt Design Studio context. However, the macro can no longer be
used for UI text. Actually, it does not make much sense, because the
UI text is not dynamic. It would be good to also replace it in the
UI with something more generic, or with "Form Editor", for example.
Change-Id: I5884f090f915d5ff0c64428239bfd324cd1941c2
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
For some reason, sometimes LLDB misses the first character of the next
command on Windows.
Task-number: QTCREATORBUG-14539
Change-Id: Ide78e0a0aa64ea4cbcaf6b55a0acdd548a1fa46c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
When no clang include dir or version can be detected the runner
does not contain a valid executable so skip that runner.
Change-Id: Ia1b664b65ac4a9d80042d77dfb5b8842ec06dcea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
When changing the default value we may also change the current
state of validity, so trigger a validation immediately.
Amends b938764820.
Change-Id: I99bce422d3a0aa2b6418495b4a2c69255df06674
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
The qmake $() operator retrieves environment values at make time. In Qt
Creator, we still use these values for feeding the code model,
presumably because the qmake and make step share a common environment.
However, we must take care that unset environment values do not lead to
empty strings in qmake lists, as that can have unwanted side effects,
especially when these lists get turned into command line arguments that
are passed to build tools.
A concrete example: A project file contained the following assignment:
QMAKE_CXXFLAGS += $(SOME_VAR)
SOME_VAR was not set in the environment, so an additional empty argument
appeared on the command line when the code model called the MSVC
compiler to retrieve some information required for parsing the code. The
call failed, the code model had to fall back to default values, and the
user got parsing errors.
Fixes: QTCREATORBUG-21729
Change-Id: I224369a2fb9c0dd78406253edba03bd44556be44
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Quick3D shaders and commands dragged to passes from item library will
be automatically added to corresponding property, too. The shader or
command is also moved to the same level as the pass as passes can't
have child nodes.
Task-number: QDS-2657
Change-Id: Id7efc302b06703ddd669b679b65d3adc9ecb48de
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
These marks can now be disabled.
This greys out the annotation color and the icon of the mark.
Change-Id: I5af4591db4baaaef55c986252f77d5d977427b56
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Fixing compilation break in StatesEditorView:
QtCreator is build with 5.12
QScopeGuard is from 5.14+
Replaced scope guard with unique_ptr
original task: QDS-2312
Change-Id: Id6a4bf513f37675044b073be2dfe52e3fa9dc3bc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
... at the second argument.
The logic is as follows: The clang code model checks whether the set of
completions contains any signals. If so, it instructs the built-in code
model to analyze the AST to find out whether the completion location was
at the second argument of a call to QObject::connect(). In that case, we
filter out all non-signals, because they are not valid at that location.
Fixes: QTCREATORBUG-13558
Change-Id: I9c7d0bd16161c723aef822280626cd06ece7df93
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Dragging image asset to any 3D material type now creates a Texture out
of the image. Default materials assign the created Texture to
a diffuse map and principled materials assign it to base color map.
Custom material just creates the Texture without any assignments.
Task-number: QDS-2657
Change-Id: I065f98cbc4d8c3293fbacea9ef8649d0a2edfb0a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
- Added Annotations support for States
Task: QDS-2312
Change-Id: I204ec958f85bd0f05eae0abbb3848d6d59e7e397
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
* Add an enum to the StudioControls ComboBox to indicate type of
interaction
* Force focus on last used ComboBox if activated signal wasn't send
due to editing of the ComboBoxInput
Task-number: QDS-2626
Change-Id: I20b1660a05923baacef30f91080642baacee0378
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>