Commit Graph

64728 Commits

Author SHA1 Message Date
Thomas Hartmann
e245abec9e QmlDesigner: Increase precision for float properties
The precision for float properties in QML was quite low.
We keep the reduced precision for a few known 2d related
properties, but increase it in general.

Task-number: QDS-2190
Change-Id: Ie82ac03485aa52f9b400151153ccaf37a80e39b0
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-06-26 12:32:32 +00:00
Thomas Hartmann
951c112fcc QmlDesigner: Simply use qFuzzyCompare
I think this was done to avoid "ugly"
floats, but any rounding should be done in the rewriter.

Task-number: QDS-2190
Change-Id: Ibc5fc2609b5ac332191b68fe17d76d9afca21f40
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-06-26 12:32:18 +00:00
Alessandro Portale
97ac63b401 Android, McuSupport: Change "download" icons to "online"
The download icon might suggest that clicking that button causes an
automated download/installation. Since we have similar automation in the
Android settings, that could be misleading.

Change-Id: Ia1e4f1cfe15f79daf090546ee7c991f93b23fd13
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-06-26 11:18:40 +00:00
Christian Kandeler
a6098c6b2b CMake: Fix compiler warning about unused lambda capture
Change-Id: Ie95512a247997764d41ca5c5f8ba4cb576f634aa
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-26 11:08:32 +00:00
Christian Kandeler
22830fd5e2 Tests: Fix deprecation warning
Task-number: QTCREATORBUG-24098
Change-Id: Icea21e446173537d8fdb8113f1eff7d7176c34b3
Reviewed-by: hjk <hjk@qt.io>
2020-06-26 10:31:18 +00:00
Assam Boudjelthia
c51bbc3ea7 Android: partially revert 03f6517a6a
Change-Id: Id2d3658343be765a5f131f48f11ee7cced67afb3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-26 10:25:45 +00:00
Assam Boudjelthia
5c5c505910 Android: validate jdk path at start and reload sdkmanager after that
* Validate Jdk path at the start to avoid showing valide settings on
empty path.
* Reload sdkmanager after jdk path is changed to reflect changes.

Change-Id: Ib5eafead9d4f695cf79c55b79866bd3269dadbd5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-26 09:52:28 +00:00
Leena Miettinen
004bef4909 Doc: Update entry-level tutorials
Fixes: QDS-2304
Change-Id: Ib3417b40a19767d79b36bd920d21ae50b903a554
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-26 09:52:20 +00:00
Assam Boudjelthia
b410def067 Android: fix some issues with jdk path detection
* There were two functions to detect jdk path, unified them.
* First try to find jdk 1.8, if not found, look for newer versions.
SDK Tools version 26.x needs jdk 1.8 however, the new cmdline-tools
can work with the newest jdk, so the UI will warn the user if the
selected jdk cannot run sdkmanager potentially because of the jdk
version.

Change-Id: Iee2c378598c26e8a9a8245262110ac20322a2d2b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-26 09:52:17 +00:00
Assam Boudjelthia
ef9f57b5cb Android: remove unused function
Change-Id: I9c267c9dd979ae02070b08d5d95099846749eb2f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-26 09:11:52 +00:00
Christian Kandeler
7fad01eb02 QbsProjectManager: Consider cpp.distributionIncludePaths
... and pass them to the code model.

Fixes: QTCREATORBUG-24162
Change-Id: I4f33bba659fca957c56f2fcb4b8adce28533074b
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
2020-06-26 09:00:32 +00:00
Christian Kandeler
db2f2f92b6 Clang-cl: Consider MSVC 2019
Fixes: QTCREATORBUG-24167
Change-Id: Iff6e98c5cb404c67dce796ad6f7225f97caa4184
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-26 08:59:38 +00:00
Christian Kandeler
832eb5c5a3 Help: Fix clang warning about unneeded copy
Change-Id: I0526245773be1dcc71f7ed28e9c5113f20b66df6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2020-06-26 08:54:41 +00:00
Ville Voutilainen
64896a9436 Android: parse image file names from manifest
Also scales splash images without stretching and reflects them
to other orientations.

Task-number: QTCREATORBUG-24149
Task-number: QTCREATORBUG-24150
Change-Id: Ie23a8ba5f75132971673d3232807e941dfd50f97
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-26 08:39:56 +00:00
Assam Boudjelthia
03f6517a6a Android: use text button for openssl download instead of icon only
Change-Id: I37dd0076c9dad78f8e40921facfec62a7363c27c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-06-26 08:38:54 +00:00
hjk
0283c5cab9 Meson: Adapt to FileName deprecation
Change-Id: I68bc2c7532f74b0377a8030efbaa59abcfccec45
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-26 08:28:13 +00:00
Alessandro Portale
806f7ed68f Android: Set the icon size in NDK list widget to 16px
Change-Id: I2881a3cb355236a7be7d0f803f96f90501b02b6e
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-06-26 08:11:24 +00:00
Thomas Hartmann
cd622fd0a7 QmlDesigner: Reset focus also for objects not derived from Item
Task-number: QDS-2369
Change-Id: Ifa9ce163751bad0de09db5d35f77609210dd0ac5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-06-26 07:59:24 +00:00
Christian Kandeler
6ac416fc81 Target Selector: Do not repeat kit name in context menu
Kit names can get rather unwieldy, and there is no point in repeating
them in this particular context menu, where the user clicked pretty much
right on the kit name.

Fixes: QTCREATORBUG-24242
Change-Id: I04d96e53ece24fd6c54d8aa225d13a0c7354acd0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-26 07:30:19 +00:00
Assam Boudjelthia
af7c218d95 Android: remove native sdk and avd manager buttons
The native SDK and AVD manager buttons are no longer useful, since the
original, visual Java-basd tool for managing SDK and AVDs were removed
from Google's offering. The replacement is a set of command line tools
and a visual tool within Android Studio, which can not directly be
launched from Qt Creator.

Qt Creator has it's UI on top of the command line tools.

Change-Id: If660d7f566c173f46d9b2a97c9204746d33270e6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-26 07:15:07 +00:00
hjk
dbca372780 QmlPuppet: Fall back to pre-Qt5.2 for QVariant comparison
Change-Id: Ibf55561e01f50ec7d689d40b50d100b8d257aa80
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-26 07:11:16 +00:00
Assam Boudjelthia
0bf5ca1b3e Android: rephrase few UI elements in deployment settings
Change-Id: Ief4cf44eda3342f35f828a4a1388ec45fafe8b4a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-06-25 19:55:17 +00:00
Assam Boudjelthia
7acb0d223c Android: describe the warning of am start args more
Change-Id: I12312bfe2aaf7f56be31a9513833a65cba2b036f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-06-25 19:54:13 +00:00
Eike Ziller
bc4c2f8a15 Use the packaging script for the github action
Unifies a bit of what is done. For example this adds documentation and creates a disk image for
macOS. It will also make adding perfparser/elfutils and 32bit wininterrupt and qtcreatorcdbext
easier.

Adds Qt translations.
Adds some useful options to build.py and make it work with python3
Disables detection of debug vs release build in deployqt.py on Windows
if dumpbin is not there (for MinGW).

Change-Id: I3cc33144cad653823321209c219d220eb75093ec
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-25 16:37:28 +00:00
Artur Shepilko
5b53ac9661 Fix compiler warnings about several unused variables
Change-Id: Ic236efdfdfd997719187eec1c19ad2b7f6c044df
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-25 15:23:25 +00:00
Henning Gruendl
131b672f55 QmlDesigner: Fix initial workspace change
Task-number: QDS-1766
Task-number: QDS-2207
Change-Id: Ibc86b4cf5914cb10e8917198095b90073b159290
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-25 13:35:20 +00:00
Eike Ziller
15588ea166 CMake build: Link qtcreatorcdbext statically
As in the qmake build

Fixes: QTCREATORBUG-24252
Change-Id: Ifb6b375dfe515bb5ace2e70fcd2282d25b919ed5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-25 13:30:31 +00:00
Aleksei German
4ed146035e QmlDesigner: Fix for Connections visibility
- Fixes an issue with connection model not finding Connections in 5.15

Task: QDS-2412

Change-Id: I07bbb900907aaaebccdd90dbc1f037ee0b2fcc61
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-25 13:13:05 +00:00
Eike Ziller
c0770313f3 CMake: Fix changing build directory
It wasn't possible to change the build directory if the old directory
didn't already contain a build.

Amends 7e6e02eb08

Change-Id: I741f6981273a4e04cceabde5b15b5ad951535ef8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-25 13:07:22 +00:00
Leena Miettinen
31efb97e3c Doc: Describe the Add Forward Declaration refactoring action
Task-number: QTCREATORBUG-23444
Change-Id: Iaa38197a6e37b3507aad8ca756a94fa1eb05633b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-25 12:56:00 +00:00
hjk
158dee7eb6 Android: Move connections out of .ui
... and make them compile when using Qt 6 uic.

Change-Id: If5a9a052c62aa2641c60378bb26916325aed628e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-25 12:44:51 +00:00
Thomas Hartmann
b96b0e4230 QmlDesigner: Remove old QtQuick 1 code
Change-Id: I523419689ab7667900de6ca72aa736e14064ab34
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-25 12:03:23 +00:00
Thomas Hartmann
a381d8efc8 QmlDesigner: Fix crash on puppet
Change-Id: I233d3dab5a509bfd7c9a30c7dcc15dcf8751f456
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-25 12:02:57 +00:00
Leena Miettinen
b127088992 Doc: Describe new language server features
Change-Id: Id5d241777bd79196638596a582c685df4f335edf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-25 11:58:27 +00:00
Alessandro Portale
b5ffff28ce Android: Make OpenSSL clone progress dialog application-modal
We need to hold the user off from doing funky stuff while cloning, like
for example from pressing the clone button multiple times in a row.

Change-Id: Ib20218e0b0fa28852412da2b71ec5ba410d682e8
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-06-25 11:11:04 +00:00
Alessandro Portale
143ff3e126 Android: Trigger PathChooser validation after OpenSSL cloning
In case the path was non-existent before the cloning, it should not be
"red" anymore after cloning.

Change-Id: If33cfbd07710e317505a9fe1e4b3b9f19a10d5db
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-06-25 11:10:08 +00:00
Assam Boudjelthia
998c07dcbe Android: handle more potential fails for when cloning
Fixes: QTCREATORBUG-24200
Change-Id: I3f54f0610a70654c3711e7dc3bfd5f22863b2cd2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-25 11:09:36 +00:00
Leena Miettinen
cb5b0cffb3 Doc: Describe starting Python interactive shell with options
Change-Id: Ife42fd2313b4855686abf12fd536e024f7650ef9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-25 10:05:53 +00:00
The Qt Project
aba5ecb363 Merge "Merge remote-tracking branch 'origin/4.12'" 2020-06-25 08:11:07 +00:00
Thomas Hartmann
ad17ea9611 QmlJS: Fix false positives for Connections
Connections and ListElement are in the QtQml scope,
when using type information from Qt kit.

Change-Id: I6236a317117e15f4b68c0642186bfdb91d0c92db
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Christian Kamm <mail@ckamm.de>
2020-06-25 08:10:43 +00:00
Miikka Heikkinen
3dc946374b QmlDesigner: Insert dragged material into parent model's materials list
When a material is dragged from item library into a Model nodel in
navigator, the material is automatically inserted into
the model's materials list.

Change-Id: I9a9bd10c433a4fead037ddac8238c14cdc91e3c4
Fixes: QDS-1651
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-25 08:07:56 +00:00
Miikka Heikkinen
60ff6b6577 QmlDesigner: Improve usage of QML items as quick3d textures
Quick3D Texture elements require some window signals to show QML item
as texture, so we fake them to make textures appear in form editor
and state preview. To prevent texture mirroring, flipV value
is force set at proxy creation. To keep state preview up to date,
we trigger multiple render passes if there are any QML items used
as texture sources in quick3D textures.

Task-number: QDS-2290
Change-Id: I16c34aad943213c0b737fdb073333be3bbd40f2d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-06-25 08:07:41 +00:00
Eike Ziller
7c329e1902 Merge remote-tracking branch 'origin/4.12'
Change-Id: I4935b6afdb13627f32e850a4c8b536de0269bc4b
2020-06-25 09:28:57 +02:00
hjk
c6b9a03b39 ADS: Make it compile with current Qt dev
Change-Id: Ibea7545b443341da5d079900edcc32439a47c12f
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-25 07:18:17 +00:00
hjk
03838decb9 More QRegularExpression and include for Qt 6
Task-number: QTCREATORBUG-24098
Change-Id: Ia537e26efd3f37319c38d906e569b255768371f9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-25 07:13:43 +00:00
Federico Guerinoni
5a091c3d98 ExtensionSystem: Make API for revision in PluginSpec
Change-Id: Icdc6bfa565cf67faa829fd473f2890e4987bd261
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-25 07:08:06 +00:00
Eike Ziller
0238bff7d5 Plugin install: Make 7z verbose
Change-Id: I1f2dbb607f8c38018f6ee8631539caef1213ee8f
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-25 06:58:22 +00:00
Leena Miettinen
0ce677b9e9 Doc: Describe the Analyze File button on the code editor toolbar
Change-Id: Ibf9dca943f925db9dbfd82d8bc2e5505428994dc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-25 06:35:27 +00:00
Friedemann Kleint
2bc4d82d31 Fix crash opening UI files
Add a null check, amending
aaa1376576.

Fixes: QTCREATORBUG-24241
Change-Id: I63e76b9d2dd10034b637f8f3cac5001b15b35d30
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-25 05:26:14 +00:00
Fawzi Mohamed
96c1b4119e QML: ensure that signal treated like functions/slots in completions
Renames enumerateSlots -> enumerateMethods to mirror the new usage

Fixes: QTCREATORBUG-24124
Change-Id: I31ac7d5f4bf568e1ab9c9463b1ebd0011dfcb9d6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2020-06-24 22:44:16 +00:00