Commit Graph

44854 Commits

Author SHA1 Message Date
Nikolai Kosjar
08fcb7f317 Clang: Filter out invalid diagnostic ranges
Apparently libclang might return invalid ranges.

Now we discard the invalid ranges. Since there is a diagnostic location
(in addition to ranges) the editor will still display an indication for
the user.

Task-number: QTCREATORBUG-15272
Change-Id: I351e136b9925a53fb2273a394e17873c5533798d
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-11-06 11:33:12 +00:00
Nikolai Kosjar
8f2ad8d246 Clang: Remove dead code
Change-Id: Ic81768748bb998d73906dcfc599a52f8c363f5b8
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-11-06 11:32:53 +00:00
Nikolai Kosjar
582494e68f Clang: Fix misleading function name
Change-Id: I60934867db6b61c8309a712db8a189d458a73ea7
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-11-06 11:32:47 +00:00
Nikolai Kosjar
d06aee195f Clang: Remove pointless function
Change-Id: Ib4cc26ca39f7ced993a9a4c142208c377d940719
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-11-06 11:32:42 +00:00
Martin Kampas
e26cce2b5a Core: Deduplicate FancyToolButton initialization
Change-Id: Iea178d2af7ab03e14a59745bc1bbe34e7d3294f1
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-06 10:58:57 +00:00
hjk
f58ab8d723 Debugger: Fix std::set<...>::iterator dumper for GCC 5.x and C++11
Change-Id: Icaca7da1f5ae6f958ae0fdaf217bde611d049916
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-11-06 10:08:48 +00:00
hjk
34196f510d Debugger: Add dumper for GCC 5.x's std::__cxx11::list
Change-Id: Idaf6692668210838488699dcab38d1517825bda3
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-11-06 10:08:05 +00:00
Martin Kampas
573c4988fe Remotelinux: Fix deploy config widget geometry
Change-Id: Ie550c0549b976bba3d50e39bee3b349867640c6d
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-11-06 04:44:27 +00:00
Eike Ziller
06d4e9318a sdktool: Fix that settings were written to wrong location
We needed to adapt the relative settings location to the new destdir:
sdktool moved from QtC/bin to QtC/libexec/qtcreator

Change-Id: I24152ea7ba6c0992941ad1750489ddc22f1767b0
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-11-05 14:58:20 +00:00
Sergey Belyashov
6ec3bcf866 Fix missing translations
Fixed some lacks of Q_OBJECT macro.

Change-Id: I226078baa40977ef49357b34b1e9dc5f0491d76a
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-05 14:41:56 +00:00
Marco Benelli
30ef3a3afc QmlJs: added a new test case in reformatter test.
Change-Id: I4f6c78cd9d2a2e407ef26e498418617efeee5bba
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-11-05 13:30:15 +00:00
Marco Benelli
b4e42171fd QmlJs: updated .pro file in fileformat test.
Change-Id: I1c6fb32820d8a5e58900c2812f43045bd588aff2
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-11-05 13:30:04 +00:00
Alessandro Portale
4db3209cd4 BinEditor: HighDPI fixes
The cursor drawing caused graphical artifacts under HighDPI.

Change-Id: I542346673ad8111ef03fbd80143de484fdb2d455
Task-number: QTCREATORBUG-15222
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-11-05 12:41:58 +00:00
Leena Miettinen
12f1375f4e Doc: using Go to Implementation context menu command
Change-Id: I1fc905909e4d95934b0669a8d27801d6446548d6
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-11-05 10:14:58 +00:00
hjk
9d6c63d4d2 Debugger: Move the 'break on qFatal' implementation to gdbbridge
Easier to create invisible breakpoints there.

Task-number: QTCREATORBUG-15276
Change-Id: I76ffa45f9f0de5ffbc3b82a7ef9a4ddcdfff62eb
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-11-05 09:42:03 +00:00
Alessandro Portale
18365814ad Find: Add a HighDPI wrap indicator
Change-Id: Id31e779a98b3f048a42838590b6ace02c2b86bfd
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-05 08:46:19 +00:00
Ulf Hermann
00f0e00fb2 Add some more information to input events, if available
Just "Mouse" or "Key" is not very helpful.

Change-Id: Ia5db293fb957242aa0a7a84440cd1632d2babe8a
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-11-05 08:42:38 +00:00
Ulf Hermann
b0771016fe QmlProfiler: remove dead code
Change-Id: Id1287ae6d756a317841dce58159899a0ac07fb86
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-11-05 08:42:23 +00:00
Ulf Hermann
834883b0fb QmlProfiler: Support additional attributes of input events
Change-Id: I92a28d0476ad814601f33b76e508bdbea02eefff
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-11-05 08:42:16 +00:00
Christian Stenger
db64434b40 ProjectExplorer: Fix compile with gcc 4.7.3
Introduced with e6a98f368e.

Change-Id: Ia8b67cc27e5a1b10f88cdc8e690270ebe1c72a55
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-11-05 08:17:19 +00:00
hjk
e6a98f368e Core: Replace ICoreListener by std::functions
ICoreListener::coreAboutToClose() remains in the core,
ICoreListener::editorAboutToClose() is handled by a new
EditorManager::addCloseEditorListener() function.

This removes the need for some boiler plate code resulting
from the need to implement the interface in custom classes
(DesignModeCoreListener, EditorClosingCoreListener,
PojectEplorer::CoreListener and VcsBase::CoreListener).

EditorManager::addCloseEditorListener

Change-Id: Ie554c987b5455b555be6d77b77e4013639201d22
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-04 17:52:20 +00:00
Christian Kandeler
ed25b429f6 Fix qbs build for non-OS X platforms.
Change-Id: Iaa9a3d7ae713347b028e9414cff6028b957300c7
Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
2015-11-04 17:15:12 +00:00
Leena Miettinen
0d02544e67 Doc: text zooming in Application and Compile Output panes
Updated screen shots.

Change-Id: Id17908d3720aa4b7074f43169a09da05cd74eede
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-11-04 13:29:51 +00:00
Alessandro Portale
f4e5210cda app: Setting HighDPI environment variables
After b42bd585c4 there was
no automatic scaling of Qt Creator's UI with Qt 5.6 on non-OSX,
anymore.

This commit re-introduces it for Windows.

As a small bonus, now the environment variable is only set during
QApplication creation and unset afterwards. The run environments
are now not affected, anymore.

Change-Id: If0039df500d28a93c1ca8c2df9960992a010723f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-04 13:07:02 +00:00
hjk
2b16b97f19 Debugger: Make DebuggerEngine::runCommand() virtual.
Allows default implementation of e.g. stack retrieval in the base
class.

Change-Id: I96460b19aa31347b2c863736b4ce2b5046eb4de6
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-11-04 11:48:05 +00:00
Christian Stenger
4ed5afba27 CppTools: Fix compile with gcc 4.7.3
Change-Id: I6a6f0a8ab065fb2c02373165a4b43d76f039d1f3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-11-04 11:10:41 +00:00
Tobias Hunger
3febe4e7a2 Wizard: Stop summarypage from getting confused by similar project names
Do destinguish between /tmp/untitled1 and /tmp/untitled10.

Add some line-breaks while editing the file.

Change-Id: I49f9457bd43f188d4327fea3b84254ecb41ee7fc
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-11-04 09:10:15 +00:00
Tobias Hunger
e1ed5e4804 FileUtils: Replace FileNameList with an alias
The functionality in that class is covered by initializers and
Utils::unique, so there is no need to keep a custom class.

This way FileNameList plays way nicer with utils/algorithm.h.

Change-Id: I8eeae6aca0558ecd998920c4fdfc5ea56bf75501
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-04 09:10:01 +00:00
Orgad Shaneh
45d9d08599 BareMetal: Fix translation context
Change-Id: Ia3a9a17bcbb5c8b7fb3fee903ec56f5f63414be2
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-04 08:51:20 +00:00
Tobias Hunger
1bb16ad6b5 Algorithm: Add filteredUnique
This methods returns a new container with only the unique elements
in the input container. Uses == for comparison of elements.

Change-Id: I80c2027b4d275d27343bd64851c17d42bc971e82
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-04 08:48:20 +00:00
Leena Miettinen
88818c1be1 Bare Metal: write "Bare Metal" as two words
...in the title of the Options page.

Change-Id: I081113e7982f730604a769f077f1de15c9185ca2
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-03 14:41:24 +00:00
Christian Stenger
fa9912f3ad Don't display checkboxes for data tags...
..as they can't be (un)checked at all. Might make sense later on
but at the current state of data tag support they're completely useless.

Change-Id: I3b2b79e1d2aa445fcd12d6794151d1833040aa76
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-11-03 14:37:26 +00:00
Eike Ziller
f7d8d97eb7 Merge remote-tracking branch 'origin/3.6'
Change-Id: Ib2112c2fa3811ceb223f22f16b6da3e5a19793ce
2015-11-03 15:34:47 +01:00
Eike Ziller
2b074f5278 Packaging: Fix deployment for Qt5.6
Qt 5.6 builds with relative RPATH by default on Linux.
Since this additionally leads to very short RPATHs,
we cannot change the relative structure within the
Qt installation (e.g. plugins in bin/, libs somewhere
in lib/qtcreator/).
Instead we now deploy qt into a self-contained lib/Qt/
folder, keeping the original structure, on Linux.

Change-Id: I36136590379c3e7b02ba7de3345369e2384dcc95
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-03 14:16:15 +00:00
Leena Miettinen
aabd0202ca Doc: use include file for project creation instructions
Change-Id: I58f4a581de6273b16d2fc7ba07567527e46bc4d1
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-11-03 14:10:05 +00:00
David Schulz
867fa1ff01 Editor: Fix potential crash in FunctionHintProposalWidget.
Task-number: QTCREATORBUG-15275
Change-Id: I8112312d3d27798665d7d28b41b9f2ad845cca14
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-03 12:17:45 +00:00
Eike Ziller
81e9b96148 Merge remote-tracking branch 'origin/3.6'
Change-Id: Ic7cba72e7bec10e4fc0099b97e3317e391a6aa5d
2015-11-03 13:06:35 +01:00
Eike Ziller
b00698e26c Merge remote-tracking branch 'origin/3.6'
Change-Id: I145c4413ab17aa6a91ae7c6b9df44cd3f95f6951
2015-11-03 13:04:33 +01:00
hjk
62393af0ab Debugger: Remove comment regarding GDB/MI grammar
We have been way more generous in accepting input than what is specified
by the grammar since the beginning, and even GDB did (does?) not completely
stick to that format. So the comment is misleading at best.

Change-Id: Ieaf4fc2b9a6f01be649936f72e03866677d6cc5b
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-11-03 11:36:26 +00:00
Tobias Hunger
406d231f1b Do not create a QFileInfo via Utils::FileName::toString()
Use Utils::FileName::toFileInfo() instead.

Change-Id: I63615b0e4ce1dd2e32d5f2b488710a55b8507d34
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-11-03 11:03:42 +00:00
Tobias Hunger
5d7f5a2a32 ProjectNode: Rename path() to filePath()
Change-Id: I78bb73f8c9457fd74c470eacbf54eb9195ac9681
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-03 11:01:50 +00:00
Ulf Hermann
ccc4fe54e5 QmlProfiler: Delete debug connection on error or if params change
Now that we don't recreate the debug connection anymore when (re)trying
to connect, we have to do it explicitly when changing the connection
parameters or when a connection attempt fails and we need to cancel the
"Connecting" state.

Change-Id: Ib2b6b4fb1e39e64fe3c9f2bf90b6e43043d05a9e
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-11-03 10:44:56 +00:00
Tobias Hunger
6d9ff690c7 ToolChainManager: Use partition in ToolChainManager
Change-Id: I4a1376f1ed4ffea83bbd693b3bc1e8fd284771a7
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-11-03 10:24:32 +00:00
Tobias Hunger
7d4078b963 Algorithm: Add partition functions
These take a container and a predicate and return a Partition
struct with the hit and miss fields. Any element in the original
container will end up in either hit or miss, depending on whether
the predicate returned true for the element or not.

Change-Id: Ia02cd704d6fe1388dc677308440acc48f7c9c1e1
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-03 10:20:51 +00:00
Christian Stenger
128995b272 Fix potential crash
There's no need to call beginXYZ() or endXYZ() on our own as this
is done by TreeModel.

Change-Id: I647f280a45c5f3ebb191a8e945c423eed22d677c
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-11-03 10:12:27 +00:00
hjk
b85d8290a7 Debugger: Restrict QJson{Array,Object} display to 1000 items.
... and don't offer expansion of isEmpty() object.

Task-number: QTCREATORBUG-15270
Change-Id: Ifb76c20c6308484d38e21273a2f33c575bb72430
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-11-03 09:55:52 +00:00
Leena Miettinen
95c7d6fed5 Doc: update the Transitions example to use UI forms
Move the instructions for creating the project into an
include file that can be used for all Qt Quick Application
tutorials.

Change-Id: I02385f68f23ef2d3ee98b754344781ae1819203c
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-11-03 09:26:49 +00:00
Ulf Hermann
5babad8c38 QmlJS: Clean up QML console editor
Align the text between editing and display mode, and remove the dead
code. The prompt sign does not have to be part of the text and the
JS parser does not have to retain the code it parses.

Change-Id: I6e41f4fbc2cc863c84677640826d8663bcc648fb
Task-number: QTCREATORBUG-14931
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-11-03 08:50:51 +00:00
Ulf Hermann
19ab78865c QmlJS: Fix focus handling in QML/JS console
We want the line editor to be focused by default when the console is
opened either by mouse or by keyboard interaction.

Change-Id: Ic366d1ac5f1306c0739c334584568402969895f3
Task-number: QTCREATORBUG-14931
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-11-03 08:50:48 +00:00
Orgad Shaneh
d8d7acbe75 Git: Scroll to active file on Show invoked from file log
Change-Id: I0935bf8b8b30ee78716a14ee0a88c21b9caf62dc
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-11-03 08:45:41 +00:00