Commit Graph

47678 Commits

Author SHA1 Message Date
Thomas Hartmann
c7b51f2ad3 QmlDesigner: Show errors when parsing failed
Seeing the parser error message makes debugging easier.

Change-Id: I3162a4d8cdf116714f457b84f9055769747169a7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-21 15:24:08 +00:00
Alessandro Portale
76e51ac5bb Help: Fix some clang warnings
Change-Id: I6e65e0819333d7d5e7f697718690bc8d80b1b189
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-21 14:47:26 +00:00
Christian Stenger
ae3483da27 Debugger: Avoid null pointer access
Change-Id: I85cc637d60797bfa182c045b81d3520919bbfde9
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 13:06:29 +00:00
hjk
4d47a68425 Debugger: Fix native type field lookups for typedefed structures
Change-Id: Ibd120ce43771c35b23b51bfc598ee5f32ee7af75
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-21 13:05:56 +00:00
Christian Stenger
a8493ae987 Debugger: Fix double clicking watch handler
Double clicking watch handler window without hitting an item
used to trigger 'Add New Expression Evaluator...'.

Change-Id: I452eb56476f7186ac36f7a9f1e9d2a43c109a9b1
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 12:49:23 +00:00
Marco Bubke
d4e68b7e09 Clang: Finish refactoring process explicit
Change-Id: I90b5efd8cf0492c7528ebdf14d6b5dc0b7b28536
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-21 12:26:29 +00:00
Marco Bubke
3fd6b1fa0a Clang: Initialize not static but at plug initialization
Change-Id: I856c35c81d13f31c290ef40dad5ee647ab521052
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-21 12:26:17 +00:00
Christian Stenger
62b2c85806 Debugger: Fix triggering 'Add New Expression Evaluator...'
Change-Id: I961e4afb17b14210474fa69138c4671aaaca5b7d
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 12:23:52 +00:00
Tim Jenssen
a9221a53d8 QmlJS: improve static initializings
Change-Id: Ifa37c912d0e43bcda896cb0ea851f97566c88d78
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2016-09-21 12:05:23 +00:00
Orgad Shaneh
11abe3adcf Utils: Use QSysInfo::prettyProductName instead of getOsString
... in NetworkAccessManager

Change-Id: I0fb518765d7d130d1f18ede87230f03c33c3205c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-21 11:51:29 +00:00
Orgad Shaneh
ed68bda40d Utils: Replace macro usages with HostOsInfo
Change-Id: Iddec811b4b57a2a898ebdf319a3e2ec875febd6c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-21 11:35:14 +00:00
Orgad Shaneh
5305a58a51 TreeView: Set current index by selection
... on KeyPress event and others.

This fixes e.g. deleting a watch expression by pressing the Delete key.

Change-Id: Ie0eabf20fb4aeee8349d0282aa4378835d07bc43
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 10:42:12 +00:00
hjk
67cf72e377 Debugger: Consolidate some almost common code
The remaining differences were not relevant anymore.

Change-Id: I4db80e8dde4c394267527828a2265aee619acec2
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 10:21:50 +00:00
hjk
6ac8a445e5 Debugger: Remove some now-unused code
Change-Id: I389b827030ab241ecc0b1875d9743faac517bd49
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 10:15:15 +00:00
hjk
b4251d6d24 Debugger: Consolidate code to enumerate shadowed variables
... in {ll,g}dbbridge.py and fix expansion of shadowed items.

Change-Id: Ide0c426416f2df85470fe851f265cf4835395680
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 10:13:12 +00:00
Eike Ziller
39555d3b86 Projects mode: Make plus icon dark and get rid of branch indicators
The PLUS icon was actually PLUS_TOOLBAR, so name it that way and add an
actual PLUS icon.
Remove the drawing of the branch indicators from the kit tree view by
overriding the method that does it.

Change-Id: I395e5187c1738faaee3e122b4f3f359261b514d7
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 10:02:22 +00:00
Eike Ziller
29dffc75ab Welcome: Fix ugly session and project numbers
Get rid of colons, don't show numbers > 9, and separate them from
session/project name.

Also tries to unify the painting of project and session items a bit
(project items were actually painted a bit higher than session items
here)

Change-Id: Ibc850a9db273357f2799c0558f6ee78e320f45ff
Reviewed-by: Serhii Moroz <frost.asm@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-09-21 07:51:56 +00:00
Tobias Hunger
4e1761f70a Kit: Add a method to retrieve all existing keys
Change-Id: I819fa19e2b4b2a96c3ea8f556ba0ce9116e5f3dc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-21 07:43:59 +00:00
Alessandro Portale
f267f1125d Reapply "Tools: Disable building clangrefactoringbackend"
This reverts commit f3066bf4c0.

The clangrefactoring seems to need something which is not provided by
our current prebuilt clang packages. Therefore, the nightly build breaks
on all platforms

Change-Id: Ibc4c2d548659b0b4cc437b5f87c3c65b0ab4288b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-21 07:06:58 +00:00
Orgad Shaneh
baf74ae070 QbsPM: Support variables in build configuration properties
Change-Id: Id438c33d14e0e7b27ea81fa39395c2d68d8a7736
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-09-20 17:12:53 +00:00
hjk
01e2226a70 Debugger: Fix Core::Id dumper
Change-Id: I90db638bfd84bef0d14d804862771e2c10dbbf6c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-09-20 15:34:25 +00:00
Alessandro Portale
f3066bf4c0 Revert "Tools: Disable building clangrefactoringbackend"
This reverts commit 7efe8f429c.
The .pro file in clangrefactoringbackend now checks whether
the tool can be built or not.

Change-Id: Ib9a2ccd3c72f188faa0e24a6311632480da005e3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-20 13:55:34 +00:00
hjk
b8f96f5629 Debugger: Make {G,Ll}dbEngine::doUpdateLocals more similar
Change-Id: I8877dbc3b6c9166d8d8781453b753f22ebc0a579
Reviewed-by: hjk <hjk@qt.io>
2016-09-20 13:37:19 +00:00
hjk
6d22c8dafb Debugger: Re-enable Moduleshandler context menu also below entries
Change-Id: I2e8cb9289770b46145de0850d15b4124aa5a1536
Reviewed-by: hjk <hjk@qt.io>
2016-09-20 13:36:34 +00:00
Marco Bubke
8151a09fdc Clang: Requires a clang debug build for windows
Under windows you cannot mix debug and release builds. So we require that
clang is build as debug if the creator is build in debug.

Change-Id: Ie46a1f13d83a7afbf81129ed75d0519fa9f5268d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-20 13:08:14 +00:00
Alessandro Portale
e809594fae Core: Make IOptionsPage::categoryIcon a Utils::Icon
This is necessary for themable + HighDPI icons in the options dialog.

Change-Id: I8e3ff87a24591af40bb76b39cd970443d7678fae
Reviewed-by: hjk <hjk@qt.io>
2016-09-20 12:52:49 +00:00
hjk
c71c00cf48 Debugger: Re-enable editing through Locals&Expressions view
Fix recent regression in double-click event propagation.

Change-Id: Ic69d0d95701c8168331b1627fbd9334b8f5dc0d4
Reviewed-by: hjk <hjk@qt.io>
2016-09-20 12:13:52 +00:00
Thomas Hartmann
d7a23f9716 QmlDesigner: Allow to edit when condition in states editor
The when condition for each state can now be edited.

Change-Id: If569e3f22e2eee34b9333b3e139da59768649811
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-20 10:31:16 +00:00
Tim Jenssen
b225a52842 QmlDesigner: remove bounding rect adjustments
After using cosmetic pen this is not necessary anymore.

Change-Id: I91b9ca52d00650dfb8e5bc8ed20802431bc742bd
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-09-20 10:05:17 +00:00
Tim Jenssen
92f03e1673 QmlDesigner: Use cosmetic pen in all tools to draw lines
This way the lines do not become ugly when zooming in.

Change-Id: I92a35244a53bfa8320482c7cf9e8454e7b783abc
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-09-20 10:05:07 +00:00
Orgad Shaneh
dd86735111 Android: Use QThread::sleep instead of STL
Change-Id: Ib16e8450732789e801f82e2d037b20868e444538
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-20 09:59:17 +00:00
hjk
e2c45012d6 Debugger: Streamline type code handling
GDB and LLDB share some ideas but are not identical. Map them
both to what we need in the end. This also reduces the size
of the Type class interface as a step towards more type info
caching.

Change-Id: I43e60c4e5736ac15a5c776832ffb8e6939f45e45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-20 09:22:34 +00:00
David Schulz
14c65ed6db CdbExt: Add python scripting
Introducing the script extension command that allows
to run basic python code.

Change-Id: I356ca5408474be0206b1c77cf2a0ecf6640ec651
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-20 08:58:25 +00:00
hjk
a2a766d770 ProjectExplorer: Don't select kit on activation
Otherwise, uninterruptable project parsing is triggered.

Change-Id: I0ae106a390f8c0cf3849a9feb8ef4e1800e07e33
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-20 08:33:48 +00:00
Takumi ASAKI
33d67828f6 EditorManager: Use "URL" in message
Change-Id: Icfd31b7cd89a727a3fbfc53ad53f036f7f7c3120
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-09-20 01:49:41 +00:00
Thomas Hartmann
648a909918 QmlDesigner: Allow to toggle alias exporting in property editor
Change-Id: I8d293eb5a5fa7d6f7092f2fc857e19e9c4014c60
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 15:46:52 +00:00
Marco Bubke
381bee1434 Clang: fix llvm lib linking on windows
If we use paths with spaces we cannot split them anymore so we have to
handle unix and windows differently.

Change-Id: Ibfc8c51cfe2ecd68e913ad84e0e1269eb7eeda02
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 15:27:25 +00:00
Marco Bubke
47c01daeb2 UnitTest: Cleanup
Improve naming and introduce googletest.h.

Change-Id: I445c13db4c23d6dd5682ce0db3b83055cc6b8a89
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 15:17:54 +00:00
Thomas Hartmann
f717064a91 QmlDesigner: Use cosmetic pen in form editor
This way the selection rectangles do not become ugly when zooming in.

Change-Id: I78f1bd106c94f0e40ebcbc1be5a52fc914a015f1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 14:17:57 +00:00
Ulf Hermann
7dab165c3b QmlPuppet: Don't crash when failing to lock shared memory
Obviously, you cannot set m_sharedMemory to 0 and then write the error
and errorString to it.

Change-Id: Ifcacfd7adcb4ff2fd88ebda21aa81094337233f6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 14:07:18 +00:00
hjk
b259939755 ProjectWindow: Make kit activation easier
Add a [+] icon for inactive kit entries, add a "Click to activate" to
the tool tip, and allow single click activation.

Change-Id: I1219eb54b4e3a077ef133afaf71134bb35e14fb7
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-09-19 12:43:15 +00:00
Thomas Hartmann
8c76f08ce4 QmlDesigner: Update anchors if selected node is reparented
If a node is reparented in the navigator we have to update
the anchor backend.

Change-Id: I5eb586410ee5d270c3f1b4fef7e3fa37afbc7921
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 12:29:09 +00:00
Tim Jenssen
3198c39338 AutoTest: fix Qbs build
Change-Id: I1ce88038fa1159c0debb0d4fd9cf6550b2ba8ad8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-19 11:48:23 +00:00
Tobias Hunger
0a237174dd Kit: Do not allow kitinformation to spam the kit's tooltip
Change-Id: I9fbd4072625567f110f29bc7e65a68e14c4bc6b2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 11:46:37 +00:00
Christian Stenger
b5875e84cb AutoTest: Generalize framework specific settings
Change-Id: Ie8a1db6408d2ceac7331d29ef25d193a15186a4c
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-19 09:59:40 +00:00
Christian Stenger
7f89df16a2 AutoTest: Separate settings
This is a preparation for providing a way to let a framework define
its own settings.
This patch breaks old (framework) settings as some options have been
renamed and/or moved into sub groups.

Change-Id: If43678bcf75f6153adba52ebdfb12cd7c043ad25
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-19 09:59:34 +00:00
Christian Stenger
fde344fff3 AutoTest: Simplify settings handling
There is no need to check complete settings whether something has
changed before setting them.
Limit the check to what is needed and remove unneeded functionality.

Change-Id: Icdf99d89d795edc20338a774ca7e90b1e4f1e417
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-19 09:59:27 +00:00
hjk
f1a85e1441 Debugger: Reduce reliance on implicit conversions
Easier maintenance if code is typesafe. Whatever that means in Python.

Change-Id: I450e5d42bcfdb30d607dd878353d037ba18fe6d9
Reviewed-by: hjk <hjk@qt.io>
2016-09-19 07:34:47 +00:00
Christian Stenger
950b665741 ScxmlEditor: Fix compile with Qt5.6
Change-Id: I07ed1737b9a72338aa74aab0c6277df414d95cb5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-19 07:22:33 +00:00
Alessandro Portale
055c940ea9 .gitignore: Ignore qml cache files
Qt 5.8 introduces qml caching. Ignore *.qmlc and *.jsc files which are
generated under share/qtcreator/qmldesigner and welcomescreen when
building and running Qt Cretor in-source.

Change-Id: Ic90710fd559a0e17838dd89ce55e3cf9107adeee
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-09-19 07:01:42 +00:00