Commit Graph

61421 Commits

Author SHA1 Message Date
Robert Loehning
a968789324 Squish: Stabilize tst_qml_js_console
Change-Id: Id5c72fffddcbf88ece36b4109621e10e2a030532
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-30 09:24:47 +00:00
Christian Stenger
fd4c04407f Python: Fix compile for gcc < 6.0
Change-Id: Ia7ef177677a65aa565755313ee9d023aa8e53ef0
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-07-30 08:42:31 +00:00
hjk
0a19b8e115 QmlProfiler: Avoid a deprecation warning
Change-Id: Ie30d30d304faf71dee36c8ae3a37e8974af99bf3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-30 08:14:20 +00:00
David Schulz
a99e5af1da Python: make interpreter configurable
Add settings page to setup python interpreter and use a combo box in the
run configuration to switch between those configured interpreter.

Change-Id: I51014b785ea822ee138d39c788149f1d22901e55
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-07-30 07:41:30 +00:00
Vikas Pachdha
c253bfaf65 QmlDesigner: Add Text to list of known Enum scopes
Change-Id: I58a5af6232c93df24ef0a515630b8c309d36264d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-07-30 07:06:26 +00:00
hjk
1fb41647eb CPlusPlus: Use member initialization in AST.h
This also means that the implicitly-declared default constructor
does the right thing now, and the generator does not have to
take care of updating it anymore.

Change-Id: Ib4de88c506839398ce77ab4eaf4680a9b7e6091e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-30 06:55:51 +00:00
Eike Ziller
87a71794b2 CMake build: Fix compilation of QtWebEngine help backend
Change-Id: Ic0a719ad0fc6b6444a4c0a8b0677d5f66de6d74f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 15:25:56 +00:00
Tobias Hunger
6e49f78b13 CMake: Select better default target when a buildstep's target is no longer found
Select a better fallback target when a buildstep's target is no longer defined.

This change was cherry-picked from master branch:
9519f125e9

Change-Id: I7ef27361793125258cd2a73448d91d2561db5901
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 12:16:30 +00:00
Tobias Hunger
cf65db29e7 CMake: Update target list in build step list widget
Update the target list in the build step list widget for CMakeBuildSteps,
even when "current executable" meta-target is selected.

This change was cherry-picked from master branch:
ce7407dc03

Change-Id: Ifc1d8dc67894202eb38fe6088552797b198c7463
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 12:16:20 +00:00
Tobias Hunger
9481845293 CMake: Add helper method to find the default build target for a BuildStep
Add a helper method to find the default build target for a CMakeBuildStep
based on the BuildStepList the step is part of. Use all/install/clean
targets as appropriate.

This change has been cherry-picked from master branch:
8b9821440d

Change-Id: Idc0c5fae7dfd255039b87ace77c02688cdd76e8f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 12:16:10 +00:00
Tobias Hunger
f9659211ac CMake: Fix target names for "current executable" selection
This patch is not applicable to the master-branch: The buildkeys
for cmake targets have changed there.

Task-number: QTCREATORBUG-22634
Change-Id: I1c8abc42792a004bdadc893129c96e1b7ed428f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 12:15:57 +00:00
hjk
d16330de6d ProjectExplorer: Add a ProjectConfiguration::target()
... with a suitable default implementation accessing a member
populated at construction time instead of walking the parent
chains on each access.

Change-Id: I58dae6da80ed0b023cc603fca13a5a205b123672
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-29 12:06:19 +00:00
hjk
8493a6b044 QmakeProject: Move QmakeBC::isShadowBuild
... to the config widget implementation, which is the only user.

Change-Id: I7cc70b6219dacedf1ef431a1fe21345b9ad69e7b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-29 11:36:05 +00:00
hjk
165f2f8938 Qmake: Replace QmakeBC::emitQmakeBuildConfigurationChanged
... by direct emission of the signal. Signals are public nowadays, so
the indirection is not needed anymore.

Change-Id: I82328a8fa05458e0478a52157863b7265f0a42ad
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-29 11:32:09 +00:00
hjk
0d113dccd3 Todo: Compile fix
Amends 94041d7b44.

Change-Id: Ifbcf7007de5a29c83165cfba6ac4f94256e52585
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-29 11:30:59 +00:00
hjk
d3b770c398 Qbs: Three more cases for Utils::to{Set,List}
Change-Id: I6a400b06ad26c8ee92f13c6bd8b6b0c9e317f897
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-29 11:27:31 +00:00
hjk
01e482f96c Qbs: Use base project() in build step when possible
Change-Id: I8e6a1c9b06273ac77a3c7aa832d5ed4e63e5d475
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-29 11:26:51 +00:00
Christian Kandeler
2a15098c98 Update qbs submodule
To HEAD of 1.14 branch.

Change-Id: Ie8884427e1d46e2c0aae47ef5a45730d8fba6134
Reviewed-by: hjk <hjk@qt.io>
2019-07-29 11:02:53 +00:00
hjk
94041d7b44 Todo: Replace last use of Java-style iterators
Change-Id: I4c6b4910522f2ec9eff6a7f615ea91bfaf99077d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 10:45:22 +00:00
Thomas Hartmann
3987d4fe02 QmlDesigner: Filter item library assets
Change-Id: I3d6b1dbfc071e73277ad8ea60ec0e14ec1602bfb
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-29 10:26:46 +00:00
Robert Loehning
1ac8927665 Squish: Update tst_openqt_creator
Change-Id: I2fed662652f7f8f5cbe4b281bdde5791ea57e2d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-29 10:16:33 +00:00
Christian Stenger
e071c6facb Dumper: Add pylintrc file
...to suppress some common warnings generated from pylint
or respectively pyls.
We usually fail to follow the snake_case naming style
and we tend to have only limited documentation of these
files.

Change-Id: Iaecf767fac68f3be8ad88ccff91a0f5ac24a43e4
Reviewed-by: hjk <hjk@qt.io>
2019-07-29 10:03:32 +00:00
Andre Hartmann
b40e8df9c6 BuildManager: Sort includes
Change-Id: Ief44349de96c4ad51cc760dfce0a372d5732c5ab
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-29 09:55:02 +00:00
Andre Hartmann
4fae51c9d4 BuildManager: Modernize
Change-Id: I414748be50c74133f64e525d72ffcabc404c1e51
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-29 09:54:40 +00:00
Antonio Di Monaco
a10a35d9eb Filter leading GDB messages during version detection
When using GDB through a script, additional messages can be printed
before the line reporting the version number, and some digits of those
messages could be interpreted as a version value, leading to wrong
version detection.

This patch searches for the "GNU gdb" tag first, so the correct
line is evaluated.

Change-Id: Ief64a056a20a963ad01c44941777361abcce00fc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2019-07-29 09:28:21 +00:00
Antonio Di Monaco
545b0537ae Skip pure virtual functions in "Insert Definition From Declaration"
Pure virtual functions do not need a definition.

The issue is that, when the codebase is very huge (hundreds of thousands
of files), the match method starts exploring the whole codebase,
searching for an already present definition that will never be found,
so the QuickFix wastes time for nothing and freezes the UI.

Change-Id: Ia17740d740afcb40ec4f1b3237d8b9f5c1e3d54c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-29 09:28:02 +00:00
Robert Loehning
2ad475a4f5 Squish: Update expected trees
Change-Id: I4962634155ba37780781bbd2b0f25f1d2be2a7ec
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-29 09:21:24 +00:00
Tasuku Suzuki
395b5ec185 Add open online documentation button to help viewer
Change-Id: I21685005709332b1201aaf08804399ecbd82bf7c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 09:15:14 +00:00
hjk
c6301ec797 PerfProfiler: Fix warning from SignalSlotEditor::fromUi()
It said 'no destination widget called "PerfLoadDialog"'.

Another fix might have been to use "PerfProfiler::Internal::PerfLoadDialog",
but since the connection is done in code, and I actually prefer that way,
this remove the broken connections from the .ui file.

Change-Id: I04652bece855c90a11fd2ea2bb872717a3cde88a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 09:07:07 +00:00
hjk
e3b1106afa Compile fix with recent Qt dev
The reasoning in 1b4766e26c did not take into account that the scope
of QT_NO_JAVA_STYLE_ITERATORS may change over time, as done with
f70905448f6 in Qt base.

Change-Id: Ib1966ff26c4d36d5f62e149d6b45baa4aecf825d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 08:54:18 +00:00
Tobias Hunger
02e224fcfa CMake: Support CMAKE_CURRENT_LIST_DIR and CMAKE_CURRENT_SOURCE_DIR
Support CMAKE_CURRENT_LIST_DIR and CMAKE_CURRENT_SOURCE_DIR as
variables in filenames when handling links in the CMake editor.

Having a way to find out variable values in CMake would be nice,
till that arrives, we have to live with hacks to make the most
common variables work:-/

Task-number: QTCREATORBUG-21065
Change-Id: Iffaaae8665e0662226d08b88de37b66d5a5fc4d4
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2019-07-29 08:47:08 +00:00
Tobias Hunger
4aee38e04c CMake: Extract and show more CMake location information for targets
Report more cmake file locations that are relevant to a target in
the "Open..." menu entry in the target's context menu.

This information is extracted from the backtrace information that
is provided by fileapi.

Change-Id: I01659a6cc7254cd0ef6b533a0785d2f15d31c3c6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-07-29 08:46:53 +00:00
Tobias Hunger
9ae4510e27 ProjectNodes: Use QVector instead of QList for LocationInfo
Change-Id: I5bad9e1849b9d752de24626013c9102242d11a0a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2019-07-29 08:45:08 +00:00
Eike Ziller
c71258a0df Merge remote-tracking branch 'origin/4.10'
Change-Id: I24ef6e5c83725185bafed04d38f2523f8aad1ddc
2019-07-29 09:49:02 +02:00
Denis Shienkov
7c2eb93888 BareMetal: Fix auto-detection of C++ IAR toolchain for STM8 architecture
Change-Id: Id466b663990a7d43acc4b6d6ca30163358f2ad44
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-27 06:33:54 +00:00
Robert Loehning
355e4b2018 Squish: Stabilize tst_rename_file
Sometimes, progress bars "Scanning for Tests" show up,
making it unreliable to wait for progress bars only.

Change-Id: I4167d14a6d6cf4bb6ff14223f0be498c92913bd6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-26 14:57:23 +00:00
Robert Loehning
2c5d4ef6f8 Squish: Use parameters in some calls to mouseClick(...)
Partially reverts e8727fcae2 for these lines.

Change-Id: I268b1ff337095bd08d3e92c8be57bc2b6e5de8d9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-26 14:56:47 +00:00
Denis Shienkov
e6418fc3b6 BareMetal: Auto-detect IAR EW toolchain for STM8 architecture
Change-Id: Iebf99149c2b15d5d95510abbda3527e3e1147e15
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-26 14:10:45 +00:00
Denis Shienkov
031448d596 BareMetal: Add STM8 architecture for SDCC toolchain
Previous implementation of SDCC toolchain based on an assumption,
that the default target architecture always is MCS51.

But, the SDCC compiler support multiple architectures:

* http://sdcc.sourceforge.net/

Since we have the new STM8 architecture in the Abi::Architecture
enumeration, it is makes sense to add support for this architecture
and to the SDCC compiler.

Right now, the SDCC compiler will be auto-detected as two instances:

* with mcs51 architecture
* with stm8 architecture

by analogy as it does for the MSVC compiler for multiple x86, x86_64
and so forth architectures.

In case the SDCC compiler is manually added, the user can choose
a desired architecture (mcs51 or stm8) from the combo-box.

Change-Id: I9b7d34f9064ea34c94dab7f1a7e3b64b190f7cb0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-26 14:10:25 +00:00
Denis Shienkov
936e53ceff ProjectExplorer: Introduce new STM8 architecture
This architecture is useful in programming of a bare-metal
devices, based on 8-bit microcontrollers from STMicroelectronics:

* https://en.wikipedia.org/wiki/STM8

Change-Id: Ie5d28a29aaa36e65a29bb96f988e6ee4327e1e9e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-26 14:09:47 +00:00
Tobias Hunger
5f771d972a ProjectNodes: Support different priorities for LocationInfo
Allow to have different priorities for LocationInfo in the FileNodes.

Use this to group the different LocationInfo items in the context
menu.

Change-Id: I13369d996841891ba7165684fe7bfb7687f9d523
Reviewed-by: hjk <hjk@qt.io>
2019-07-26 13:12:32 +00:00
hjk
4fd3e73b54 ProjectExplorer: Use some setters for GenericMakeStep
Instead of using constructor arguments. This makes the constructor
signatures uniform and allows construction of the steps by Id via
the factories.

Change-Id: Idba1b04ec674e36c39950d5949d42ac8043b28c3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-26 13:00:35 +00:00
hjk
a34bf6a23b QmlPuppet: Replace some foreach
Change-Id: I59b4049282564762f75aa5e9a7a0b7eba055db48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-26 12:59:41 +00:00
Robert Loehning
c49f080458 Squish: Fix handling of server issues in tst_codepasting
...properly this time, I hope.

Change-Id: I4cf492f28c99fa15425c44f41656e6220f7a8715
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-26 12:48:12 +00:00
hjk
a6c85993ba ProjectExplorer: Propagate build environment changes more directly
To check this still works I used a CustomRunConfiguration with
a executable name $AAA, the tooltip there tries to expand that
(and complains that $AAA is not an executable).

By inserting a AAA=/bin/ls in the build environment, the tool tip
on the run config exectable path chooser changes appropriately,
same for changing the AAA value.

The connection seems also needed, dropping it destroys that updating.

Change-Id: I28965cbd3ce530a83d98808ca7624a6799cd9800
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-26 12:05:52 +00:00
Christian Kandeler
f940aad53c Fix windows build
Nested classes of exported classes are not exported automatically.
Amends df8ef72aec.

Change-Id: I73b8986c2313d1fa8a2b3a9dc58ff70dd129b6c7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-26 12:00:37 +00:00
Tobias Hunger
4daba5a9fa CMake: Fix working directory for targets in fileapi mode
Prepend the full path to the build directory.

Change-Id: I55111b656fd4b99ee68517c09117f142e88947b1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-26 11:49:01 +00:00
hjk
d2796546a4 ProjectExplorer: Remove unused BuildStepList::steps(...) overload
Change-Id: Idf0aa783c4492eab06f830788df7a480f85c8150
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-26 11:39:52 +00:00
hjk
f784c7e07d ProjectExplorer: Remove one unused Target::subscribeSignal overload
Change-Id: I01df947a1dbd8b0518053dc1db528725c48de820
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-26 10:50:43 +00:00
Christian Kandeler
df8ef72aec Wizards: Do some input validation on repository URLs
Fixes: QTCREATORBUG-18935
Change-Id: Ie2103cbe2899ea23caaedd4a6350c78b5f380ab9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-07-26 10:41:03 +00:00