Commit Graph

56175 Commits

Author SHA1 Message Date
Alessandro Portale
e21b146776 Extensionsystem: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-equals-default

Change-Id: I20b4508e98ad3f8d6cd0ca2339bfc4c7dcb2ef2c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-08-08 10:16:07 +00:00
Thomas Hartmann
6655f37259 QmlDesigner: Fix clazy warning
Remove superfluous call to default constructors.

Change-Id: Id16d7641a28b1d4b58c8bfe26b7076e8122b72c3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-08 05:48:39 +00:00
Eike Ziller
847787f146 Merge remote-tracking branch 'origin/4.7'
Conflicts:
	src/plugins/debugger/debuggerruncontrol.cpp

Change-Id: I72882df605bc3fc8a8d20118fd4e49207ac92664
2018-08-07 09:42:02 +02:00
Robert Loehning
ff10f8c3a5 Squish: Fix warnings
Warnings from static code checks, that is, not test.warning() at runtime.

Change-Id: I651d13491106583908059ecdb5f700f539b6d9c8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-06 14:21:30 +00:00
David Schulz
141f19a652 Utils: move code model icons to utils
In preperation for the language server protocol support.

Change-Id: Iee4ccd53a86d9afdb357972ea62b75ace2edcb1d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-06 13:22:47 +00:00
Ivan Donchevskii
5d67a471e0 ProjectExplorer: Provide more flexibility in compiler paths
Let autoDetectToolchains accept compiler path instead of
always searching for it in environment. Make environment
search into a separate call.

Change-Id: Ie692b38bac03955a8f1cb3590beb7a2e9640a448
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-06 12:39:25 +00:00
Christian Stenger
c1f78335e0 AutoTest: Disconnect signal after being processed
When debugging a test the run control outlives the connection
and the signal can be triggered again and again which results
in warnings on the command line. Do not rely on run control
handling things for us, instead disconnect the signal after it
had been processed.

Change-Id: I704fd110bce3b387ee419a3f83bf904f2687a435
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-08-06 12:39:17 +00:00
Ivan Donchevskii
c24116f035 ProjectExplorer: Do not double check abi-s
autoDetectToolChain already checks abi-s validity.
There's no need to do that again afterwards in
autoDetectToolchains.

Change-Id: I4f762ab2fd32e42a37abd5876da0dfe5e74643bf
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-06 12:39:13 +00:00
Christian Stenger
18617668a0 AutoTest: Avoid crash in illegal state
While debugging tests we rely on some states of the debugger.
If anything goes wrong we might end in an illegal state on
our side as well. This would then result in a crash.
Avoid nullptr access and try to recover from illegal state.

Change-Id: If8ca396a6e456d2f37777eba86f320643fbcd275
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-08-06 12:39:09 +00:00
Ivan Donchevskii
344cbb3a1b Clang: Move clang paths helper functions to Core plugin
These functions require core plugin so they can't go
to utils library. At the same time to use them in
ProjectExplorer plugin there are not too many choices
where to put them without introducing new dependencies.

Change-Id: I3cccccffaae8ac4bbce924fd809b5423da5dc503
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-06 12:38:52 +00:00
Vikas Pachdha
960fccc763 Android: Fix the executable permission of the package dir
This fixes the problem where gdb fails to connect to the gdbserver on
Android with API > 23

Task-number: QTCREATORBUG-20583
Change-Id: Ia581f8ae5dd6d819ac5ffedf633d1423e9e30074
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2018-08-06 11:47:08 +00:00
hjk
f45f1a8cef Debugger: Make perspective toolbar items part of the perspective
This simplifies the toolbar setup and removes the need for the
stack of toolbar widgets.

The actions themselves have been owned by the plugin already,
so nothing changed in this respect.

Change-Id: I44754e16c8fc2acc53633dd9d560b1e732eece27
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-06 11:12:44 +00:00
Ivan Donchevskii
843f31ae04 Clang: Better handle constructor overloads
Follow up for 0f96f735f0. Constructors have worse support
in Clang for their definitions but have proper overloads
for the references.

Change-Id: Ie002ae74b0d15f0fe00126042a7f61172b82946b
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-06 10:38:34 +00:00
David Schulz
e3a0a710c6 TextEditor: fix crash while request follow symbol and typing on mac
Use a qobject_cast to prevent accessing a not available function.

Task-number: QTCREATORBUG-20910
Change-Id: If2aa6b7b120379681e9590db80904c45a6d9bd55
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-06 10:03:23 +00:00
hjk
0ec471971b Qnx: Add 'cat' to the list of commands we expect on a device
Change-Id: I8076a78266141bffd43acc21b031ea5be6aa5791
Reviewed-by: Karim Pinter <karim.pinter@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-08-06 09:02:01 +00:00
Orgad Shaneh
787c4fc21e GDB: Escape quotes on breakpoint commands
The commands are wrapped in quotes, and if they contain quotes it gets
messed up.

Change-Id: I41cebd8cf4a57a8ea671e5f43a3295af1c73fd02
Reviewed-by: hjk <hjk@qt.io>
2018-08-03 15:23:02 +00:00
Orgad Shaneh
27e9e19ed3 Clang: Re-use known toolchains when auto-detecting
Change-Id: I7c28bf41c7d613cb7848f02b3a9f436d3ed7307f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-08-03 14:32:20 +00:00
Sergey Belyashov
8353a6ed20 Improve Russian translation
Change-Id: Ib632fb9f5efe97a1913f9a0c09512b6b99ef2b6e
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
2018-08-03 14:27:09 +00:00
Christian Kandeler
f6f8bc5d95 Update qbs submodule
To HEAD of 1.12 branch.

Change-Id: I44bf654eb81a30f44055b366c21dca10fded37c4
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2018-08-03 09:06:31 +00:00
Ivan Donchevskii
0f96f735f0 Clang: Provide all overloads for function definition completion
When we complete a function definition with the parameter list
it is important to have multiple entries to select.

Change-Id: I25e94b58cfe4831387d66eecdec74712addb7ec5
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-02 12:47:17 +00:00
Ivan Donchevskii
b1f156ab35 Utils: Provide more QByteArray methods in Utf8String
Change-Id: Ibf33f44f1303b68ec3c9ca2c2fc153ddf6eb1f2c
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-02 12:47:08 +00:00
Robert Loehning
da21353276 Squish: Don't explicitly pass default to createNewQtQuickApplication
Change-Id: I006c6cad0e972006475ad488b9a71def09de0dbb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-02 11:48:37 +00:00
Robert Loehning
e8acb75115 Squish: Refactor selecting configured Kits in project
The design of the Projects mode changed several times. We wrote lots of
workarounds to keep even more old code alive because we never had the time
for a proper refactoring. This time is now.

Leads to more stable code with far less variables flying around.

Task-number: QTCREATORBUG-20265
Change-Id: I29e5956ea3279cdb1d6da61bf5b461666de436bc
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-02 11:48:14 +00:00
Thomas Hartmann
065c6be2f0 QmlDesigner: Fix clazy warning
Remove superfluous static.

Change-Id: Ib187232983a908d5e619929313926578dad8734c
Reviewed-by: hjk <hjk@qt.io>
2018-08-02 11:45:06 +00:00
Vikas Pachdha
d55373cab2 Android: Enable setting environment variables for android apps
Change-Id: Id4625f081d6997dcabad9b01fb09d6c9c6ef7477
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2018-08-02 10:01:12 +00:00
Vikas Pachdha
51278a2bd5 Fix incorrect initial title of environment aspect
Change-Id: I40b7f7ca87cc69ccfea83e3d8209400b276a8878
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: hjk <hjk@qt.io>
2018-08-02 10:01:01 +00:00
Vikas Pachdha
1b12da2493 Android: Support commandline arguments for Android app
Change-Id: I3910b68ebbf00e1b62da663a3e58224413a1929e
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: hjk <hjk@qt.io>
2018-08-02 10:00:57 +00:00
hjk
e9eb1a6437 Debugger/Perspectives: Go back to QPointer<QObject>
Lifetime of the pointed-to object may end before that of
the plugin, so unique_ptr is the wrong choice.

This amends 01f2b982a2.

Change-Id: I76b9ac78348d2ae1e7eff0693b091dbe8475ab93
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-02 08:56:20 +00:00
Thomas Hartmann
b07c27b546 QmlDesigner: Fix clazy warning
Simplify for loop.

Change-Id: I191dc0d14f672b2a87a2998d0afa4ca67adc0de1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-02 08:27:38 +00:00
Thomas Hartmann
4e30217f61 QmlDesigner: Fix clazy warnings
Move initializers to class.

Change-Id: I782b1fd8d432df741829510412326e1221ad52d5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-02 08:27:28 +00:00
Thomas Hartmann
e2bc798ce3 QmlDesigner: Fix clazy warning
Use midRef and leftRef.

Change-Id: Iac31d9d33ccc474716d490f828a250ea4b57bdbe
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-02 08:26:52 +00:00
Thomas Hartmann
49ade69dbb QmlDesigner: Fix clazy warning
Fix whitespace.

Change-Id: Id7ab7b5a58536b06b441b157fcef58992fee348c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-02 08:26:37 +00:00
Thomas Hartmann
07b96ccc37 QmlDesigner: Fix clazy warning
Do not call static member functions by instance.

Change-Id: Iacc7abd7e93b4612fcaa5288cd428a569f64615c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-02 08:26:22 +00:00
Thomas Hartmann
96d573147c QmlDesigner: Fix clazy warning
Use make_unique

Change-Id: Iae83819c8e2f37718ca2c65dae15e3a65c994829
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-02 08:25:51 +00:00
Orgad Shaneh
92c8730253 Clang: Add missing completion kind enum
This amends commit 810896936b.

Change-Id: Icbfc9a4dec8d0053e42bf46b6d4126ee9e3facc5
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-08-01 17:58:09 +00:00
Robert Loehning
edc1629bb7 ProjectExplorer: Remove reference to non-existing class
Change-Id: I1757c84ef8b3c38a21aa1576105916cb187a1e03
Reviewed-by: hjk <hjk@qt.io>
2018-08-01 16:05:22 +00:00
Thomas Hartmann
62439eaae5 QmlDesigner: Fix clazy warning
Use cmath instead of math.

Change-Id: I82f6113647946c3e60efcac49d24370af20fadbe
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-01 15:38:41 +00:00
Thomas Hartmann
9c5df188d1 QmlDesigner: Fix clazy warnings
Prefer initializer lists.

Change-Id: Ibbbe146a55b057176a0f88cc1a5d48c15d5f2038
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-01 15:38:27 +00:00
Thomas Hartmann
ce411c34f1 QmlDesigner: Fix clazy warnings
Use const &

Change-Id: Iaa540194e45871500dc80a55cd2cb6beeeee45b5
Reviewed-by: hjk <hjk@qt.io>
2018-08-01 15:38:02 +00:00
Thomas Hartmann
4fd17b6604 QmlDesigner: Fix clazy warning
Use nullptr

Change-Id: I787794c67e89af7bc7a2d82def580bea3c8f2653
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-01 14:38:47 +00:00
Ivan Donchevskii
810896936b Clang: Improve function definition completion
Insert argument list together with completion.

Task-number: QTCREATORBUG-20826
Change-Id: I4aa9faaa04bcd3ca014306aad27843c2b4419d3c
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-08-01 14:25:38 +00:00
hjk
83024557d6 Valgrind: Proactively shut up sanity bot
It complains about alledgedly wrong spelling of "Visualisation"
in unrelated patches.

Change-Id: I047f2be4b534a7d01d8c0bc39ff22b615d2c0467
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-01 12:49:45 +00:00
hjk
7afd05476c Undo parts of modernization
This amends f6943a712a.

While 1 is definitely a more positive value than -1 it ill-affects
the user experience of inveterate naysayer.

Change-Id: I89be50e13d3a6a6e8103042bb2e24069010eecd0
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-08-01 12:34:02 +00:00
Christian Kandeler
e968513036 QmlDesigner: Fix typo in file name
Change-Id: I06086caeaa2144e93203bc0cea902259be5d73c5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-08-01 11:52:35 +00:00
hjk
01f2b982a2 Debugger: Move ownership of perspective dock widgets to plugins
Similar to the previous patch, but affecting more plugins: with dynamic
perspectives lifetime is better managed close to the code that knows how
to (re-)construct the items.

Change-Id: I0e7bfcf769d198ec2afa88b972be900baa1b6a46
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-01 11:27:21 +00:00
Christian Kandeler
01e1653734 QmlDesigner: Fix qbs build
Change-Id: Iad0691908ca09687b77f98bd47eff09b6a6c063c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-01 11:16:28 +00:00
hjk
3ba3f74051 Android: Use QVariant for targetData/setTargetData
This makes it more similar to the classic QAbstractItemModel::{data/setData}
pattern and hides qmake-specific semantic (variables are QString*Lists*)
behind something more general.

Change-Id: I82d7006affd4af208be2b7640076698d13fd3a61
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-08-01 10:47:31 +00:00
hjk
888d940de2 QmakeProject: Simplify QmakeProject::updateBuildSystemData
destDir isn't used after a certain point, no need to update it anymore.

Change-Id: I106ce6a521425811b3fa352724e4bed7ac8d7d48
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-08-01 10:47:19 +00:00
hjk
d8326afcff Android: Simplify apkPath determination
It doesn't explicitly need the qtSupport indirection anymore.

Change-Id: I25f0649a3b7760fdef3b62097ac55341e6b16fe4
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-08-01 10:47:02 +00:00
Thomas Hartmann
2cb238471a QmlDesigner: Modernize
modernize-use-using

Change-Id: Ia8eef3d97db7b99ec813a030e1f39ee492d6cf9a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-01 07:42:47 +00:00