Commit Graph

57214 Commits

Author SHA1 Message Date
Frank Meerkoetter
ffc070a3f2 Replace call to a long obsolete QtAlgorithms function
Change-Id: I1e07649d7d1153400951ae734c7f78e03ff8fe32
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-08 07:47:23 +00:00
Christian Stenger
55c61e59f9 Debugger: Fix wrong check in source path mapping
Change-Id: I4b11795326371c9bc30d42cf2fbf29932639f5d6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-10-08 07:26:56 +00:00
Nikolai Kosjar
c7b65c69b1 qbs: Remove pointless ExtensionSystem dependency from plugins
A QtcPlugin depends on ExtensionSystem, so there is no need to restate
the dependency.

Change-Id: I8e0cb5f94858e912f5ce528ee67b683d4d837c27
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-10-08 05:49:44 +00:00
Andre Hartmann
3177e53804 Git: Add support for github remotes
Github and gitlab uses a different syntax when cloning with ssh:

 git@github.com:qt-creator/qt-creator.git

Support this pattern for remote validatation also.

Change-Id: Ic67f2238b9cdd526e76715c86846542cdb73f503
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-07 15:44:01 +00:00
Andre Hartmann
96f982a016 Git: Check remote port for isValid in GitRemote
Change-Id: Iab922abcde0ac055417467f3c63a31dffa721986
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-07 15:43:39 +00:00
Andre Hartmann
0dfb2938ed Git: Add tests for GitRemote
Change-Id: Ia5e0c482afa7847f5ae8dae1b15d1dabfc908e32
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-07 15:01:10 +00:00
Alessandro Portale
bba2a2521b icons/export.py: Make exporting of additional scale factors easier
This changes export.py in a way that adding a scale factor becomes
easy.

Change-Id: Ib6649be931d36bf21df429fe5dd237b440913743
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-10-05 22:09:20 +00:00
hjk
f2411aa290 ProjectExplorer: Move common bits of IDeviceFactory::canRestore
... to the single user.

As effect, all but the ios re-implementation are not needed.

Change-Id: I3c8b8c5d4ab3c8eac70c0bd534c5f1b33f8a3063
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-10-05 14:42:53 +00:00
hjk
0c2101d816 Simplify IDeviceFactory use
With a 1:1 mapping of factory and created device types, the signatures
of the device factory methods are much simpler, and yield even in
the cases where a factory created more than one device type
(WinRt and Qdb) less code after duplication of the factory.

Change-Id: I1c6279a88e8483001e5603cfe1922029243be610
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-10-05 14:01:09 +00:00
Ivan Donchevskii
3858c7d3b9 Clang: Fix the crash in function overload completion
Check that the completions container is not empty.

Change-Id: I399b8cce42995d758013441d2d3d9f3d8156dc06
Reviewed-by: hjk <hjk@qt.io>
2018-10-05 13:57:09 +00:00
Ivan Donchevskii
66e5d2f492 Clang: Fix C++ method code completion
Clang returns no result type when the virtual method
from the base class is called in the same method override
in the derived class.

This is not a problem for us because it's not a method definition
and therefore it does not require special handling.

Change-Id: I736989165c1f031dc1937c7935e26da8236d9e9e
Reviewed-by: hjk <hjk@qt.io>
2018-10-05 13:57:00 +00:00
Andre Hartmann
c29e483607 GenericProject: fix sorting file list when appending an entry
pos was -1 for a value that should have been appended as
last element to the list. Unfortunately, list->insert
treats -1 as prepending in front of the list, which lead
to incorrectly sorted lists.

The function got broken during the review process of
the introducing commit 758544c058.

Change-Id: I693e4d79b0d493deeac0ea8781d637fe50d008b8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-10-05 13:52:47 +00:00
Tobias Hunger
9fe5733ef3 FakeVim: Fix clang complaining about register storage type
Change-Id: I9bbc2835c3311f46fdb3df83d56a8ab1ddd41f5a
Reviewed-by: hjk <hjk@qt.io>
2018-10-05 13:06:33 +00:00
Tobias Hunger
97a13ead72 CMake: Remove unused variable
Change-Id: I0b90a2f6736fa7943b5abc3d98ecfd6fa466f035
Reviewed-by: hjk <hjk@qt.io>
2018-10-05 13:06:26 +00:00
Vikas Pachdha
8c95ab7ac8 Android: Remove multiple code paths to run adb
Refactor the code to use adb from AndroidManager, do cleanup
and improve logging

Change-Id: I77b682d37c9328e6aa978eaf05b3b5c131907f09
Reviewed-by: hjk <hjk@qt.io>
2018-10-05 12:58:37 +00:00
hjk
36b654567d Debugger: Finalize moving Operate by Instruction to engines
Fixes: QTCREATORBUG-21211
Fixes: QTCREATORBUG-21212
Change-Id: I6c0259052336f2141462157c319abeaec9a1e483
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-10-05 12:54:44 +00:00
hjk
d905131351 Add 'override' to IDeviceFactory derived classes
Change-Id: I036767b90c0300d8d363f47410a849890a484949
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-10-05 12:46:16 +00:00
Eike Ziller
8fa37a17c1 Merge remote-tracking branch 'origin/4.8'
Change-Id: I74268f767e2fc7dae5db390a0348095ef220abd2
2018-10-05 13:11:02 +02:00
Ivan Donchevskii
e0d7d03720 Clang: Fix ClangFormat build with clang-7
Change-Id: I0859b7aad1a49f8d46ee4b32cc32039cfa0b482b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-10-05 11:08:27 +00:00
hjk
0e84c8892d Debugger: Do not double quote in tooltips
Instead of e.g. 'Interrupt "GDB for "test""' use 'Interrupt GDB for "test"'
for button tooltips.

Change-Id: Ibe08e0007800332696dbc7f298bf5119ea8e5338
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-10-05 10:52:57 +00:00
BogDan Vatra
5811848a7b Android: Remove old support for gdbserver
Change-Id: I6d2e8abf0baa5606ad3d79cc7f1f57813e8255b1
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-10-05 10:37:23 +00:00
Christian Stenger
efc851e01e Debugger: Hide 'Registers' by default
Registers had been not visible before 4.8 except the user
explicitly enables it.

Change-Id: Ie515a59b40a7f3cd3b9e62eca2707d8a76ab4ab1
Reviewed-by: hjk <hjk@qt.io>
2018-10-05 09:10:36 +00:00
hjk
4d2a6db1a8 Debugger: Show something in start action text again
... even if the action is disabled.

Change-Id: I7f5bb0abd73d25650fab4c9dafbe70c772d2cb0e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-05 08:50:07 +00:00
hjk
a743e25d27 Debugger: Use the intented mechanism to update icon on the fat button
Change-Id: I58e40c2d3db23d00d55e5e86c6f4ebc6cbabea90
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-10-05 08:49:17 +00:00
Ulf Hermann
bc2260ab29 QmlProfiler: Make the tool test more robust
Apparently there is a different message box that commonly pops up while
we are waiting for the attach dialog. Just close it and try again. Also,
stop the timer once we have seen the dialog. Otherwise we might fail on
extra message boxes that pop up afterwards.

Change-Id: I06ae16eb3ad89c9a022ac6fae781f8465425d96f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-10-05 07:46:32 +00:00
Alessandro Portale
e8f28dbef3 LanguageClient: Add an options icon
Server "can" with speech bubble saying "<>".

Change-Id: I7eca0109aa5917f341f6310c8f175b1833ff9c00
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-10-05 07:42:22 +00:00
Alessandro Portale
0f4782fbca design.creatortheme: Set DarkUserInterface=true
It is a dark theme and should be marked accordingly.

Change-Id: I437a293162f5bff4ac549f08401ed9f7349213eb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-10-05 07:41:58 +00:00
Christian Stenger
3c965f3cb5 Android: Fix compile for gcc5.3
Change-Id: Ic061a4bc55e1924b82cc2ac1fd5c483654de90eb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-05 06:36:05 +00:00
Alessandro Portale
50d1790886 creatoricons.svg: Remove unused icons and adjust outdated ids
Change-Id: I34989912a6e23de91a4ac2fa095c0b7826a4e578
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-10-05 06:31:57 +00:00
BogDan Vatra
25264d9bd9 Fix debugging on Android arm64/x86_64
On Android 64, there is no lib/ symlink anymore, so we need to upload
gdbserver from QtCreator.

Change-Id: Ib6f6d9b623dc61b72dd434ce1b3b409e880bdeaa
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-10-04 15:36:35 +00:00
hjk
8f987866b6 Project: Introduce BaseIntegerAspect base using spinboxes
Basically upstreamed/pimpled from VxWorks::BaseNumberValueAspect

Change-Id: I1dbedbbdd55b684fe1bb823e57d4830fb2eb0b0e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-10-04 15:23:26 +00:00
hjk
10262574d4 Debugger: Fix stopping of core file debugging using the fat button
Task-number: QTCREATORBUG-21094
Change-Id: If60f6bea93a583ab27e9e8b17c07402b2ac0854c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-04 14:42:57 +00:00
hjk
2e4e18161b Debugger: Guard against some impossible situations
Change-Id: Ia1fd356b4f8ef71dd3b456a3b28598ff680b9344
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-10-04 12:13:37 +00:00
Eike Ziller
2128953cfb Adapt to rename extraAspect -> aspect
Change-Id: Idc86ea94321bd7d22c9c90de880385d630ef179d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-04 11:56:08 +00:00
Ulf Hermann
1bc3103ef2 QmlProfiler: Add more fine grained checks to tool test
The test frequently fails for unknown reasons. Check if we actually see
the attach dialog, or if some other dialog interfers.

Change-Id: Id279b8aa0a822dbdb565fe4105bfcb28ad704e3c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-10-04 10:47:41 +00:00
Ivan Donchevskii
f6e5202b80 CompilerOptionsBuilder unit-tests
Bonus: minor compiler options builder issues fixed.

Change-Id: Ie25f8fad6729339de05f2bf9b614ceac873e2634
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-10-04 10:24:13 +00:00
Eike Ziller
f8ffe14b82 Merge remote-tracking branch 'origin/4.8'
Change-Id: Ife02e25f89a601e066851cddf0e000ac9491fc35
2018-10-04 09:39:10 +02:00
Andre Hartmann
e79d68dab6 Git: Improve local file detection in GitRemote
* Make sure url has a proper size before accessing
  its elements
* Also check for valid drive letter before ':'

Change-Id: I958cbd492caa8a6ad4a5bf424277d8287f8cf0d4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-02 19:42:18 +00:00
hjk
30bd144540 RemoteLinux: Add target information to runconfig name
Was there until 4.6.

Change-Id: I044e9a184a3f495f967bfa6712f1cd5cbe5603d5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-10-02 14:52:50 +00:00
Eike Ziller
049291504d Fix function extraction for nested classes
If the function is added to a class inside a class, these must be
prepended before the inner class name.

Fixes: QTCREATORBUG-7271
Change-Id: I07042cdd4927af3b630c6ab1b5587971754e1199
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-10-02 13:31:48 +00:00
Eike Ziller
7a7898e2c9 Reduce priority of "Convert to Camel Case" refactoring
Otherwise this is too annoying in case the function is called the way it
should be.

Fixes: QTCREATORBUG-8114
Change-Id: I51063a11e7979e24fc9020344aa5ff800b5064a9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-10-02 13:31:02 +00:00
Christian Kandeler
0776659503 Kit config widget: Prevent horizontal scrollbar
...by using Utils::ElidingLabel rather than a plain QLabel in
QbsKitInformation.

Change-Id: I4014ee918f0ea712a2975ffb4638c495fd8e0c71
Fixes: QTCREATORBUG-21102
Reviewed-by: hjk <hjk@qt.io>
2018-10-02 13:19:33 +00:00
Ivan Donchevskii
efc39304a1 Clang: Move the majority of completion items sorting to ClangBackend
With this change ClangCodeModel only needs to sort completions by prefix.

Also some other optimization have become possible and are implemented here:
1. Getting completions after '{' for constructor overloads by replacing
   it with '(' inside usaved file.
2. Checking for all overloads requires only previous item check because
   all Class completions are already sorted to go before all CXXConstructor
   completions. Since they are not mixed no extra search is required.

Change-Id: Ie0187ad96a20857a63c1d71ddec74606b803f572
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-10-02 12:29:23 +00:00
Ivan Donchevskii
931ec39f64 Clang: Change the way completion fix-its are shown
Move the completion information to the tooltip and
show fix-it icon on the right of such item.

Change-Id: I7eff410384104387e547695171e4864760c07fb9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-10-02 12:26:18 +00:00
hjk
089b50f7d3 Debugger: Fix display of upper half of short unsigned ints
Change-Id: Ie15c66c02c15420436b26c65af3cee9a19634e5c
Fixes: QTCREATORBUG-21038
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-10-02 10:12:33 +00:00
hjk
1c9410e353 ProjectExplorer: Rename 'extraAspect' to 'aspect'
Using aspects is the standard pattern nowadays, there's nothing 'extra'
to them anymore.

Change-Id: I446f9d7b1db58a4899e5e44df33ce51f655e7be4
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-10-02 08:32:51 +00:00
Orgad Shaneh
2f6c6b632c ProjectExplorer: Remove versionControls argument from scanForFiles
Retrieving the list is cheap, there's no reason to store it and pass
it through all these functions.

Change-Id: I394b512c113af92f60cfb8c2f6561d1617d9cd36
Reviewed-by: hjk <hjk@qt.io>
2018-10-02 06:59:56 +00:00
hjk
377f5badd8 Project: Inline RunConfiguration::wrapWidget helper again
There are no external users left, so there's no need to expose
it in the header anymore. Also saves a cast.

Change-Id: I1ced368ebc9588cbc0058cc7d37f39ab80f9c595
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-10-02 06:29:46 +00:00
Orgad Shaneh
681297ad7e Git: Fix reading of gitfile
* QFile ctor does not open the file for read.
* Replace readLine with read(8) to avoid needless read.

This amends commit e9eeaf33b3.

Change-Id: I33c230497ad431091d7d6b271846f5af661b4e0d
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2018-10-01 19:21:39 +00:00
Orgad Shaneh
d585b85550 PythonEditor: Support file operations
Change-Id: I0fc5a3e1795fe56c753e300ed1c1ca7514964401
Reviewed-by: hjk <hjk@qt.io>
2018-10-01 16:44:31 +00:00