Commit Graph

44349 Commits

Author SHA1 Message Date
hjk
d98d9025b8 Debugger: Fix environment passing with LLDB
Change-Id: Ic51a5ee1b9ef69b60279f045175be6d59b53582b
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-07 07:39:44 +00:00
Nikolai Kosjar
521423b433 CppTools: Call ProjectInfo::finish when we get it
No need to require the project managers to do this. Also, it is easy to
forget.

Change-Id: I96f7a5e5547418678af9653e5753c372f0880e5a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 14:34:39 +00:00
Nikolai Kosjar
d006fc4149 QMakeProjectManager: Clean up updateCppCodeModel()
Change-Id: I083a6ed91d78ee278977128ec0f19ed28d0eeae4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 14:34:33 +00:00
Tobias Hunger
81dbec7c50 Qmake: Add some breaks so that the expected OS is selected
Change-Id: I3d0184bb408125eecb6a8e728fabe593233115c2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-12-06 13:59:13 +00:00
Nikolai Kosjar
458e775f88 QMakeProjectManager: Remove unused function
Change-Id: I47f598f5de364f8039de910894747b2d66ceba0e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 13:55:18 +00:00
Tobias Hunger
9c93e757e6 Core: Fix potential nullptr access
Change-Id: Idabb3b438f7b8279821b5cb0075f5e23170a95e0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 13:37:37 +00:00
Orgad Shaneh
6dc5699423 Update qbs submodule
To HEAD of 1.7 branch.

Change-Id: I882be8dad05ffcd9a2f3f0c78b278bb5d94b985b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-06 12:51:04 +00:00
hjk
98e0b4b0b5 ProjectWindow: Add a buttons to import builds to project tree
... to a shortcut to the Kits setup page.

This duplicates the functionality from the context menu but can
be directly spotted.

Change-Id: Ia5c2e1208346dc7191a04fbb9c2569ccab9aab31
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 11:53:15 +00:00
Tobias Hunger
a816228f87 Qnx: Remove unnecessary nullptr check
Change-Id: I164d68814a685060782eacc644dfdc114f60d688
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 10:21:15 +00:00
Tobias Hunger
4c86cd6f5c Qnx: Fix inverted logic
Change-Id: Ie92720a7bf6730f0d767ab69da5672074d870449
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 10:21:06 +00:00
Tobias Hunger
de0cf4e92c Android: Simplify code and make sure all members are initialized
Change-Id: I873737d39865f9a920a5893c9630430e6803a6ee
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2016-12-06 10:18:54 +00:00
Tobias Hunger
c7f19dc0a6 TextEditorWidget: Simplify code
* Prevent potential nullptr access while at it.

Change-Id: Icee9e711b8a09b11e5644b0643d4751909b96101
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-06 10:18:43 +00:00
Tobias Hunger
5a58e96237 Process_stub: Make sure strings are \0 terminated
Change-Id: Ic3d431e850cb09627359aae0e0c755f02b4835c0
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 10:18:10 +00:00
Tobias Hunger
8b48f47d12 Designer: Remove dead code
Change-Id: I8f930ffff178e9a1c4547331a1e92609657dbc00
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-12-06 10:11:51 +00:00
Ulf Hermann
fcbe75f9e4 QmlProfiler: Unify conditions in binding loop render pass
Invalid events with binding loops could trigger a null pointer access
as the the check for creating the nodes for the binding loops render
pass was somewhat stricter than the check for populating them.

This is largely an academic problem, though, found by coverity.

Change-Id: I7f2681960f23e4a31977faa0d538bc257fa4cf2c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 09:28:07 +00:00
Tim Jenssen
4d8d0f01d8 QmlDesigner: reduce some warnings
Change-Id: Ied3597d32dc5c29de0d4caee78662342d28445cc
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 20:36:23 +00:00
Tim Jenssen
f061c8a53a Utils: Initialize all members of ShellCommandPage
Change-Id: I6f6d06f4e6be8b6a8c3b5f7c4b2072660b099699
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 19:04:02 +00:00
Tobias Hunger
c163240611 QmlDesigner: Prevent possible nullptr access
Change-Id: I90f131526f97fa879cf9e6428547e6e8ed9aa936
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:59:15 +00:00
Tobias Hunger
b31c408c87 ProjectExplorer: Check before setting errorMessage
Change-Id: Ic9437c3527f4f26bf72c5f7d18fdbde1217f4dd4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:41:55 +00:00
Tobias Hunger
5bd68d6773 QmlDesigner: Prevent possible nullptr accesses
Change-Id: I4b271e7672452473d4587b49bb368aa57f7e47ca
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:38:09 +00:00
Tobias Hunger
9801472d33 CMake: Fix potential nullptr access
Change-Id: I08bcbde9702bb9bea5fe4f24247eb3856e79f339
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:36:10 +00:00
Tobias Hunger
c4ff03d8b5 QmlDesigner: Prevent potential nullptr access
Change-Id: Ia11e0968bfc1368e3485a4b5f0d0ea0fa95a7a3f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:27:33 +00:00
Tobias Hunger
d88ba65a57 QmlDesigner: Prevent possible nullptr access
Change-Id: I1d101f5ee99db9c0fedae02a0cb23be1da22ffe1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:27:08 +00:00
Tobias Hunger
423ac2d32b ProjectExplorer: Fix potential nullptr access
Change-Id: I3469643c9744b33cafb4242709f843b8b700f9ce
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:26:19 +00:00
Tobias Hunger
9c05baaf57 QmlDesigner: Remove unnecessary nullptr check
Change-Id: I056a761d8fa0a3725bd3ebab7dd0ec022e1c6584
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:25:25 +00:00
Tobias Hunger
2044c834d2 Modeling: Fix potential nullptr access
Change-Id: I9b8fa7de10e7fbe089c9bdde6d9f42c427ca8f82
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:14:31 +00:00
Tobias Hunger
2ce647f885 ProjectExplorer: Fix potential nullptr access
Change-Id: If5e4a9b3ba3eb25549406be76c5f14e2479b7cf4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:11:46 +00:00
Tobias Hunger
fb78c31192 TaskList: Initialize members
Change-Id: I4f3b3d9382215c832a1baf5adad60901800650e4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:09:17 +00:00
Tobias Hunger
e903a5871a ProjectExplorer: Remove unused members
Change-Id: Ie0076278ed30c70d4731dd67d1f58635d46153ab
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 17:57:21 +00:00
Tobias Hunger
e58020c346 Utils: Do not dereference nullptr via errorMessage
The errorMessage passed into this function apparently can be a nullptr,
at least everywhere else it is checked whether or not errorMessage is
nullptr before accessing it.

Change-Id: If0920275ebce394a1b7085b815eaa6994b76ee3b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-05 16:32:07 +00:00
Tobias Hunger
e492ee2b14 Core: Simplify code in ModeManager
* Fix a possible nullptr access while at it.

Change-Id: I24ba1d5ebf9873059526aa8cf7974960c6fd4c8a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-05 16:22:04 +00:00
Tobias Hunger
45ad669a88 CMake: Return empty tree on errors in server-mode
This triggers the fallback mechanism which will make sure the CMakeLists.txt
file will be displayed.

This used to fail since one empty folder was left over in the project.

Task-number: QTCREATORBUG-17383
Change-Id: I867fd9039bc5df805ff5174ec49084bbcf688824
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 16:21:30 +00:00
Tobias Hunger
7e10f84c2e Utils: Simplify code in Wizard
Change-Id: I79056601c9819ba127c186132557c3310a5754a5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 15:55:53 +00:00
Tobias Hunger
eaa12ce515 Utils: Polish
Change-Id: I90d2a53e013ca78e14f23a19a11f5ebd73b74d96
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 15:21:00 +00:00
Tobias Hunger
1f69d6e0c4 QmlDesigner: Fix logic bug
Change-Id: I33f497afa40606aba5538c52f47787dcca84d78b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 15:19:33 +00:00
hjk
b662a59437 Core: Make initial default window wider
The new project window works better with 1280 pixel. Assume that is
a good default width in 2016.

Change-Id: I0c96db1bd279f6587e69c36ca01d1cd4f5243769
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-05 15:18:40 +00:00
Tobias Hunger
059d060dfa WinRT: Use member initialization
Make sure m_process is initialized while at it.

Change-Id: I2a06bc265cb8e6988ef1985a788b33989ae4c0b0
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2016-12-05 14:54:53 +00:00
Tobias Hunger
84d4b13899 Utils: Reduce padding in HistoryCompleterPrivate
Simplify code and make sure to initialize all members while at it.

Change-Id: Id9cfbcd1f78fd00391fecc4e767affc56b60f3ef
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-05 14:54:35 +00:00
Marco Bubke
b8e391e5f0 Utils: Fix SmallString reserve for read only references
The capacity of a real only reference is zero but the size is larger than
zero. So if we reserve memory the new capacity has to be bigger than the
size and the capacity.

Change-Id: I8b423da7e7c1cf7cee081d1b3f3464b6fb3f67cf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 13:59:56 +00:00
Tobias Hunger
a290850afc Debugger: Remove useless nullptr check
Change-Id: I4b05573276a1372a1f238fbe1cdd9ee67add7158
Reviewed-by: hjk <hjk@qt.io>
2016-12-05 13:46:25 +00:00
Tobias Hunger
9dab028fa8 TextEditor: Initialize all members
Creator can start to shutdown before initialize is called. This should
be safe here right now, but let's not take chances in case somebody
refactors this later.

Change-Id: I961c215b8dffc92cf90d9f83e91b0b3034772077
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-05 13:46:10 +00:00
Tobias Hunger
87b29eeaad TextEditor: Initialize all members
Change-Id: Ibbed17b353dfef8b9aedbcd1860b862825b947a1
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-05 13:45:56 +00:00
Tobias Hunger
c25a56dc07 WinRT: Initialize m_deviceId
Change-Id: I16ef289f21b9c7a925bf16f8560d07fed4206bd2
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2016-12-05 13:45:41 +00:00
Tobias Hunger
85115d486a Debugger: Initialize members
m_toolbarDock was only initialized in finalizeSetup, which is triggered
by the plugin's initialize() method. This is not safe since Creator might
shut down before that method ever gets called.

Change-Id: Idadb6ac943ed6799d1bd9db1ecb884cb39038389
Reviewed-by: hjk <hjk@qt.io>
2016-12-05 13:19:40 +00:00
Tobias Hunger
15cad7dec5 FakeVim: Initialize pointer
Change-Id: Icfb7f733f41593aef09c71d5f8f13f8c453c7cd6
Reviewed-by: hjk <hjk@qt.io>
2016-12-05 13:19:22 +00:00
hjk
6d9afdc4ff QmakeProjectManager: Compile fix after ebf8c1eaf0
Change-Id: I4e1315dd7b1cdc11a355330dcad653667967ec8d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 13:18:35 +00:00
Tobias Hunger
b002e87ca4 Designer: Avoid some useless type casts from unsigned to int and back
Change-Id: Ia3b270f8ad4f3857085f1e42155972d909713c16
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-12-05 13:13:10 +00:00
hjk
4b661c3130 ProjectWindow: Delay panel update after target adding
Parts of the machinery are not yet done when the signal
arrives, waiting for next event loop iteration suffices
to get a context enabling us to show the proper panel.

Change-Id: Icbf33a4f5a900058ecc89ac125eb43313e12b74f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 12:26:25 +00:00
David Schulz
c8215d4b6e Editor: Fix search result backgound for declarations
Don't add a background to a format without a background
if a mixin is applied.

Task-number: QTCREATORBUG-17314
Change-Id: Ie76fe7f69e98e9cfdfa290c40f0774dbe6f86cea
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-12-05 12:26:06 +00:00
Tobias Hunger
8f4c2c186f ProjectExplorer: Fix error reporting in customwizard
Change-Id: I8165c16280a11b7ea212123b4aff14ed95f440d2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 12:10:57 +00:00