Commit Graph

45497 Commits

Author SHA1 Message Date
Ulf Hermann
06b09cf4a9 QmlPuppet: Don't compare C string literals with ==
Change-Id: Idaafbc650849744af660e896bf875bdd43e6ae36
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-04-21 09:50:25 +00:00
Ulf Hermann
1e8ef30164 ClangStaticAnalyzer: Set run control display name
Change-Id: I90ca5c9374a1c82d9a5113c06c2e5c76719d45c7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-04-21 09:13:04 +00:00
Christian Stenger
3d28c516c6 Debugger: Avoid soft assert on close
Introduced with d432b14472.

Change-Id: Ic33d46a33efd1c09c162c6adc31526efd4fe2b9d
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-21 09:09:40 +00:00
Ulf Hermann
6411612c4a ClangStaticAnalyzer: Determine target ABI from toolchain
As we don't want to run the application, we should check how it was
built in order to know the word width.

Change-Id: I3bcd86a4653a049d660a9f23f8faf823f3ed52a0
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-04-21 09:08:22 +00:00
Eike Ziller
ff238369ae Version bump
Change-Id: I87873a70a4b73130758529c4cd125ec422db7e7e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-21 07:59:26 +00:00
hjk
43b8310830 Debugger: Disable dumper for QVariants with user defined types for LLDB
The type info is not directly accessible to the debugger. The workaround
used so far generally works for initialized data, but can force loading
all debug information otherwise. The behavior is exceptionally bad
for LLDB 3.7 with GCC 5.x/C++14 due DW_TAG_base_type 'auto' encoded with
DW_ATE = 0x0, bit_size = 0 produced by GCC and not understood by LLDB.

Change-Id: I2b28b8a6aa15751c8e797bcbf501b81622680596
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-20 15:50:53 +00:00
Christian Stenger
d432b14472 Debugger: Avoid crash in plugin unit test
Change-Id: I38d74f4a34e14f646eaf9f24ca9dc2e14ba06050
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-20 14:39:13 +00:00
hjk
644ed0d464 Doc: Add an 'also' to the note on debugger handling of optimized builds
Change-Id: I3fd0b25097101ac41c1801992282eef959a5b0da
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-04-20 13:22:46 +00:00
Nikolai Kosjar
11836a14cf Clang: Fix SOFT ASSERT: "!m_functionName.isEmpty()"
...that ocurred for e.g. "foo (<COMPLETE HERE>".

We did not handle the following cases:
 1) white space after the function name
 2) nothing before parenthesis

Change-Id: If6aedd2cc938df30516e13a860d07d7a509633ae
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2016-04-20 13:03:32 +00:00
Nikolai Kosjar
474b8ec5c0 C++: Fix expensive parsing of declarations
...which can occurr for e.g. files with a high difference of opening and
closing curly braces and many structs.

Make use of the ASTCache for parseSimpleDeclaration() and
parseMemberSpecification(). Those two were the most recurring calls for
the code provided in the bug report.

Task-number: QTCREATORBUG-16049
Change-Id: I13cc7fba2fb6c3be863690a222c8bbfeacbddc05
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2016-04-20 12:58:39 +00:00
Eike Ziller
5dc690f234 More change log
Change-Id: I23e3a81425f1cb32d02d8520a2d4804b9d6b9a04
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-04-20 12:28:45 +00:00
Leena Miettinen
de7e36383f Doc: update the Transitions example
...to use the new Qt logo

Change-Id: I111d070c2ae40b71e650d78bd15d360328b474e3
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-20 11:23:48 +00:00
Alessandro Portale
ac04a91820 Flat theme: Make some icon colors opaque
Transparency channel plus shadow create more artifacts than benefits.

This change removes sets the alpha to ff and changes the rgb values so,
that the icons still look exactly as before on the standard toolbar
background.

Te icons will however be better visible on other backgrounds such as
menus.

Change-Id: Idbf2c5c838bad615844ebf2eb63d104f8939b991
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-20 09:16:27 +00:00
David Schulz
4edc105da3 Editor: Check if text codec pointer is valid.
Fixes a crash when collecting codecs for opions page and a unsupported
icu is used.

Task-number: QTCREATORBUG-16114
Change-Id: I4081748f636602670e37465750862d4da4a14941
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-20 09:12:56 +00:00
Nikolai Kosjar
211894d348 Clang: Tests: Fix compilation with clang-3.6 using stdlib
When using stdlib (default on Linux) and compiling with "-std=c++14", errors
like the following occurr. Avoid them by not requiring c++14.

  $ clang --version
  Ubuntu clang version 3.6.0-2ubuntu1~trusty1 (tags/RELEASE_360/final) (based on LLVM 3.6.0)
  Target: x86_64-pc-linux-gnu
  Thread model: posix

  $ cat clangtest.cpp
  #include <random>

  $ clang -std=c++11 -fsyntax-only clangtest.cpp # Fine with c++11/stdlibc++
  $ clang -std=c++14 -fsyntax-only clangtest.cpp # Ops with c++14/stdlibc++
  In file included from clangtest.cpp:1:
  In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/algorithm:62:
  In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_algo.h:65:
  In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/random:39:
  /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11: error: no member named 'gets' in the global namespace
    using ::gets;
          ~~^
  1 error generated.
  $ clang -std=c++14 -stdlib=libc++ -fsyntax-only clangtest.cpp # Fine with c++14/libc++

See also https://llvm.org/bugs/show_bug.cgi?id=18402.

Change-Id: I2ab3ea837b80196b51d8816ee8aa26a4a531e939
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-19 12:01:59 +00:00
Eike Ziller
bb8f8b56f1 iOS: Better error messages for starting service and transferring app.
Change-Id: I1d5e0102c87e43594c35f997c293d5b7a2e5e81b
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-19 08:21:11 +00:00
Eike Ziller
aa4a0d8920 iOS: Qt 5.7 changed the CONFIG values for device vs simulator builds
This is a quick fix, just adding the new values. It would be nicer to
make them depend on the actual Qt version, but that seems to be a bit
more involved.

Task-number: QTCREATORBUG-16102
Change-Id: I2dbd0e76f90e7aeabb0c354fe54a6a0eb041454e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
v4.0.0-rc1
2016-04-18 15:10:05 +00:00
Tobias Hunger
00a7f3864b ProjectExplorerSettings: Do not reset options to defaults
Do not reset project explorer options that are not managed via the
options page to default values when applying changes.

This effected "Restore last saved session" only at this time.

Task-number: QTCREATORBUG-15197
Change-Id: Ie9577c14cc7e3d57093036078ae930cdb3768517
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-18 14:56:15 +00:00
Alessandro Portale
4c9a5d5088 Debugger: Fix "jumping" status label
There are two layout stretches with equal stretch factors fighting
against each other. That makes the status label which is positioned
between the stretches jump around with changing content length.

This change increases the factor of the last stretch, which causes the
label position to stay constant.

Change-Id: I4e98d8b1fd6876f707911d1e90fa90165c8c2ff1
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 13:47:42 +00:00
Nikolai Kosjar
9a35b121ee C++: Fix accessing invalid file id of Symbol
Symbol::_fileId can be null if the Symbol was created with a null
translation unit. That is the case for temporary symbols created for
lookup purposes (CreateBindings has a _control with no translation unit
and thus creates symbols with no fileId).

Task-number: QTCREATORBUG-15967
Change-Id: Iee518b39ba3b636fe1658e74179db3aad054d6f2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-04-18 12:31:37 +00:00
Alessandro Portale
65046c2003 Core: Set "Flat" as default theme
If qtcreator.ini does not have a [Core]CreatorTheme entry (user did not
manually change the theme before), "flat" will now be the
default.

Change-Id: I0351668db3dcacada14d55ce1a5be194e04190f3
Reviewed-by: Tobias Hunger <tobias.hunger@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-04-18 11:51:09 +00:00
Christian Stenger
ed6f4133e8 AutoTest: Fix marking for removal for second level items
Items that will be marked for possible removal on first level
forgot to mark their childrens which led to keeping them when
sweeping although they should get removed if they were not
found again.

Change-Id: Ib364823ee60d31370331b090c776799ca5f663bf
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-18 11:50:52 +00:00
Alessandro Portale
397ebcac92 Debugger: Enabled state of "Threads:" label depends on thread combobox
...and making sure that items of a disabled combobox are visibly
disabled.

This prevents users from clicking on the Threads label before debugging
even started.

Change-Id: I59cc9b7e875fe8c126a9ee4221ff9d8322e4b1a8
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 11:25:37 +00:00
Christian Stenger
7c0e76aee4 AutoTest: Inform user when tests did crash
If a test crashes for whatever reason one did not get any information
about this so far.
Add an explicit fatal for such cases.

Change-Id: Ica2aec4b30f38d29acfe170526f4468aa6577887
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-18 11:21:00 +00:00
hjk
bd406e3cd0 Test: Fix typo in gmock detection message
Change-Id: I8c95b5279349b92f232c26f57ade91f5b51e3b55
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-04-18 11:14:06 +00:00
Christian Stenger
104b434c8d AutoTest: Fix processing of output
In case a (Qt) test process produces output that does not belong
to the standard test output we might ended without processable
output at all.
Avoid this by just handling the output that is given on stdout
for now.

Change-Id: If5ee70140b95cb61422e58a7610b7fe2d09915c2
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-18 11:01:50 +00:00
Ulf Hermann
334017be56 Debugger: Properly clean up dock widgets
We call setParent(0) on the dock widgets, not on the actual operation
widgets. In order to find out which ones we need to delete we need to
check both the operations and the dock widgets.

Change-Id: Ia6fde9bc1737aab6b6ad5497b27e805bcd67d0ab
Task-number: QTCREATORBUG-16074
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 10:46:53 +00:00
hjk
ad55631cdf Debugger: Add safety net to avoid infinite lookups
Do not lookup the same item twice without intermediate stepping.

Dumpers could announce the existence of children but when asked
for them bail out or produced similar inconsistent output.
Better not depend on it.

Task-number: QTCREATORBUG-15352
Change-Id: I38532d08bb438b12b6eb202a06ff610670b1069f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-18 10:38:58 +00:00
Orgad Shaneh
b2e048c10e Debugger: Fix language context actions
... again

Task-number: QTCREATORBUG-16099
Change-Id: Ie0a902a3161ca72cf78695639598eac5fdcbace5
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 10:38:20 +00:00
Leena Miettinen
802543c09d Doc: Blogs and Qt Account can be accessed from Welcome mode
Change-Id: I5571d2428e8f7b86e8092e94d11847bd90a8ed2f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-18 10:27:16 +00:00
Leena Miettinen
d37aaeb69a Doc: Describe general build and run options
Update screenshot.

Change-Id: Icdab88b6eba9d1bb421271a66b3485ddfb80fe0c
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-18 10:27:04 +00:00
hjk
6d78e94b86 Debugger: Use -exec-return when asked for
Change-Id: Ib3ab40d3180494fae21040bd3337adcce7816de3
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-18 10:03:20 +00:00
Alessandro Portale
7339761c6a Bookmarks: New Bookmark icon
Using Theme::Bookmarks_TextMarkColor so that it is consistent with the
scrollbar markers.

Change-Id: I2cd6b787a61c2a5bf3a7f684c026006ca0417591
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-18 10:02:36 +00:00
hjk
b7fabb290b RemoteLinux: Relax port gathering
We might encounter the situation that protocol is given as IPv6
but the consumer of the free port information decides to open
an IPv4(only) port. As a result the next IPv6 scan will
report the port again as open (in IPv6 namespace), while the
same port in IPv4 namespace might still be blocked, and
re-use of this port fails.

Err on the safe side, and consider ports taken in either space
as blocked.

Change-Id: I2e4be40ab4df5398e26e197c12408efe905b1a2f
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-18 09:57:33 +00:00
Alessandro Portale
a24ce30425 Debugger: Remove QML application Zoom (for now)
It does not work.

Change-Id: I8340d6b130d3d7e1e8f1531fe4cd2b6cd9319c7b
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-04-18 09:13:50 +00:00
Ulf Hermann
88476a1435 QmlProfiler: Disable run controls after they are finished
Disabled runControls would still receive and send signals, confusing
the profiler state.

Also, connect lambdas with receiver argument where possible.

Change-Id: I0cd43456d3462efe402e9d68792b67314e9b6e0b
Task-number: QTCREATORBUG-16073
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-04-18 08:07:04 +00:00
Christian Stenger
20110d1e36 AutoTest: Fix possible crash when using SymbolFinder
Task-number: QTCREATORBUG-16062
Change-Id: If8e6d2d30c1e036b38c3b030296ae051fd046759
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-04-18 07:49:17 +00:00
Christian Stenger
02a0c6f486 AutoTest: Ignore nullptr documents
It could happen that Qml related docs have not been added to the
QmlJSModelManager when trying to use them on our side.
Just ignore them when this happens as they will be added manually
as they will get added automatically when parsing the respective
main cpp file.

Change-Id: I25c4b6d9159ad4ff8def3148c2a04356380fbd27
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-18 07:47:12 +00:00
Leena Miettinen
a2170bd690 Doc: Explain Model Editor > Export Diagram command
Update screenshots.

Change-Id: I794c424837e22392541138142410fc7a07c68af1
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2016-04-18 07:28:19 +00:00
Leena Miettinen
2b0e6dd7bb Doc: Update screenshots related to finding
Change-Id: I647858522af44d5f2bc22ffd735dedb4df07a73c
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-18 07:27:53 +00:00
Orgad Shaneh
3d85b826f0 Project: Remove obsolete commented out updateinfo
This plugin is now built by default.

Change-Id: Ib85dd7e12bca2e72bc456ef8db1bbb0eaba2401d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-18 07:01:50 +00:00
Orgad Shaneh
b915acbabe Qbs: Enable UpdateInfo
It was refactored in 13fcf5ad3c.

Change-Id: I05d35795618d82024a2f587fc299c9f5829080dd
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-04-17 20:52:49 +00:00
Alessandro Portale
fa5e9e9094 ProParser: Remove unused files
These files are relicts from the old pro editor.

Change-Id: I803d0491357ba73453b0a98f53bf6472be47364e
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-15 22:01:54 +00:00
Sergey Belyashov
6116b111e5 Update Russian translation
Change-Id: I39ccb765e37e2d9ff2d080ff7cf92518f6a203c9
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Anton Kudryavtsev <a.kudryavtsev@netris.ru>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-04-15 15:17:05 +00:00
Alessandro Portale
ffe0d98e5b Themes: Fix loading of the default theme
This patially reverts commit 25603f9dc8.

Ouch. That change had so much mess per line. Sorry everyone.

Change-Id: I9e02965c6a12670766fa36eab5dc6ad45131955d
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-15 15:13:38 +00:00
Nikolai Kosjar
70e3665c86 Clang: Forward clangbackend output to qDebug instead of stdout/stderr
Now the output of the clangbackend can be viewed with DebugView on Windows.

Downside is that qDebug() will append newlines. This can't be turned off
easily. We accept that.

Change-Id: I7d68bfcf05780c8bcb4a05a538d2d1542a6a6f22
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-15 14:55:36 +00:00
Nikolai Kosjar
441d8d29a5 TextEditor: Emit markTooltipRequested only once per line
...otherwise the same tooltip will be created over and over again,
leading to a "moving tooltip widget".

Change-Id: I1704bc34c458ebe1aec664d5295418ab1d2b5082
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-15 14:55:20 +00:00
hjk
2e38eec002 Debugger: Compile fix
stringSettings() macro-expands internally nowadays.

Change-Id: Id702ee852b7c25b8ff7dbca0c6ada529a53a9443
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-15 14:47:34 +00:00
Christian Kandeler
cfbb84a5f8 Update qbs submodule.
To HEAD of 1.5 branch.

Change-Id: Iefa333d9bc2a0808d0f4e42605252936908ea3d3
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-04-15 14:43:57 +00:00
Ulf Hermann
f0b7a73f33 QmlProfiler: Properly clear any pending connections before reconnecting
Otherwise we might end up waiting forever for a previous session's
connection.

Change-Id: I695d7a1ce21bc9720cc84436a7c4e6ba4616b0ab
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-04-15 14:39:12 +00:00