Commit Graph

44349 Commits

Author SHA1 Message Date
Tobias Hunger
c522d4d872 Scxml: Initialize m_size in FinalStateItem
Change-Id: I7a06e88655fed5d17cee7ecb624962be350143c4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-29 15:17:42 +00:00
Tobias Hunger
6db7392daf ProjectExplorer: Initialize page index
Change-Id: I91369bf4f5a8b785f656933a9e9a9603a6e1883d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-29 15:14:43 +00:00
Tobias Hunger
81401ace26 CppEditor: Fix possible use of uninitialized values
Change-Id: I138309e5e85c839250f5f93448530b9e12c5f6af
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-29 15:13:26 +00:00
Tobias Hunger
38f089c580 Android: Initialize CreateAvdInfo::sdcardSize
Change-Id: I77c4055c488fd426e186666ac6ee48e3b60211c6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-29 15:12:49 +00:00
Tobias Hunger
71e97a51f4 Todo: Initialize IconType in Keyword
Change-Id: I15bad1448d4b2ae6fe13b6420633bc7407eedd61
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-29 15:10:14 +00:00
Tobias Hunger
b293f81b41 RemoteLinux: Do not leak memory
Change-Id: Iea89c88e7c447288e7871e3c82db8295b3af2498
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-29 15:08:06 +00:00
Tobias Hunger
c0fdb14a94 Qmake: Remove some QLatin1Strings
Change-Id: I115bfba456337b3753cc00646da42e4c63db9963
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-29 15:06:30 +00:00
hjk
cffe189dd2 Debugger: Use better approximation for sizeof(double)
Change-Id: Iec35e285384b6b4a7b184383f56a0772348f4f7d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-29 14:55:56 +00:00
Ulf Hermann
95d70a8957 SCXML Editor: Add some fall through markers
The parent/child relations between scxml tags are correct.

Change-Id: I58cd4153feee8b7cf8bdb74f89486e9fbc641839
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-29 14:53:13 +00:00
Tobias Hunger
70ad561ec0 Utils: Initialize member of ElfMapper
Change-Id: I057671738763e0b1522a3f44524607d7eda66636
Reviewed-by: hjk <hjk@qt.io>
2016-11-29 14:51:52 +00:00
Tobias Hunger
624c7cf250 Debugger: Initialize members in DebuggerProtocol
Change-Id: I612db0554205c2c34c3505c0fb91559554c06923
Reviewed-by: hjk <hjk@qt.io>
2016-11-29 14:51:40 +00:00
Tobias Hunger
7876f8ee9d QmlProfiler: Initialize fields in PixmapCacheItem
Change-Id: I4ab27b6a122a1a77fad23dfa1a1a8f825fff0765
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-11-29 14:51:30 +00:00
Tobias Hunger
e6e207a49f Debugger: Initialize members of OperatorNameNode
Change-Id: I662034e92687e228777c5a7983e799ffa90d9237
Reviewed-by: hjk <hjk@qt.io>
2016-11-29 14:51:09 +00:00
hjk
af3834f1ee Debugger: Force direct engine shutdown on GDB crash
Task-number: QTCREATORBUG-17341
Change-Id: I4011345fbd8810841f4236cc532a0eafcaf587b8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-11-29 11:41:41 +00:00
hjk
b84bf4946f Debugger: Allow repeated editing of watchers
Task-number: QTCREATORBUG-17332
Change-Id: Ie647b956426c81a8f448dfde14b77798b5b73788
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-11-29 11:20:21 +00:00
Marco Bubke
600b85defa Utils: Add carriage return strip method to SmallString
Sometimes you want to compare unix and windows texts in tests. This is a
convenient function to remove the carriage returns.

Change-Id: I164298b70d3d775dd45903ea3753ac0e68ed2fdc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-28 16:48:25 +00:00
Christian Kandeler
d5dd9c0808 SSH: Fix typo in key generator that leads to a crash
Introduced in cc04b849.

Task-number: QTCREATORBUG-17349
Change-Id: Ib392ebbffa3d3bb94890f1a55e7288859709b046
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-11-28 15:32:36 +00:00
Eike Ziller
2758f05af2 BaseFileFind: Fix crash when running search
Make sure we set a current search engine.
Regression introduced by 57ca90b846

Task-number: QTCREATORBUG-17346
Change-Id: Ia65971411e70124b0ea78cfe06597e34a6416af6
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-11-28 15:13:05 +00:00
Orgad Shaneh
7b3642cce4 Merge remote-tracking branch 'origin/4.2'
Change-Id: I259a402bc896fc2e359cc96b7510453ac9a9a552
2016-11-28 15:27:51 +02:00
Vikas Pachdha
bf8f998b5e Android: Fix android app startup
Method to find the pid is changed. Not all android versions support grep
and test commands

Task-number: QTCREATORBUG-17272
Change-Id: Ifa67444af55eaf06fb2d6f6bb0439cfaf3bf305e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-11-28 11:19:23 +00:00
David Schulz
346aac7b5a Debugger: Expanding symbol before getting the number of children
DEBUG_SYMBOL_PARAMETERS.SubElements is uninitialized when the
symbol is not expanded.

Change-Id: I6e5bd3920bd3569b70ac467f9e4d3b0be11c9deb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-28 11:07:40 +00:00
David Schulz
a91dce13ba Debugger: Do not add values for indices out of bounds
Change-Id: Ifa3dcade9939df095a2dc46bcdf49cb37906d95f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-28 11:07:24 +00:00
Thomas Hartmann
b3119d1994 QmlDesigner: Using passive consistently in AbstractView api
Using "changed" for all methods of AbstractView.

Change-Id: Idd607d7e6087b83954b081fb49fd39e0bd196c3d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-28 10:20:38 +00:00
Orgad Shaneh
414f49ea19 VCS: Use Qt5 connect for annotate
Connect directly to the editor widget, which has a strong type.

Change-Id: I4d9778bc4a3c8ba1b37c5a5c0286fd72cda135de
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-28 09:39:38 +00:00
Orgad Shaneh
5832f52cee VCS: Replace describe slots with lambdas
Change-Id: I05ca25aad8be43fdfa15d3fb5eaaa9bf753ee79f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-28 09:38:12 +00:00
Orgad Shaneh
0378882174 ClearCase: Re-slot annotateVersion
It is still used as a slot.

Change-Id: Iffebebce771362b5b2d836d73adca4e1a3919d40
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-28 09:37:45 +00:00
Thomas Hartmann
677965d1dc QmlDesigner: Fix debug message
Change-Id: Ifb019f4d888c2235a75a082e0f261c60a61070bd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-28 08:42:38 +00:00
Friedemann Kleint
14eadb0f6d Fix accessing temporary copies via QStringRef
Amends change 840e787175

Change-Id: I633500b0fdbeeeb8b3d8accd3aec1e2990c62bca
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-28 08:25:14 +00:00
Ulf Hermann
31749b76b8 Cmake: Don't take QStringRefs of a temporary QString
This crashes.

Change-Id: I3f81466f504fdff8d47372425ea8f84048f89b76
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-11-28 08:19:09 +00:00
Tobias Hunger
565aed03a2 Wizards: Use filename, not baseName for license headers
Task-number: QTCREATORBUG-17343
Change-Id: I23ae4b510bb2dc81bd34253e8129ba148ae92021
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-25 15:20:15 +00:00
Thomas Hartmann
8d4bb9ca6f QmlDesigner: Synchronize parent if component is completed
This is required if the completed signal comes after the children changed
signal.

Change-Id: Ic497dad2b6f652f55e412e61373c9424dc8991ec
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-25 15:10:43 +00:00
Tim Jenssen
b74c33d7a7 QmlDesigner: add some const
Change-Id: I2f76cb59ba05a483f934c067d656a4028d0ac7f8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-11-25 14:22:26 +00:00
Tim Jenssen
f7c04cd9b9 QmlDesigner: initialize warningWidget on use
Change-Id: If165a3a8a4adfae166424dcf4a6257f483043f8c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-11-25 14:22:06 +00:00
Alexander Drozdov
651460cd8d CMake: separate processing C and C++ flags in TeaLeafReader
C and C++ flags holds at the different variables/compiler settings in
the generated Make and Ninja files.

Currently only C++ Flags processed and assumes that same one uses for
C lang. But now QtC core can handle C and C++ separatelly, so just
add processing for that flags and use it for code model.

Change-Id: If1f71a2c58284a46324f04e962fc120cc316b0fb
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-25 13:59:20 +00:00
Eike Ziller
b2e4fdee0f Use QRegularExpression for text document searches
Is more powerful (Perl-compatible) and more consistent with the other
searches.

Task-number: QTCREATORBUG-6801
Change-Id: Icd7febc8435b522f0df1aba10a2bca4acf8aed88
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-11-25 13:12:01 +00:00
Christian Kandeler
3aaf2a69a4 Update qbs submodule
To HEAD of 1.7 branch.

Change-Id: I2d1336c8332684b902c8e999b5e5b14afeebd7de
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-11-25 12:55:54 +00:00
Vikas Pachdha
9f0bb3c93a iOS: Add C toolchain
To fix kits complaining about incorrect C compiler and ABI
incompatibility

Task-number: QTCREATORBUG-17135
Change-Id: I69ece613453463b97d193bb1740044d16f62172f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-25 12:37:53 +00:00
Friedemann Kleint
840e787175 Use QString::splitRef() instead of QString::split()
Avoid string allocation where it seems feasible.

Change-Id: I61b23d4ef8a459f5aa77727a75f4e1d2b140da3b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-25 11:32:47 +00:00
Eike Ziller
90fb7c79d8 Raise version dialog if it already is open
Also register it as a window for the Window menu.

Task-number: QTCREATORBUG-14604
Change-Id: Ib52dcc193bf480ade14ca7c34b4dc10d6ec8fc4a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-25 11:31:59 +00:00
Tim Jenssen
05c589b866 Welcome: beautify code
Change-Id: I1dff086e7fb7839aa44383f80214a4543de916d1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-25 10:48:02 +00:00
hjk
89262f64a9 Debugger: Disable "Select Widget to Add into Expression Evaluator"
Doesn't work anywhere right now.

Change-Id: I094f0591a8f33a3d07065089ca4f70e4a2b6f145
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-25 10:36:52 +00:00
Friedemann Kleint
abc2742f86 QtSupport: Make error message about missing compiler more verbose
List the ABIs the Qt version has in case no compiler can be found.

Change-Id: If2c0e6052e234638b318ce1f92c255163fb68c3f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-25 10:29:46 +00:00
Tobias Hunger
e6bfa27614 Ios: Do not pollute the global/Qt namespace with widgets
Change-Id: Iccaaff6bff386b8d2513ca79daa581d29b3c6fb2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-25 10:25:41 +00:00
Tobias Hunger
1088cb8cb7 Remove files not used in the build
Change-Id: Ia5410c32bc002b21b63e12709bced4f90fcde61f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-25 10:24:32 +00:00
Tobias Hunger
d989397ddd GccToolChain: Remove QLatin1Strings
Change-Id: I1850f4fb3739e3002f30ca29b92971b990f46c94
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-25 10:24:25 +00:00
Tobias Hunger
4a02611cd5 Accept --gcctoolchain= argument to GCC-based compilers
Change-Id: I12c9d2e489b210433e9270de22783bbdc5c9544e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-25 10:24:20 +00:00
Tobias Hunger
391284f393 CMake: Fix <Build Directory> in server-mode
Files below <Build Directory> could not be opened from the project tree
since their file path was broken. Fix that.

Task-number: QTCREATORBUG-17297
Change-Id: Id785ffa1c4d22c4dfdc0b5ecf8217d3f8bc319c4
Reviewed-by: Florian Apolloner <florian@apolloner.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-25 10:23:50 +00:00
Friedemann Kleint
25745f4330 Add missing break in COFF parser
Fixes MSVC2015 builds being detected as MSVC2017.

Amends change 0a9414d467.

Task-number: QTBUG-57086
Change-Id: Ia795819d3c915d0be3e57ef16006e29aa98ee266
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2016-11-25 10:17:07 +00:00
James McDonnell
090556e5dd Complete the Language change for QNX
The QNX configuration code needs to indicate that it's creating C++ tool
chains and (for now) indicate that it isn't setting a C tool chain for
the kit(s) that it creates.

Change-Id: Ied50bec3624e768896b109f9fbd4bffd4581d428
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-25 09:49:50 +00:00
hjk
bf639fbcc6 Debugger: Do not attempt to update registers when not stopped
Task-number: QTCREATORBUG-17340
Change-Id: I582aa0bcbb41e62d34167c62bfc0cff6e6040b7b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-25 09:26:36 +00:00