Commit Graph

46254 Commits

Author SHA1 Message Date
hjk
a28f73971a Debugger: Keep 'this' expanded while stepping
Change-Id: Ib72a10e5dbf54c7586254ed513718631e5289b37
Task-number: QTCREATORBUG-15747
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-14 14:13:06 +00:00
Alessandro Portale
fafc12be47 Core: Fresh filesave icon
Change-Id: Ide9d92fb6cb7b6e6af457eb8680960e2ddc5ef77
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-14 13:27:37 +00:00
Alessandro Portale
27383f0756 Moving desktopdevicesmall.png from projectexplorer to core
It is also needed by imageviewer

Change-Id: Idd489ebc71768e293790e4b8f8ae9f5ede38e80d
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-14 13:27:18 +00:00
hjk
1037482506 Valgrind: Re-focus error view after cursor navigation
Change-Id: I4519a36107b7b2a8895d154fbcc7052aecb5d9c6
Task-number: QTCREATORBUG-15866
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-14 13:25:07 +00:00
Nikolai Kosjar
6b77dea65a Clang Static Analyzer: Enable action only for supported project managers
Change-Id: Iebdfabe7d81cd81a780ba6c2c6513ca866ef7bd7
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-14 13:02:49 +00:00
hjk
9425f28865 Debugger: Hex-Encode LLDB disassembler comment fields
They may contain quotes and possibly other data breaking the transport
protocol.

Change-Id: I53795bd1de54385e8d9c50088368fdc768db217b
Task-number: QTCREATORBUG-15635
Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-14 12:49:59 +00:00
Christian Stenger
d0a6f70380 AutoTest: Fix possible nullptr access
Task-number: QTCREATORBUG-16062
Change-Id: Ifa544390f27b3ff73d74e4766dc93762bf152da8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-04-14 09:58:56 +00:00
Tobias Hunger
3b2d9e0d4f MSVC: Initialize warning flags
Change-Id: I3379fb16f215c63da874fd1f466f02413f692754
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-14 08:48:44 +00:00
Alessandro Portale
bdda00d7cb WelcomeScreen: QImageProvider fix
Adapting to fix for QTBUG-38127. Otherwise, the icons are too big in a
HighDPI case.

Task-number: QTBUG-38127
Change-Id: I70e27c06eaf1f2efa89c31d0a190aba52af28038
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-14 07:38:11 +00:00
Thiago Macieira
28dcb42413 Fix ICC warning about change of sign
debuggerstartparameters.h(86): warning #68: integer conversion resulted in a change of sign

-1 cannot be stored in a quint16. So change the port variable from
 quint16 to int.

Change-Id: I4c934624e7a315321088a6717bbc6e5e34083091
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-13 17:27:38 +00:00
hjk
8679a7caa6 Debugger: Remove 'Context' label in debugger console
This was display only, with no impact on the console operation.

Change-Id: I1c6cab13a86b574d3912ea7fca2e0f14147b828c
Task-number: QTCREATORBUG-15831
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-04-13 14:33:37 +00:00
hjk
c1de315d6c Debugger: Avoid looking up references too often
Change-Id: Icec24ce1af8d273c3439ee91800ed1f4381ee19a
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-04-13 13:54:00 +00:00
Nikolai Kosjar
9ca3614164 Clang Static Analyzer: Tests: Add "qt-essential-includes" project
...which includes the meta headers of all Qt essential modules in order to
increase the test coverage.

Change-Id: I79310f1cc5bfc54a4c0f52f6c7ea4ffea7595221
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-13 13:51:53 +00:00
hjk
2e9b52d084 Debugger: Consolidate extraction of project related data for run
Setting projectSourceFiles etc once is sufficient.

Change-Id: I340406e2f7de82bd9919aa9ec0ff1982b2118e59
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-13 13:19:25 +00:00
Thomas Hartmann
354abe5ad8 QmlJS: Fix possible crash
For a valid AST id should be never empty.
A crash has been reported. though. Most likely the parser
injected a UiQualifiedId for an incomplete document.

Change-Id: Id2f1b25cf9d78982524d7aaff2b43210e1ae2a3b
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-13 13:13:45 +00:00
hjk
6a10db9a43 Debugger: Initialize QmlV8ObjectData::id
Change-Id: I73ce601e4d74ef662f7789080ed1579802a668f7
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-04-13 13:10:06 +00:00
Orgad Shaneh
a96cdb04bc QmlDesigner: Fix memory leak
Detected by memcheck.

Change-Id: I297dfc99c83f35c87cba9416db972beaccaf842d
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-13 13:09:18 +00:00
hjk
62d4cf0510 Debugger: Fix unintended fall-through in WatchModel::setData()
Change-Id: I82cde7e25c4abebccb5b999a1c4e0e90f3f9712a
Task-number: QTCREATORBUG-15839
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2016-04-13 13:05:49 +00:00
Leena Miettinen
9aec8018b1 Doc: update screenshots in the overview topic
Display the flat style and the new icons.

Change-Id: Ia92692ec8c65d643a27990a93a8b8ddb0282fd1d
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-13 12:33:48 +00:00
Tobias Hunger
b9efc096f6 CMake: Do not purge the configuration to change the EXTRA_GENERATOR
CMake does change the EXTRA_GENERATOR without having to clear the
configuration. So do not do that anymore.

Change-Id: I09a8ee32e3e2577381fbfb86d55caa75c43c5bf2
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-13 11:25:14 +00:00
Eike Ziller
24df8abbca Generic Highlighter: Remove warnings and thread safety issues
QNetworkAccessManager is not thread safe, and creates child objects that
need to live in the same thread as the manager, so we need to create one
network access manager per thread.

Change-Id: I76b8a3cb8a7c7665bc6a5f3d49496096903eeb87
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-13 11:22:23 +00:00
Ulf Hermann
075a8dc831 Qml Debugger: Eliminate client state callback
The sender()/qobject_cast construct is ugly, unnecessary and it doesn't
work if the method is called directly, rather than through a signal.

Change-Id: I0ac09ad04b956fb4cac38a89162a9dc0055d1831
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-13 10:31:40 +00:00
hjk
641b511430 Debugger: Disable re-run from application output pane
... for QML engine, which currently does not handle state
transitions in that case.

The normal debug button (or <F5>) of course still work for
starting to debug the current project, which is in most
cases effectively the same.

Change-Id: I02ebf989030a6eb7ff919add6ccc20e7230d9cc1
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-13 10:15:49 +00:00
Leena Miettinen
7e56c2e09a Doc: explain what a default kit does
Update screenshot.

Change-Id: I385d9cfef1c2e9746df63d7b482f560fd7d0d954
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-13 09:54:37 +00:00
Leena Miettinen
6915c0b2ed Doc: Add build library search path check box
Update screenshot.

Change-Id: I292c7761846c056fb8040cca2424dd01f967bc83
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-13 09:54:19 +00:00
Ulf Hermann
e8bff43f24 QmlDebug: A QML debug client is only enabled if the service is
Change-Id: I7d9360a46dfa7a73a791bbff91492a15e4f2f5de
Task-number: QTCREATORBUG-15806
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-04-13 09:39:47 +00:00
Tobias Hunger
54e96679fc CMake: Improve parent selection for dialog to kit options page
Change-Id: I398d7e530d7878ca3a775942c5632e5424335266
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-13 09:15:26 +00:00
Leena Miettinen
42d17fa672 Doc: Update screenshots related to project settings
No textual changes were needed.

Change-Id: I14a98ff335d6abb0a4a477f2224d88af64886cd2
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-13 09:07:05 +00:00
Leena Miettinen
bf3754953a Doc: update screenshots related to project management
Change-Id: I48fa578f6fac390de844fafa52441ce075ace776
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-13 09:06:48 +00:00
Eskil Abrahamsen Blomfeldt
cb62258ee3 Help browser: Fix overlapping images in old docs
This works around an issue in Qt where line-height will be
interpreted as an absolute height, rather than the minimum,
so if images are larger than the specified size, they will
overlap the text.

The work around is just to change all instances of FixedHeight
to MinimumHeight until the default can be changed in Qt.

Task-number: QTBUG-51962
Change-Id: I343d30c539d434301866a7a659ef5fc300c364d6
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-13 08:09:44 +00:00
Sune Vuorela
55bfa4401f Keep readonly qualifier
Let's not reformat readonly qualifiers away. They are likely there for a
reason.

Task-number: QTCREATORBUG-15745
Change-Id: Iaab7a8edb47fccd0cf36759750500a93be45bbc2
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-04-13 07:59:44 +00:00
Orgad Shaneh
6655f87fca Debugger: Change default languages to NoLanguages
... which is set to CppLanguage in DebuggerRunControlCreator::enrich
unless set to anything else previously.

Remove related hacks.

Change-Id: I5fcc39326e280192eb1ddb652636e9342baef94b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-13 07:58:33 +00:00
Eike Ziller
9b7fa05bf3 Fix after changing ModeManager::currentModeChanged
Change-Id: Id71b0992fef9c0cb544d68078fb2b654777f0a2e
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-13 07:48:33 +00:00
hjk
176f925770 Debugger: Merge remaining pieces of RunControl creation
Change-Id: Id59ee3f214dcc9c6551ecbaae122e333257c1ce5
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-13 07:30:01 +00:00
hjk
c75b8f22fa Debugger: Remove special handling for event dispatcher files
Too much convenience seems to cause irritations.

Task-number: QTCREATORBUG-15638
Change-Id: Iaf90149372641bcb7fece28a7470558a80d77a4e
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-13 07:28:55 +00:00
Nikolai Kosjar
e2e3be09e3 Clang: Enable exceptions explicitly
For some reason, clang 3.8.0 on Windows does not enable exceptions anymore,
which leads to parse errors in MSVC headers (reported upstream [1]).

With this change, we can finally parse main/mainwindow.cpp of a Qt Widgets
Application for a MSVC2015 Kit and libclang 3.8.0 without any error.

[1] https://llvm.org/bugs/show_bug.cgi?id=27324

Change-Id: I532ad4852a06318baf083d363378bc577b3c4309
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-13 07:13:25 +00:00
Orgad Shaneh
266036fe6e Debugger: Disable QML on Attach to Running Debug Server
Change-Id: I55da176c8885ff5de6d34f37c9eb278ca35a8ecf
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-13 05:57:56 +00:00
David Schulz
1a5ebfbe05 Editor: Fix crash when removing mark from the block data destructor.
The TextBlockUserData is destructed from QTextBlockData::free which
deletes the layout right before. So triggering a direct update from
within this destructor could result in a crash when the already deleted
layout is used.

Task-number: QTCREATORBUG-16046
Change-Id: Ifd1d4334ba8ef47c41e0b9ae078ceaf1112b5908
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-04-13 05:30:39 +00:00
hjk
be91d50e43 Debugger: Replace DebuggerDisplay enum by strings
Easier to coordinate between dumpers and watchhandler

Change-Id: Ide191a5786dc04ef22c3e9c8b0bec39f8f8c0f1d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-12 15:37:28 +00:00
Nikolai Kosjar
4e0b55f673 Clang: Undefine language features as fix for MSVC2015/clang-3.8.0
This applies the following change for the clang code model, too.

  commit d13d179524
  Clang Static Analyzer: Workaround analyzing MSVC2015 projects with clang 3.8.0 II

Change-Id: Ia229d7e8b24c2e1c0a83d9a53c623ea1f79c4a06
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-12 14:54:06 +00:00
Takumi ASAKI
973bdac27d QtSupport: Fix translation context
Context for QTVERSION_SETTINGS_PAGE_NAME wasn't changed by
commit f7e8acbd09

Change-Id: I2d026951a1c94e6ca8dc041b29c49fe3ed0bedd8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-12 14:44:18 +00:00
Leena Miettinen
4aee14e48a Doc: Use tab names as links in "Configuring Projects"
For consistency and accuracy. Update screenshot.

Change-Id: I23c00956abb9635bbf514f23aa08975ce93ba604
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-12 14:35:09 +00:00
hjk
c0c5aad8e6 Debugger: Adapt dumper test to base class sorting
Fallout from e73a9c1b0d.

Change-Id: If06ba8424bd264137dcdcdd721317ce6785a91b0
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-12 14:05:38 +00:00
Alessandro Portale
a84fe0b762 Icons: Removing several duplicates and variations of the eye_open icon
Change-Id: I598005ac81bd847d3d5e88c3d78a0e945c8026c5
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-12 13:57:08 +00:00
Leena Miettinen
5c67b798da Doc: Debug port no longer specified in Run Settings
Update screenshot.

Change-Id: I10ad908a118b67584f30aac741a3d0ddc3b85c0a
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-12 13:57:06 +00:00
Leena Miettinen
491c6deb45 Doc: Update screenshots for generic Linux device settings
Remove the screenshot for QNX devices, because it is now
the same as the one for the Linux device settings directly
above it (which was updated).

Change-Id: Ib34185b82e01157caeec22473c52ffca8c8c116b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-12 13:56:17 +00:00
David Schulz
54a51979c0 Fix std::list dumper test for cdb.
Change-Id: I071b4c918cf6d236110c48085af607f8ff578e30
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-12 13:55:36 +00:00
Leena Miettinen
fa37d7c4e8 Doc: update Qt Version options
Debugging helpers are no longer specified for the Qt version.
Update screenshot and remove obsolete screenshot.

Change-Id: I6ca82bacaeb22e42140a7f6c71f1df85881e9406
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-12 13:51:56 +00:00
Alessandro Portale
7071cda9a7 Debugger: Themeable breakpoint icons
Change-Id: I06c5df1c754c62bdeab81a5c2da78a2eca18ad8a
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-12 13:07:24 +00:00
Nikolai Kosjar
5ff5211a25 Clang: Set -fms-compatibility-version explicitly
Infer the version from the _MSC_FULL_VER macro, so it cannot get out of sync
with that.

Adapt the analyzer to do the same.

Based on

  commit daf08d8702
  Clang Static Analyzer: Workaround analyzing MSVC2015 projects with clang 3.8.0

Change-Id: I9d34abdbe2c83fe271eadd8d051caad43aca6772
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-12 12:59:03 +00:00