Commit Graph

44349 Commits

Author SHA1 Message Date
Ivan Donchevskii
48392fac9e Clang: Show full completion match first
If prefix is equal to some completion then show it
before anything else.

Task-number: QTCREATORBUG-15445
Change-Id: I976da4a829b818e843d31a76d2818eb5bbedda93
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-06-09 14:28:51 +00:00
Ivan Donchevskii
8922fbf4be Clang: change global completions order
Give CamelCase completions lower priority

Task-number: QTCREATORBUG-18319
Change-Id: I812d22616e8ab0e3d186bcf7a6a569de22be2a07
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-06-09 14:28:16 +00:00
Christian Kandeler
98c35d6cd9 Update qbs submodule
To HEAD of 1.8 branch.

Change-Id: Ie184929f8e99cab21c4fa6f605e66060bb22d560
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-06-09 12:16:07 +00:00
Jesus Fernandez
f3cd5cdb7e Add a ShowContextMenu action
Allow users without physical MenuKey to open the context menu

Change-Id: Id886a5614e26d614cba6ceb3b08a9df6148e9655
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-09 10:30:35 +00:00
Ivan Donchevskii
9a0eca15c5 Clang: fix completion after forward-declared class
Do not complete -> and . with global completions if
foo is a ptr/ref to forward-declared class.

Change-Id: I41e6745ffb07be1d973fe6a8132824f1b3bf7fb1
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-06-09 07:05:25 +00:00
Nikolai Kosjar
821a2ad665 Clang: Fix uninitialized values warnings
...from coverity scan.

Change-Id: Id669dd5de9a92bfec76e1aff3b8462caf9baa968
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-06-09 06:22:10 +00:00
Marco Benelli
7a940febbe QmlJs: initialize qmlDumpEnvironment
Task-number: QTCREATORBUG-18335
Change-Id: I4f70da8062fde5aadef978f73351d8938d2267eb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-08 15:47:40 +00:00
Alessandro Portale
df8e126641 Core: Set template list ScrollMode in "New Dialog" to ScrollPerPixel
With the new big icons, the default ScrollMode = ScrollPerItem behavior
seems a bit unsmooth. ScrollPerPixel fixes that.

Change-Id: If4deb0f1323f70231af44a17d0b50eea9e37f10e
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-08 15:19:12 +00:00
Ivan Donchevskii
78db7d7ed2 Clang: turn off delayed template parsing
Fix templates highlight and completion on Windows
Add UI to turn on/off delayed parsing (off by default)

Task-number: QTCREATORBUG-17222
Change-Id: I0cd5e0bcfff2789cd938e4096829f777ff15957a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-06-08 10:53:31 +00:00
Orgad Shaneh
95f49a3c8c Gerrit: Do not refresh the gerrit dialog when it is invisible
Change-Id: Icd4387f69b616f275b46b3b12e8db90b4b280554
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-08 09:13:13 +00:00
Nikolai Kosjar
c801965b58 CodeAssist: Fix leaking proposal model
The model is not owned by the proposal.

For corner cases, we leaked here already for ages. Starting with

  commit fab4dd068e
  CodeAssist: Fix auto completion if function signature is shown

leaks happened also for a hot path: code completion results that does
not match any so far typed prefix. Due to auto completion turned on,
this triggers frequently when typing text.

Task-number: QTCREATORBUG-17752
Task-number: QTCREATORBUG-18326
Change-Id: I9df177723b31cf3df36e73ef1e7920d9aa5e16e5
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-06-08 08:07:07 +00:00
Jake Petroules
0784dd20fe Refactor iOS toolchain handling
This significantly simplifies the implementation, properly handles
C vs C++ compilers, and defaults to 64-bit architectures for iOS devices
and simulators.

LLVM-GCC support has been removed, as the last version to support it was
4.6.3, which is far below the version of Xcode we still intend to
support. The toolchains are also given more sensible names
("Apple Clang") instead of iphonesimulator-clang and iphoneos-clang, as
the there is now only one compiler for all Apple platform targets, and
there is one entry of the Apple Clang compiler per supported
architecture.

The different to the end user is minimal except that the compilers are
named better. The number of kits and their configurations remain the
same, but this patch paves the way for tvOS and watchOS support.

Change-Id: I6e2b17f8c17d9dd504f0ad540e08782f291b73c0
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-06-07 15:59:45 +00:00
Robert Loehning
232f6a1096 QmlJs: Remove unused members
Change-Id: I2656bafe9f22652a3e80e6581a41296dfb144564
Reviewed-by: Christian Kamm <mail@ckamm.de>
2017-06-07 14:58:36 +00:00
Eike Ziller
87d6706e34 Fix compiler path for MSVC 2017 installations
The folder layout has changed, so the sanity check if cl.exe is actually
from a Visual Studio installation failed.

Task-number: QTCREATORBUG-17925
Change-Id: I19bc0ca93ee529643f271b6e61b5afda27fdf446
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-07 10:19:09 +00:00
Tim Jenssen
78ed88552c reduce strange code to what it does
- no behavior change

Change-Id: If8ef04b9f99c976cb5fb69936e5fd02600940b2c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-07 08:57:00 +00:00
Vikas Pachdha
3a9f9d5eac iOS: Fix stack overflow issue
Change-Id: Ic71e2af2cff41c61c85f4798f06144b36e459448
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-07 08:53:26 +00:00
Tobias Hunger
186ec4e98a ProjectExplorer: Use member initialization for ToolChainInformationConfigWidget
Change-Id: Ife66a6b473213b6f7ebd27e358e06c4e90966a75
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-06-07 08:47:37 +00:00
Tobias Hunger
bfd468b792 ProjectExplorer: Use member initialization in Gcc's WarningFlagsAdder
Change-Id: Icebdc0ff55ffe4888c4eff2b79652fdbcdae3c1a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-06-07 08:47:23 +00:00
Tobias Hunger
72b658dde0 ProjectExplorer: Use member initialization for XcodeBuildParser test
Not necessary, but fixes a coverity warning.

Change-Id: I36a01519fec863d122f4ccddab76d8d8626f759e
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-06-07 08:47:13 +00:00
Orgad Shaneh
f392d94f6b QmlJS: Add a missing break
Detected by GCC7

Change-Id: I554e33fb709188acf780673705315091a526242e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-06-07 07:38:04 +00:00
Christian Kandeler
8ff6284e15 QbsProjectManager: Set up QML-related paths
This was simply missing.

Change-Id: Ie8b8cac88fef1c0560f9212b4c00edcd05d04a61
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-06-06 15:32:04 +00:00
Tobias Hunger
747b64a850 ClearCase: Make sure m_cmbActivity is initialized
Make sure m_cmbActivity is initialized, even when bombing out via
the QTC_ASSERT at the top of the constructor. This will fix a
coverity warning.

Change-Id: Ib5a68d8f5516ccee71c4dabc9c216092dd9c025a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-06-06 14:25:40 +00:00
Robert Loehning
1b2dc1511f Android: Remove useless test
Task-number: QTCREATORBUG-18331
Change-Id: I8c93d0b92c61c6cf58351d74871abb4267badd82
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-06 13:44:04 +00:00
Mitch Curtis
377979fe5e Update wizard template icons
The icons have been redesigned to have a more consistent and clean look.
The colors work well with both dark and light themes. The dimensions of
the icons have been made larger in order to facilitate their use in an
icon grid.

A follow-up commit will add more wizard templates that make use of the
larger icons in order to depict various Qt Quick UI layouts.

Some icons (Qt Quick Application, Qt Quick Controls 2 Application) were
unchanged, as the follow-up commit will remove them in favor of
more specific templates.

Task-number: QTPM-395
Change-Id: I5804c3fb92c60e53e1380cfb05d4c7f14e877d8a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-06-06 12:22:06 +00:00
Orgad Shaneh
41a2ce871e BareMetal: Fix crash on shutdown
BareMetal is destroyed before ProjectExplorer.

When DeviceManager clears its device list, it calls the devices' dtors,
which in turn call GdbServerProviderManager::findProvider in order to
unregister.

Since m_instance is already null at this point, this leads to a crash.

Change-Id: I1075433cad5579febddf79b463ffe12cdb75a85c
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Tim Sander <tim@krieglstein.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-06-06 10:59:17 +00:00
Robert Loehning
20a1103296 CppEditor: Remove wrong "else"
Task-number: QTCREATORBUG-18331
Change-Id: Ia4221bce8cac7d781e9b32bc6142269089c4acce
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-06-06 10:50:12 +00:00
Orgad Shaneh
70ff6eb2cc CMake: Add a missing break
Detected by GCC7

Change-Id: Ia9a76df63c28d4f4ebf3e20f70ab39224115b5a1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-06 10:05:33 +00:00
Orgad Shaneh
59a5c0c232 CppTools: Avoid QT_SUPPORT macro
It is deprecated, and GCC7 warns about RHS expansion to defined.

Change-Id: I161ee9c566ee12d0e443a9054dd0e5cdadc0518e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-06-06 07:32:08 +00:00
Christian Stenger
a86c28f4d5 iOS: Fix compile
Change-Id: I0a7d7f7a40762dfc260eed65f51ee93ecb3d61f5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-06-06 05:45:17 +00:00
Robert Loehning
d75ff0aab8 QmlJS: Remove redundant code
Change-Id: I8ad31899fb8c866c086c6e4a1fdbf7e10f939290
Task-number: QTCREATORBUG-18331
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-06-02 15:10:42 +00:00
Vikas Pachdha
f9350a5dbd iOS: Fix isRunning state of the app running on Simulator
Refactored IostoolHandler code and fixed isRunning(..)
for Simulator

Change-Id: Ib24431fc8e66f8d1be983c2e41d36df2169a9cb4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-06-02 12:51:43 +00:00
Robert Loehning
d23f4cff84 SDKtool: Provide default values in Operation objects
Change-Id: I3d121e4bee891309f455a67ade76f0ea4f26c77c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-02 12:17:44 +00:00
Orgad Shaneh
89057b552b Merge remote-tracking branch 'origin/4.3'
Change-Id: I56004e3ec9dc9d92d33bdae438c4f7e069eccc45
2017-06-02 15:13:51 +03:00
Robert Loehning
d75bf0098b Debugger: Fix C&P mistake
Task-number: QTCREATORBUG-18331
Change-Id: I2d9ac0f8add3beaa6b6c4afe70113645121cb5f6
Reviewed-by: hjk <hjk@qt.io>
2017-06-02 12:08:15 +00:00
Eike Ziller
0b062584f4 Help: Get rid of compile warning
About possibly loss of precision.

Change-Id: I555306210da23eda25bcddab84af476db7849b84
Reviewed-by: hjk <hjk@qt.io>
2017-06-02 12:03:05 +00:00
Christian Kandeler
fbd974bd13 Update qbs submodule
To HEAD of 1.8 branch.

Change-Id: I2776a2de9794920cce0b0fcf645f3ecb575ab693
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-06-02 11:59:51 +00:00
Christian Stenger
ec3015663a CMakePM: Fix compile for Qt5.6
Change-Id: I5febf1af38062b2d5e5c59e984ae97e6fb1168f5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-06-02 10:42:03 +00:00
Christian Stenger
a9d511ff7d AutoTest: Unify TestTreeItem::modify*() functions
Change-Id: Ia234fb6a8a8466c039060f6f00b1a5e3dea2af9e
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-06-02 10:14:28 +00:00
Robert Loehning
3bd32292b7 Botan: Fix various bugs found by Coverity scanner
Backported from upstream 9b74862771aff940361078533cca5b5e78bdf630

Change-Id: I9c457cfa19bd3b6d21469545230e73e49e4f8dde
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-06-02 10:08:40 +00:00
Orgad Shaneh
9154a457fd DiffEditor: Add context info to side by side editor
Task-number: QTCREATORBUG-18289
Change-Id: Ibc4a626c22cc1d96b27e8744a87dd2780cec549e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-06-02 09:52:29 +00:00
Orgad Shaneh
d64fa1ee48 Gerrit: Refresh when the dialog is re-opened
Task-number: QTCREATORBUG-10028
Change-Id: I60d91d88df5596f7d34605ed28d0cc6ef3427a8c
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2017-06-02 09:12:35 +00:00
hjk
2bf14c7614 Debugger: Remove some dead code
Nobody complained for more than a year, this is good to go.

Change-Id: I83811513f9be364a160ad86ecf7ca45a77529e6d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-02 09:11:55 +00:00
Eike Ziller
38763bf1b9 Locator: Move some API documentation to qdoc
Change-Id: Ic7c822ccc31285398bbf23b470abaf479f9b1e55
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-06-02 07:36:28 +00:00
Eike Ziller
dfe734325e Locator: Remove dependency on MainWindow
Change-Id: I3949cca285d49fddf9c8c476ad19ed7ce9a06f1c
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-06-02 07:22:20 +00:00
Eike Ziller
33cc799b98 Locator filters: Add overrides
Change-Id: I20f93d6bcb22a342d9f662d8190f97798ca3e423
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-06-02 07:17:24 +00:00
Eike Ziller
6310afc1b2 Locator: Remove unused return value
Change-Id: I3f7d237430591cfa1ddf07a92e74805b0628bcff
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-06-02 07:15:41 +00:00
Robert Loehning
725d39a0fd qtpromaker: Initialize tree level
Change-Id: I7df4f7c9f652ce11203d8014439167ce2209d04c
Reviewed-by: hjk <hjk@qt.io>
2017-06-01 17:23:59 +00:00
Thomas Hartmann
64276dddf2 QmlDesigner: Catch possible exception
Change-Id: I07114693958c1ad090aee229ae31f1966d258eb9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-01 15:04:33 +00:00
Thomas Hartmann
236d7c094b QmlDesigner: Do not throw in comparison operators
It is unexpected and not required at all, since
the operators are well defined for invalid nodes.

Change-Id: I56841a21b8ba814fc2996485084584d9b4b521c2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-01 15:04:26 +00:00
Robert Loehning
ceb9533f75 Debugger: Clean out fixupParameters
Change-Id: I01b1308f4d438b7e0cb4ae643b79abd285ea9db7
Reviewed-by: hjk <hjk@qt.io>
2017-06-01 14:27:59 +00:00