Commit Graph

50929 Commits

Author SHA1 Message Date
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
Leena Miettinen
38753d06a2 Doc: Describe Choose Folder command in File System context-menu
Change-Id: I0051e36c61e38f059134f0ceec394475d0b68a41
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-25 12:12:07 +00:00
David Schulz
cc765e9fad Debugger: Raise exception for invalid memory
The api doesn't expect empty arrays and doesn't validate indices
before accessing them.

Change-Id: I6d6fde9eec6d65d5db351be821fed892a77fabc1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-25 12:04:52 +00:00
hjk
eefe4fb7f7 Debugger: Add a dumper test for shared_ptr<ThingWithVTable>
... and fix lldbbridge to pass it.

Change-Id: I2c20cfafe5d7695d4359521cbfcbdc235dacbc82
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-25 11:57:24 +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
Kevin Funk
062bf190b8 tst_dumpers: Restore compilation with MSVC
We need to explicitly pass -MD when compiling source files. Unsetting
QMAKE_CXXFLAGS_RELEASE under MSVC strips this flag.

Error:
watchdata.obj : error LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in
debuggerprotocol.obj
watchutils.obj : error LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in
debuggerprotocol.obj
tst_dumpers.obj : error LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in
debuggerprotocol.obj

Follow-up on 0bf4bfcade

Change-Id: I4b63f23c6a0bb6330d30b5ffe894fa0ddcd74cab
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2016-11-25 09:26:53 +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
Jarek Kobus
dbfb5eaba1 Fix showing/hiding context lines spinbox in diff editor
Widgets which were added to a toolbar can only be shown or hidden
by calling setVisible() on their respective action, which was
created while addWidget() was called.

Change-Id: If09257abf5a7a054513fe01b2a1c69d584865dfa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-25 08:45:36 +00:00
Eike Ziller
57ca90b846 BaseFileFind/FindInFiles: Clean up enabled / valid state handling
IFindFilter:  Separate enabledChanged and validChanged
SearchEngine: Add enabledChanged
GitGrep:      Enable widget based on enabled state
FindInFiles:  Update validity on search engine enabledChanged instead of
              hardcoding it to when the search path changed

Change-Id: I0c684423b871a3a4f1f164574f42e23b64cf9da0
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-11-25 08:42:53 +00:00
Eike Ziller
62a842e447 Find: Reduce indirections and bookkeeping
Get rid of the separate filter -> action map, some utility functions,
and action user data by utilizing lambda captures.

Change-Id: I1eb8969440fdfedfee96a9f9e046c1436d02d64f
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-11-25 08:42:37 +00:00
Jarek Kobus
224fda31df Keep bineditor zoom in sync with global settings
The code is basically copied from TextEditorWidget.

Change-Id: I5a88814d59ee991be030b15840e1aff08f20a25b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-25 08:39:18 +00:00
Leena Miettinen
4585014b82 Doc: Replace "Mac" with the \macos macro
And add the Oxford comma.

Change-Id: I5cf34843bd1466e7194e653ec5695786a6478549
Reviewed-by: hjk <hjk@qt.io>
2016-11-25 08:11:35 +00:00
hjk
5a914b55fc Debugger: Use int instead of bool in test code that can be C
Change-Id: I91fa6e97d4fbffef14a64c2203710923a13d7479
Reviewed-by: hjk <hjk@qt.io>
2016-11-24 17:11:16 +00:00
Marco Bubke
9dfa210011 Clang: Partial fix for highlighting off output arguments
We get the source range for the parameter list and not the arguments
in the initializer list back. So we have to disable the test case.

Task-number: QTCREATORBUG-17101
Change-Id: I65ec6d111766b5728a951b024576cbf777c89728
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-11-24 16:54:01 +00:00
hjk
99097d011e Debugger: Skip dumper tests automatically depending on build environment
Change-Id: I2df98c283de180f72f2f214637223a7c2f63114c
Reviewed-by: hjk <hjk@qt.io>
2016-11-24 16:25:08 +00:00
hjk
b18ac1faec Debugger: Make QStandardItem test pass without debuginfo
Change-Id: I9afbe8c76b6ff0797859f72741941a9ed34e57a1
Reviewed-by: hjk <hjk@qt.io>
2016-11-24 16:24:30 +00:00
Christian Kandeler
00f9ee1a3e Debugger: Better fix to extract Qt namespace with GDB
Done-with: Christian Kandeler
Change-Id: Idf34bee297677e837085d55297a0d6e6341dd2c7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-11-24 16:21:21 +00:00
Leena Miettinen
51c09e1791 Doc: Edit the information about using Bazaar
Add a link to the descriptions of the common functions and
turn the table into text.

Change-Id: If954b9d911e5f9e9b568ff1d4260025e7a9c7967
Reviewed-by: Hugues Delorme <delorme.hugues@fougue.pro>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-11-24 16:05:14 +00:00
Leena Miettinen
b25a408444 Doc: Describe the Import Existing Build menu item in Projects mode
Update the screenshot.

Change-Id: Ibc541c12f3545937a6420698f63c7fcdb38dda34
Reviewed-by: hjk <hjk@qt.io>
2016-11-24 16:04:54 +00:00
hjk
a225158c24 Debugger: Simplify dumping of paired items
Change-Id: I191801489d88c6abd15c6f3cd1cc6df97c8668d6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-24 15:12:14 +00:00
Leena Miettinen
177547da58 Doc: Link to common VCS functions from the Mercurial docs
Change-Id: I4cdf3323e556b4903ff67086367478e0ec22503a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-24 14:53:10 +00:00
Florian Apolloner
4c22f3a76c Fixed cmake signal handling in server-mode
Task-number: QTCREATORBUG-17319
Change-Id: I25673a32142a691dff2444be8981d747f10e18c5
Reviewed-by: Florian Apolloner <florian@apolloner.eu>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-24 14:51:17 +00:00
Ulf Hermann
7c07774a04 QmlProfiler: Don't use QML_MIN_LEVEL for expanded row number
You cannot have a row label on top of the category label, so in
expanded mode, the rows have to start at 1.

Change-Id: I89e5219355919dcc9003a46f9caf8f017b37e6cf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-11-24 14:25:11 +00:00
Leena Miettinen
319a3e231a Doc: Editing info on Perforce
Converting a table to text to be able to describe the related
options next to the functions.

Change-Id: If50084e4e83a3c8a50cad84c458f58caa979ac86
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-11-24 14:20:11 +00:00
Eike Ziller
be2697f818 Avoid resizing of document dropdown
When e.g. splitting while an editor with a long display name is open,
the new editor area would start with a huge document combo box.
Fix it to the minimum contents length.

Change-Id: Ic58e477cc8f9a91e7fa138de63ed7df80487a5fe
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2016-11-24 14:19:04 +00:00
Thomas Hartmann
08c9055ab0 QmlDesigner: Fix delegate for images in tree view
Assigning different heights for different model indexes
does not seem to work. Every item has now a height of 64.

This is fixing a couple of ugly graphical glitches.

Change-Id: Ib047dfa5cfbbc8afca6e1e2384792dbe156b5c4f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-24 13:58:27 +00:00
Nikolai Kosjar
3245a3d2f5 Clang: Soft assert valid instrinsics dir
We probably should add a message box for this in the master version.

Change-Id: Icc01eeb258445c361e7c6227e6bd768b9d16d350
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-11-24 13:57:17 +00:00
Ulf Hermann
7d542b82ad QmlProfiler: Don't test for default kit in attach dialog test
The test should also run if there is no kit.

Change-Id: Ia2b5d34f2fc792235fb9da9c77f9235c186addde
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-24 13:56:09 +00:00
Nikolai Kosjar
84dd43f413 qbs build: Fix passing on include dir for intrinsics of libclang
In

    commit 31258ec555
    qbs build: Introduce libclang module.

"llvmVersion" was overlooked.

Because of this, the definition of CLANG_RESOURCE_DIR in
clangcodemodel.qbs led to an invalid path which eventually was
discarded.

Change-Id: Ia1eb50cf738df4affbedc99849bf5326a8e8fb19
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-11-24 13:51:32 +00:00
Leena Miettinen
0ab80aca72 Doc: Delete docs for an obsolete Git option
Change-Id: Iaa6a778c483c8b51fa273ae219466a5623c9ca29
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-11-24 12:38:08 +00:00
Leena Miettinen
d6e194f93a Doc: Edit CVS docs
The URL of the CVS site has changed.

Change-Id: I0d5f80d6977d8058103c6889e11f93f22b432d49
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-11-24 11:47:35 +00:00
Tim Jenssen
c7cb98eeb2 Welcome: set import pathes only one time
Change-Id: Ie398a8fdbea44498d03870f42a89e2b185bf51be
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-24 10:45:56 +00:00
Jarek Kobus
b8036e7d31 Don't save context chunks
Otherwise the saved patch file contains the whole contents
of the compared files.

Change-Id: I0f2d4c4e9b2c56ceab2b1e312e0895087060d0dc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-11-24 10:33:20 +00:00