Commit Graph

57165 Commits

Author SHA1 Message Date
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
Christian Stenger
01aafd8021 Squish: Redo readFile()
Change-Id: Ife8f951aa8fc86403197318b55db725ed3259336
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2018-08-01 05:33:24 +00:00
hjk
0c2bc9c2da Debugger: Move ownership of perspective central widget to plugin
It's only used in GammaRay currently, and with dynamic perspectives
lifetime is better managed close to the code that knows how to
(re-)construct the beasts.

Change-Id: I9e8ebe2e93d749a62fb008f773f1702a4c0bab3c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-31 13:41:18 +00:00
Thomas Hartmann
ca42e48dac QmlDesigner: Keep Qt 3D scenes from crashing
If we do not set the source property of the Q3DSPresentationItem
nothing is actually rendered.

If a scene is rendered in the puppet we get an invalid OpenGL context
when rendering in the qml2puppet.

Change-Id: I74db0df7de759e830499967bc6985745be291856
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-07-31 12:41:54 +00:00
Robert Loehning
aaec887b15 ClangTools: Remove HTML from translated string
Change-Id: I74ab16ebebd00354a0821853f5a061e97b0c4f8b
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-07-31 10:39:45 +00:00
Orgad Shaneh
8654677015 UnitTest: Remove unused function
This amends commit da4be3fdb7.

Change-Id: Iffdf4581b7f29fc846c944e24f33e27e003f1b3b
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-07-31 10:10:19 +00:00
Robert Loehning
6d7eb57e75 Squish: Test pasting with pastebin.com
Yes, there are only ten pastes per IP per day. But doesn't that mean that
nobody can rely on it being availabe anyway? So it's better to use some
of those ten pastes for testing instead of not testing pasting at all.

Change-Id: I45362e5ab0c3eb43f1ddd18d4be39474e26c8460
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-31 10:02:18 +00:00
Robert Loehning
8c0042da40 Squish: Use sections for services in tst_codepasting
Change-Id: If97331e3a18f44ca82ad81c7609dc3162caf5254
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-31 10:01:51 +00:00
hjk
be89452602 Debugger: Start introducing dynamic perspectives
Make perspectives and tool bars destroyable. This is a
step forward to multiply debugger engines whose perspective's
life time is connected to the engine, not the debug mode.

In the present setup there are two kind of perspective:
1 - static: with a lifetime associated to the application
(or, rather, plugin that defines them). These are listed
in the perspective chooser, later e.g. Debugger for
pre-set breakpoints
2 - dynamic: with a shorted lifetime, e.g. running GDB engine.

Presently, and possibly also in future so, a dynamic
perspective is related to exactly one of the static
perspectives, i.e. are kind of "child".

Change-Id: Ic11572e7121e14f8da2927a0c0ac3441c99073a3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-31 07:38:38 +00:00
Orgad Shaneh
9c688e8f9e QbsProjectManager: Use member-initializers
Complements 11632bbedd.

Change-Id: Id94f53ae1de871aa16257a043f4b95c971c11d6f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-07-30 20:12:58 +00:00
Andre Hartmann
495356ce9d Git: Fix remote detection for local remotes starting with "file://"
Task-number: QTCREATORBUG-20618
Change-Id: I21cddf88b64fa7a6acdc92228142976284ef8942
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-07-30 13:23:38 +00:00