Commit Graph

60654 Commits

Author SHA1 Message Date
Tobias Hunger
a90b1c26b1 CMake: Remove CMakeProject::buildTargetTitles
The only user can also get this information from the relevant
CMakeBuildConfiguration.

Change-Id: I80e176ef0a8bc427f6adbf75b20e29f38d7b949f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-12 14:23:58 +00:00
Eike Ziller
dbfa55f5fc CMake: Do not run GUI CMake tool on macOS
We may neither run "/some/path/CMake.app" nor
"/some/path/CMake.app/Contents/MacOS/CMake",
so add a missing workaround for the latter, and use the "resolved"
executable path for the retrieval of version info and capabilities.

Change-Id: I6fed8cc478c0d0b9946a934fd83126e157bde992
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2019-08-12 13:52:25 +00:00
Knud Dollereder
31effafb60 Add context-menu to insert a keyframe for all visible curves
Change-Id: If86550bb9b8e73ff22fdbe3c2ffc579c35c505da
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-08-12 13:13:47 +00:00
Eike Ziller
42ea10892c CMakeTool: Fix disabling of "Autorun" property
Could no longer unset "Autorun" for CMake tools. Broke in
de6faa0f15

Change-Id: I0b6e9e64de591e1128ff0dabf4eedb40e1a3748c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-08-12 12:54:39 +00:00
Eike Ziller
ff503740ce Run CMake via canonical path instead of warning
Running CMake via a non-canonical path (including '..' in the path, or
via a symlink) can result in funny errors.

de6faa0f15 added a warning for that
condition. Unfortunately the auto-detection of CMake can return a path
to a symlink (e.g. for CMake from brew on macOS). Also it is helpful to
use a symlink to e.g. manage different CMake versions.

Instead of warning about the condition, and forcing the user to resolve
it manually, simply run CMake via its canonical path when actually
running it from Qt Creator.

Change-Id: I95623b45c5436a6d61c1419b7aba23e2a73a0650
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-08-12 12:54:28 +00:00
Eike Ziller
b61a5b759b CMake: Remove unused function
Change-Id: I6b793e0cb01b989f3087dcefe091b77bcfebe370
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-08-12 12:54:19 +00:00
Knud Dollereder
e0512f18a4 Catch alternative value type names
Fixes: QDS-892
Change-Id: I73577c56479ae42ff9f2aa82db31cb766a068537
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-08-12 12:37:04 +00:00
Knud Dollereder
d6095f9763 Do not clear selection when clicking on a selected keyframe
Change-Id: Ia2907a3687b70faf32bc32540bac8f381b507b73
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-08-12 12:22:15 +00:00
Christian Kandeler
9be30e4f27 ProjectExplorer: Improve target setup page
- Do not hide any kits, as that it not transparent to the user.
  Instead, show all of them and disable the unsuitable ones, with
  an explanatory tool tip.
- Keep the list of kits sorted after new ones have been added.
- Do not do tons of unnecessary layout operations when setting the
  kit list up from scratch.
- Code clean-up.

Fixes: QTCREATORBUG-20018
Change-Id: I7823ec9c3e5be00c6791e61926999cea0d7e43df
Reviewed-by: hjk <hjk@qt.io>
2019-08-12 12:20:50 +00:00
Christian Kandeler
df48ba5781 QmlDesigner: Fix qbs build
Change-Id: Iff06eaa50ae23f9ddcc82a2d2df9d35508ea9ad9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-08-12 12:19:33 +00:00
Henning Gruendl
37585d3c55 QmlDesigner: Fix self-closing splash screen
Task-number: QDS-896
Change-Id: Ibc76c1e4668ba5a56ba7c45e68e698ed78bfb0e7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-08-12 12:02:56 +00:00
Volker Hilsheimer
a5da571ed5 Port from Java-style QMapIterators
So that it compiles against qtbase/dev

Change-Id: I628ee8b935cfde11c0a67ccc09f3b64aa7a884d3
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-08-12 11:27:24 +00:00
Eike Ziller
68cbde187a CMake build: Add qtc-askpass
Fixes: QTCREATORBUG-22804
Change-Id: I749d0da495e77e45198ee67675c297ec68da1634
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-08-12 10:55:16 +00:00
Eike Ziller
d84a6c4988 Update change log for 4.10.0
Change-Id: I6cb272a08fb240caca98bc6286750006518470e1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-12 09:55:11 +00:00
Eike Ziller
dcc47f2587 iOS: Share code for simulator display name
Change-Id: Iecfaa43aefc7ed783d4149dec008330ee5c124e9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-08-12 08:37:12 +00:00
Christian Stenger
e47a01c3cb Debugger: Update breakpoint marker earlier
Since the distinction between global and engine
breakpoints we may not update the breakpoint marker
correctly which in turn appears as if the breakpoint
had been failed to set.
Fix this by updating the breakpoint marker already on
insertion request.

Change-Id: I7c4ed046c26667e6aa1efceb5071c12a6d1e6132
Reviewed-by: hjk <hjk@qt.io>
2019-08-12 07:52:42 +00:00
Eike Ziller
c77447d491 Use new global notification area for update information
Instead of using a modal dialog box.

Fixes: QTCREATORBUG-22817
Change-Id: I129827b7f715b6e739ea09275bf43c64eb3d4e3f
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-12 07:16:01 +00:00
Eike Ziller
c67ed4d35b Add global notification area and use for UI Tour info
Adds a global info bar display above the main window's status bar that
can be accessed via ICore::infoBar().

Replace the blocking "Take UI Tour" dialog by a notification there.

Fixes: QTCREATORBUG-22819
Change-Id: I733f1bfd2d1db0295754ed2e28bb202f927d0edb
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-08-12 07:15:27 +00:00
Thomas Hartmann
596e4b041a QmlDesigner: Add missing PGN
Change-Id: Ie846c18c498ac838969c9ef8bda1090746557a81
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-08-09 14:31:12 +00:00
Thomas Hartmann
b2cd629668 QmlDesigner: Use ICore::dialogParent() for EasingCurveDialog
Change-Id: Ibf02a4823cef4e613614f54da1d39648d144cf9a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-08-09 14:26:16 +00:00
Tobias Hunger
eb2f49c398 CMake: Fix race/crash on project open
When the filesystem scan takes longer than the cmake parsing, then
resetData() was called on BuildDirManager by the CMakeBuildConfiguration
before the CMakeProject had requested its data.

Move some code back into CMakeProject to resolve this issue.

Change-Id: Ib21bdd63fdca79c2ad39a7e060df438b456700b4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-09 13:08:11 +00:00
Eike Ziller
63c9c5124e Use common functions for handling ampersands/accelerators
Change-Id: I4c74a041a656ed547db0a7406f4306008a513879
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 12:45:38 +00:00
Tobias Hunger
09530d6dcc ProjectExplorer: Use RAII pattern for parsing start/stop signalling
Change-Id: I13de537140f265db3e3d0ab1cd924d6897cd90c8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-08-09 12:45:29 +00:00
Eike Ziller
16b8ab2461 Help: Fix handling of ampersands in open pages pane
E.g. for "Plug & Paint" example documentation. The list view may not
show double ampersands, but for the context menu they must be "quoted".

Change-Id: I773ac50f93b975504a5aff172336da77a703b52b
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 12:45:20 +00:00
Tobias Hunger
8868989d5c CMake: Fix CMakeCache.txt file detection
QFileInfo::exists(QString) is a static method, so the code was
looking for "CMakeCache.txt":-/

Change-Id: Ib0f9711a159fca9437ffb15c26af246ec69489ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-09 12:43:23 +00:00
Tobias Hunger
200b04f9ca CMake: Simplify setting up a new reader
There is no need to reset a reader when e.g. the build directory changes
when the server-mode reader is *not* used. So the one case where having
separate reparse-options for the case where the reader changes and the
case where it stays the same is bogus.

So unify the flags into one set and simplify the code accordingly.

Change-Id: I9bcfcc6333d574d49513ef1256a9a8597bda4ec7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-09 12:43:14 +00:00
Tobias Hunger
d880f1f771 ProjectExplorer: De-virtualize knowsAllBuildExectuables method on Project
Just use a setter instead.

Change-Id: Id5dff64e9a7fcdf64a245b71432318299a49d9f7
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 12:42:53 +00:00
Tobias Hunger
0c8c08b81b Designer: Fix implicit cast warnings
Change-Id: I33b2c214de9fc517076ef12f9aec32a18adec36a
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 12:42:37 +00:00
hjk
6dcdacb10e RemoteLinux: Remove more unneeded qtsupport include
Change-Id: I7cdfd0a4cfa58424ddf1105c144acaba07f204b3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-08-09 12:35:02 +00:00
hjk
f9c221eb54 ProjectExplorer: Re-work setup runworker factories
This combines two of the previous three paths to create run workers,
and refers to RunConfigurations by id, not by type where possible
to decrease coupling between the classes.

Only allow "type of run configuration" and "type of device"
as the only possible kind of restriction and require a uniform
RunWorker constructor signature.

Adapt user code to fit that pattern.

Change-Id: I5a6d49c9a144785fd0235d7586f244b56f67b366
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-08-09 12:34:42 +00:00
hjk
a88970db34 RemoteLinux: Avoid unneded qtsupport #include in deploymenttimeinfo.cpp
And de-noise the file a bit.

Change-Id: I11f0dc83aae87dd397fa8a69ec3b909c4467740c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-08-09 11:52:39 +00:00
Tobias Hunger
87f496d091 CMake: More logging of cmake parsing flags
Add more logging of cmake parsing flags as cmake runs are requested
in the plugin.

Change-Id: I5231bd29dfeb6521218dc28c26a5b658ccb4059b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-09 11:52:26 +00:00
hjk
39b66f0557 ProjectExplorer: Add a convienience BuildStepList::firstStepWithId
For later use.

Change-Id: I696e3e03e1f8a82c25b29c9cf4b311360d83c12f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-08-09 11:08:39 +00:00
Eike Ziller
babbb0a9db iOS: Fix simulator listing with Xcode 11
Xcode 11 changes the output of simctl slightly. At some point it
introduced a bool "isAvailable" in addition to the string
"availability". Now the latter has been removed.

To avoid listing all devices as available, we need to adapt our simctl
output parsing.

This already takes effect when installing Xcode 11 Beta, even when not
actually using it, since all Xcode versions share the simulator
infrastructure.

Fixes: QTCREATORBUG-22757
Change-Id: I1ef416f6c544db53d9ee99ccc3b0a2e97dfcc870
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-08-09 11:08:26 +00:00
hjk
b9c10bb715 QMake: Re-export the qmake buildstep id constant
Will help with iOS later.

Change-Id: Id4d1899e117ae5aa05ed14a42bc80f474b9c659c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-08-09 11:08:17 +00:00
Tobias Hunger
2fa555bdfd ProjectExplorer: Add another missing activeBuildConfigurationChanged signal
Change-Id: If31157a569f13df6e6dbd09ab8148b325bf6858d
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 10:27:34 +00:00
Tobias Hunger
2d6ec5a287 ProjectExplorer: Fix warning
Change-Id: I091746e494ef2cb92f395a09111c055226827804
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 10:27:25 +00:00
Eike Ziller
bc5e763961 Python: Remove unneeded dependency to QtSupport
Change-Id: I080c9316068eb1ac4738aaffae57c913ea63176f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 09:29:36 +00:00
Tobias Hunger
afc1b854eb CMake: Remove useless code
Change-Id: I2e4e5f834f99e2c14e0f81c106abec2c1e0a3a87
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 09:24:34 +00:00
Tobias Hunger
1e9ee0ce1d CMakeLists: Allow for internal plugin registration
add_qtc_plugin now takes a flag "INTERNAL_ONLY". These internal plugins
will not show up in the project configuration nor in the feature summary.

This flag is used by the tests that build plugins.

Change-Id: I1912dd62221b2624ed7326df381fbbceccefbdac
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-09 09:05:54 +00:00
Thomas Hartmann
45c580b91a QmlDesigner: Add icon for curve editor
Change-Id: I36990c6a5a7b8fda8e8d7b99244dddafe8319665
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-08-09 08:56:23 +00:00
Aleksei German
76cf08a886 QmlJSEditor Exporting AutoCompleter
One more change for the new Binding Editor

Change-Id: I17c9eb02212a29abcc4ef568e7d85cffc14c023d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-09 08:29:12 +00:00
Eike Ziller
a81c1aab2c Merge remote-tracking branch 'origin/4.10'
Change-Id: I273a1e8f5f9e54756befbc398c2c2754534ff128
2019-08-09 09:43:16 +02:00
Eike Ziller
98d454d58b Fix CMake build
Change-Id: Ib0f90b9051c631751a1181dc30e58affd90feffb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-08-09 07:42:11 +00:00
Christian Stenger
ca32a47122 Squish: Use parameters for mouseClick
Another partial revert for e8727fcae2.

Change-Id: Ieba9b7ea75421858698e0da0133278408e2b5ee1
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-08-09 06:13:12 +00:00
Christian Kandeler
61046e848a QmlDesigner: Fix qbs build
Change-Id: I3b114db5f51f47a2e5635858f5587eefec7393c0
Reviewed-by: hjk <hjk@qt.io>
2019-08-09 04:45:22 +00:00
Tasuku Suzuki
c54db06a50 Improve layout of qrc editor
Replace the toplevel horizontal layout with vertical splitter

Change-Id: Ia02cb0fb23ff4cb9775ea68e70d7b6e0edfcd7f7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-08-09 03:19:00 +00:00
Knud Dollereder
6e241d6eac Improve scaling of the graphicsscene in y direction
Change-Id: I2e4f07cb39222094fdbb26e45d4385510c8992d4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-08-08 15:26:09 +00:00
hjk
c6f00e1dd2 Unification of desktop run configurations, step 6
Move special CMake environment modification to CMakeBuildConfiguration.

Change-Id: I27f886db48d8c036f2f77f5ae8f239b405cb5721
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-08-08 15:20:21 +00:00
hjk
e6d09f7c68 Unification of desktop run configurations, step 5
Use a single RunWorkerFactory for all cases.

Change-Id: I41d39d330ed69082d75ea891b11247eab01a5d19
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-08-08 14:33:24 +00:00