Commit Graph

51482 Commits

Author SHA1 Message Date
Tobias Hunger
aa0c2a5ef8 ProjectExplorer: Remove unused pointer member from EnvironmentAspectsWidget
Change-Id: I61ffc4e7f003212c8b0b4d2dfc187724ac4aabc8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-12 08:50:23 +00:00
Tobias Hunger
ef72327495 Qmake: Use member initialization for GuiAppParameters
Change-Id: Ib438f41eb2e8c376fc1605046f416cd26f3503da
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-12 08:50:12 +00:00
Tobias Hunger
1c91bcb2a8 MSVC: Use member initialization
Change-Id: I1d9e7f71f807857c8955a3876dcbf775cd69b693
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-12 08:50:05 +00:00
Tobias Hunger
00cb9ee986 Kit: Use member initialization
All users did initialize m_priority with a call to setPriority in
their constructors, but we should not rely on that.

Change-Id: I707aaaf117e2680ba0bb1f2849e66c426b4fb8b4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-12 08:49:59 +00:00
Tobias Hunger
5058f269ef ProjectExplorer: Use member initialization in BuildSettingsWidget
Change-Id: I5949dee22fa6b4d152a65edd55cfc184bec82ab2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-12 08:49:53 +00:00
Tobias Hunger
dabda7966f WinDebugInterface: Use member initialization
Use member initialization to make sure everything is properly initialized,
even when not on windows.

Change-Id: I585476556fd83f493a68b26dcecd26dd772122e2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-06-12 08:49:48 +00:00
Orgad Shaneh
6b0e1bc5f8 Merge remote-tracking branch 'origin/4.3' into master
Change-Id: I83af635dcac98e4fd78b21d8dd9dc3a27a4fdf94
2017-06-12 10:01:16 +03:00
hjk
1d921ae044 Android: Convert into a RunWorker based setup
This moves all of the RunControl implementation into a single
RunWorker, not yet splitting it up into separate RunWorkers
which is the final goal of this series.

Change-Id: I7373105603505aa4fffd7fe5ff0145f0128b34bc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-12 06:38:40 +00:00
hjk
1a82bedc8b QmlProfiler: Merge LocalQmlProfilerRunner and QmlProfilerRunner
Also streamline code paths in the result.

Change-Id: Id7d96343a8f778ba8f415b1a850cc78576afa475
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-12 06:24:36 +00:00
Orgad Shaneh
8116cb39e1 Debugger: Add missing breaks in switch statements
Detected by GCC7

Change-Id: Ic4a1f0adac486d3f6d0f7da15b24e983c17225f3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-06-10 20:40:31 +00:00
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
Robert Loehning
78ab3c61f5 Squish: Don't try building with cmake < 3.7
Task-number: QTCREATORBUG-18290
Change-Id: I5b14d781e7e5382605d7e931d0461efa1b317397
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-09 10:18:34 +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
Sergey Belyashov
08ae312dce Update Russian translation
Task-number: QTCREATORBUG-18305
Change-Id: Ie6cb90054b2d562c0c73a3fc7307d7835cd78853
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2017-06-08 12:06:25 +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
Robert Loehning
7a068e494e Squish: Update speedcrunch's tree in tst_openqt_creator
Change-Id: I8f834a807f2dd10bed87829bf41c02e40913cd74
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-08 10:48:29 +00:00
J-P Nurmi
67b460b6cf qt5QtQuick2-bundle.json: add missing modules and versions
Change-Id: Ic101cda0a4b17557a8c04590fec22812331b189b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2017-06-08 09:51:31 +00:00
Leena Miettinen
0fe55f3b80 Doc: Add build system selection step to wizard instructions
This was still missing from the Qt Quick Application wizard docs.

Change-Id: I8e94d61080dc7877eb354c9342f49cdc1a6b01ed
Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-08 09:16:03 +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
Robert Loehning
600dd3a585 Squish: Update expected project trees when opening qtcreator
- Update Creator's sources to v4.2.2
- Update project trees to what Creator 4.3 shows

If needed, two separate changes are in codereview.

Change-Id: I16ee341653c8b916b15208f16699c0d4cbf6df05
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-07 13:27:24 +00:00
Leena Miettinen
98237b5176 Doc: Update deployment settings for B2Qt devices
Deploy step names have changed in Qt 5.9 and the generic Linux
steps can now be used.

Change-Id: I409cd2d7b289a22a3c958be32b78d6936074a535
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2017-06-07 12:26:03 +00:00
Robert Loehning
feaff29b78 Squish: Use cdb with Creator's bitness
Normal builds of Creator can only use cdb with the same bitness.
In the official packages this is being solved by sharing
qtcreatorcdbextXX between 32- and 64-bit builds.

Change-Id: Ib31e4d71789065bef908bf13569de4284ae20de9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-07 10:20:57 +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
Robert Loehning
d12dc00a79 QmlDesigner: Remove unused member
Change-Id: I646ebaed1179fd679b67ec8c942d7b8a592e9900
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-06-07 10:13:58 +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
Orgad Shaneh
d7d415491a Dumper: Fix type of lvalue for bitfields on GDB
Change-Id: Ic0e82fc012eb1277a74ff2e63fdc0a13caaf5f1c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-07 07:37:47 +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
Orgad Shaneh
e9491870bd Dumper: Do not use None for bitpos
It causes an exception when being divided

Noticed with boost::icl::interval_set.

Change-Id: I5629436c3c1ba10e7b67bb05d720329f4c61eafe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-06-06 07:13:05 +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