Commit Graph

54723 Commits

Author SHA1 Message Date
Marco Benelli
d0823cd5e2 QmlJs: fix reformatting of 'signal' statements
Reformatting 'signal' preceded by comments used to bring to a bad
formatted file.

Task-number: QTCREATORBUG-17886
Change-Id: I02e093a4721cd1e75d45b498ea768251aee88ea4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-07 05:32:20 +00:00
Tobias Hunger
107a93ff0d ClassView: WS-only change
Change-Id: If9907e6ba67a9a70765ad3e15f80c9b54bd2575a
Reviewed-by: hjk <hjk@qt.io>
2017-04-06 15:51:04 +00:00
Tobias Hunger
8634aa4cbd ClassView: Adapt to ProjectTree changes
Use functionality available on Project if possible, thus preventing a crash
when trying to work with the rootProjectNode.

Task-number: QTCREATORBUG-17977
Change-Id: I397bbf501dc42b306ca88a67a3b2a0c9a9334d92
Reviewed-by: hjk <hjk@qt.io>
2017-04-06 15:51:00 +00:00
Christian Stenger
1024d25e93 Debugger: Remove output processor from RunControl
The same functionality is available by using signals of the RunControl.
This reverts ca3bcd81 partially.

Change-Id: Id1d4d6e8326be60cdbe7c862dab46f49dbc6abe7
Reviewed-by: hjk <hjk@qt.io>
2017-04-06 13:53:57 +00:00
hjk
4b9320d86e RemoteLinux: Remove unused run mode parameter in AnalyzerSupport ctor
Change-Id: Ib03e076aea32a8b49a1d99ec08ff11801af266df
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-04-06 12:54:23 +00:00
hjk
ff62ef3d92 ProjectExplorer: Always initialize RunControl's runnable from RunConfig
That's a good first approximation and often enough all that is needed.

Change-Id: If54cdb0e98cda94bc4a4ef24fcc12c78018c4dbe
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-04-06 12:53:57 +00:00
Wolfgang Bremer
60379856a4 Provide human readable debugger states
The debuggerengine has an internal state machine. This change provides
the state name instead of the states number for debugging purposes.

Change-Id: Ic8d63902e83e3905d7880a703302cb597174460b
Reviewed-by: hjk <hjk@qt.io>
2017-04-06 12:44:40 +00:00
Robert Loehning
f9cabade6b DocumentModel: Remove redundant return
Change-Id: I121093f15f27974119e41ecc1db2b5e76c7deb50
Reviewed-by: hjk <hjk@qt.io>
2017-04-06 10:51:36 +00:00
Robert Loehning
ed270e439f CppEditor: Remove redundant return
Change-Id: Ie7e87ddbc3f6eff970da2f68fd8e8d858e5cebf5
Reviewed-by: hjk <hjk@qt.io>
2017-04-06 10:51:16 +00:00
Tobias Hunger
fd48d1fc02 CMake: Do not add empty "<Headers>" folder
Do not show a "<Headers>" folder if that is empty.

Change-Id: Ife37691600accb176b69eba9bc7e323fa1a01ae6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-06 09:48:25 +00:00
Tim Jenssen
a0e524b492 QmlDesigner: fix typo
Change-Id: Iecc75dab66077d43fe22e15f28876c4d3cf6a322
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-06 09:42:53 +00:00
hjk
1ad6c9465c RemoteLinux: Make mode parameter in RemoteLinuxAnalyzeSupport optional
It's available through the runControl. Plan is to completely
remove when downstream users (B2Qt, GammaRay) have adapted.

Change-Id: Iab78513dfc99fa775dafae56ae8c1bfa5bcc3b03
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-04-06 09:22:01 +00:00
hjk
87b3ea9af4 ClassView: Make Internal::ParserPrivate::timer a real member
Two indirections suffice.

Change-Id: Ie6cb6a32e1482074266f450f8bba004468e5e1b0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-06 09:03:17 +00:00
hjk
8e56c5be3e Debugger: Simplify DebuggerRunControl construction
The indirection was to prevent "others" to create "wrong"
DebuggerRunControls, but this is getting into the way now when
making the DebuggerRunControls/DebuggerEngine a ToolRunner.

Change-Id: I6c45e28affebc6b8db16c5d4bbc77325ef63604f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-06 08:51:10 +00:00
hjk
2f664a375b TextEditor: Squash warning about unused parameter
Change-Id: I1bf321869b99ebc603486e896a4fcf3e4520420e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-06 08:04:00 +00:00
hjk
fa3d597e5f ProjectExplorer/RemoteLinux/Qnx: Use centralized access to device
ToolRunner have access to the RunControl, which have a device.
No need for another copy anymore.

Change-Id: I1b71cf2fad9ecbadba859b7963175c1b7057f94d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-04-06 07:57:40 +00:00
Lorenz Haas
4a102213b9 Sessions: Make manager usable again... for Linux
With the change that the activated signal switches to the current
session the manager becomes unusable e.g. in Linux/KDE with a single
click policy. This is because you can't select a session by mouse any
more in order to use one of the delete/rename/etc buttons.

Change-Id: I4e81ee21f37fba0b4f456e02e9ce2e9da14c5a88
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 16:21:47 +00:00
hjk
0410f4e0ba Debugger: Remove some useless assignments
That object is destructed soon, no data is ever read back.

Change-Id: Ida479c4dd934c6f45621b54adcfeda3f573a00bd
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2017-04-05 15:26:50 +00:00
Leena Miettinen
4a6d387cb7 SCXML editor: Fix UI text
... capitalization, punctualization, and grammar

Change-Id: I15205b899387e8a91529c3a6b6a2e81cf4315a4a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-04-05 14:18:13 +00:00
Leena Miettinen
b25ae51163 Qt Quick Designer: Fix UI text capitalization
Change-Id: Idc9fc90fc63d3154ed893dab85c9806ece485825
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-05 14:02:03 +00:00
hjk
112e32228a ProjectExplorer: Merge AnalyzerRunControl into RunControl
The change is "conceptually wrong", the AnalyzerRunControl derived
classes' functionality should be provided by ToolRunners based classes
encapsulating/"being" the current Analyzer*Runner classes.

However, the AnalyzerRunControl is only three (empty even) virtual
functions, but a big obstacle in merging attempt due to a lot of
mechanical followup changes in downstream users.

The current construction mechanism of analyzer run controls is actually
two different mechanisms (locally direct RunControlFactories, and a
"generic" createAnalyzerRunControl wrapper for remote cases). The generic
createAnalyzerRunControl makes it difficult to migrated them one-by-one,
due to the various downstream users.

So instead of merging the per-analyzer two uses directly reduce
the "indirection" distance by removing the AnalyzerRunControl
intermediate layer. After that the createAnalyzerRunControl mechanism
can be dissolved by using normal RunControlFactories also for
the remote cases. After that, porting to ToolRunner, and combining
with ther local equivalent can be done one by one.

Change-Id: I0ddace33fcce210cf3a547ac5bb23b3d85013934
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 13:47:53 +00:00
Orgad Shaneh
e58c4ead93 QmakePM: Use a single constant for async update interval
Change-Id: Ifc8f466c615d90095cba0908ba40c43d74f7e053
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 13:45:23 +00:00
hjk
8d1f4834b6 ProjectExplorer: Don't rebuild all projects' tree when one is closed
Removes some quadratic-in-number-of-projects behavior on session
close/switch.

Change-Id: If93bb9a67b0bebddda5319a7594a99ae66f50f5a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 13:44:27 +00:00
Tobias Hunger
8cdeed8633 Doc: Update Wizard documentation
As the reporter of QTCREATORBUG-17840 points out the registration process
for wizards has changed. Finally update the documentation to reflect this
change.

Task-number: QTCREATORBUG-17840
Change-Id: I587de1d6d612c9ce660347be36ee78129448c04e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-04-05 13:37:39 +00:00
hjk
2a6237705c TreeModel/Find: Save a few cycles when searching
Calls parent() only ~two out of three times and remove some
function calls in the TreeModel::parent() implementation,
reducing the overall footprint of this bit from ~5 to ~1.5%
when searching something in the project tree (test case
was Creator-in-Creator, and searching for 'dddddddddd',
resulting in 8 complete scans of the tree.

Task-number: QTCREATORBUG-17956
Change-Id: I4e46ef0467dd2aea58a7c944e1a2ee5c01e6fbba
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 13:25:12 +00:00
Friedemann Kleint
43fc2ebeb0 Add perltest2tasks.pl
Add helper script to convert messages of the Perl module Test::More
into Qt Creator task files.

Change-Id: Ie04871f25e0cba880adaf89b557c475c3aa65244
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 13:24:53 +00:00
Leena Miettinen
778d711393 Project explorer: Fix UI text capitalization
Change-Id: I59c391b1d910ad74e30592217451a956463bd804
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 13:23:12 +00:00
hjk
bd5e2faa75 ProjectNodes: Handle supported actions one-by-one
Getting the full list for a node can get quite expensive e.g. in
cases of recursive calls of QMakeProjectManager::findPriFile.

However, the FlatModel needs to decide quickly on whether an item
is editable to potentially allow renaming.

So split up QList<Actions> supportedActions() into individual
bool supportsAction(action) calls and make sure Rename is not
on the critical path.

Task-number: QTCREATORBUG-17953
Change-Id: I31841847f8aa7d7b94c63d76ce71efb1c930fa69
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 12:47:03 +00:00
Leena Miettinen
8410c0bbad CMake: Fix UI text capitalization
Change-Id: I590343937f8fbe0df2c664e0e7e4c2ce353c1897
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-04-05 12:31:04 +00:00
Leena Miettinen
c749ec507c Nim: Fix product name capitalization and writing style in UI text
Change-Id: I277c10f87e9645a09bd7a6910fb9d5182417c9c9
Reviewed-by: hjk <hjk@qt.io>
2017-04-05 12:26:49 +00:00
Leena Miettinen
71f2181ffb Debugger: Fix UI text capitalization
Change-Id: Iccd08dae2ef2a86c0d0d5fb5d572b24664c40431
Reviewed-by: hjk <hjk@qt.io>
2017-04-05 12:26:03 +00:00
Robert Loehning
ad92439930 qmljs/qmljsdescribevalue: Remove pointless check
Change-Id: I4b932550ccaebd8b02d52da2b00c158011cbc4bf
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Christian Kamm <mail@ckamm.de>
2017-04-05 09:36:07 +00:00
Tim Jenssen
e4a6f62001 QmlJSEditor: remove unused method
Change-Id: Idab6b104a9e057afde3bcc3059f00592deacfed7
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2017-04-05 08:37:19 +00:00
Orgad Shaneh
b66baab4b7 Debugger: Run user commands as native commands
Change-Id: I2b13880eace49818c20815a21c3e327f87ec04bc
Reviewed-by: hjk <hjk@qt.io>
2017-04-05 05:49:10 +00:00
hjk
79c3c4e5e5 Debugger: Remove unused Dumper.Type.field function
Change-Id: Ib7b1576d2b71b0e5f1648b51a4298b44581b1c2e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-04-05 05:45:31 +00:00
Thiago Macieira
b34dc8fdb2 Cast enum to the an integer type before streaming out to QDataStream
We stream in as int or as qint32, so this is symmetric.

Change-Id: Ic46ff326a6ba46bc877cfffd148325c21241f3b1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-04-05 05:13:43 +00:00
Orgad Shaneh
1af52db32e Git: Replace lambdas with std::bind
Reduces release build from by ~5K (255->250), and slightly shorter.

Change-Id: I326297b08374fe34cdd2dd05db3b978ae7775e06
Reviewed-by: hjk <hjk@qt.io>
2017-04-04 19:02:24 +00:00
Orgad Shaneh
1bc2610b0b GDB: Fix break on main for console applications on Windows
It relies on the user setting (which has a correct default, but can be
changed), but that's better than nothing.

Change-Id: Ib74b348a8932b3522074f122cf939fcb20ccefb8
Reviewed-by: hjk <hjk@qt.io>
2017-04-04 14:36:44 +00:00
Orgad Shaneh
8a4b0aeabf Debugger: Fix crash on shutdown
If the application fails to start (like an empty exe file), the debugger
remains in "active" state, and it crashes on shutdown.

Change-Id: I6ae3a98d507856ea40375edb15c9ea4605e3efc6
Reviewed-by: hjk <hjk@qt.io>
2017-04-04 14:30:06 +00:00
Orgad Shaneh
43cc499409 Debugger: Terminate gracefully when the debuggee is invalid
To reproduce, try to debug an empty exe file as a terminal app on
Windows.

Change-Id: Ie47848be04b8f7d4a8dae485d938a71febfed1ab
Reviewed-by: hjk <hjk@qt.io>
2017-04-04 14:26:42 +00:00
Joerg Bornemann
ead66987d4 Update qbs submodule
To HEAD of 1.8 branch, and adapt to changes of qbs's doc_targets.pri

Change-Id: I8027b02bd88691ce6460836d9cc67279f442058b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-04-04 13:57:14 +00:00
Tobias Hunger
cfda627abc Qmake: Fix workdirectory for qmake projects
The rootProjectNode was not set when the desktopqmakerunconfiguration tried
to use it to figure out the default work directory. Move this code over to
using rootProFile() instead of rootProjectNode(), which is the right thing
to do: rootProFile() is the tree of objects used to parse the qmake project
now.

Task-number: QTCREATORBUG-17728
Change-Id: I76167ba2bbd395d58af7d3bfd50f33c4e37338db
Reviewed-by: hjk <hjk@qt.io>
2017-04-04 13:27:43 +00:00
Tobias Hunger
8b956868bb CMake: Register a feature for CMake-capable kits
This in theory enables to fix QTCREATORBUG-16204, but for that the wizard needs logic to adapt
the required features for the listed kits. That is still missing.

Task-number: QTCREATORBUG-16204
Change-Id: Ia01c11bb8c8567a9fc65b06912d6836b70a0195c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-04 13:27:30 +00:00
Christian Stenger
f28e6dd029 CPaster: Fix fetching list of pastebin.ca
Page now uses websockets internally that updates respective
content asynchronously. Initial GET of the page only fetches
an empty list - work around by using a pre-constructed json
array that is contained within the initial content.

Change-Id: Id8619450ecc758057fce23079e7eed6de8abe5dc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2017-04-04 12:36:47 +00:00
Thomas Hartmann
49e7f07526 QmlDesigner: Fix crash
I found the crash when opening:
qtquickcontrols2\examples\quickcontrols2\contactlist\ContactForm.ui.qml.
The crash was triggered by the root item being a layout.

Change-Id: Id95aee6c76fbe1102578fb5a297b155645ebb157
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-04 12:31:16 +00:00
Christian Kandeler
27e30cb4dc Update qbs submodule
To HEAD of 1.7 branch.

Change-Id: If85142c2e7a33a51e0fc58b4f5e70cc1ea047242
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-04-04 11:42:42 +00:00
Robert Loehning
60e3030082 Valgrind: Check function early to avoid nullptr deref
Change-Id: I19da2e8f9dd3f6d7af0d412e07a257ba33ecb680
Reviewed-by: hjk <hjk@qt.io>
2017-04-04 09:06:47 +00:00
Robert Loehning
a49df50443 qmljs: Prevent possible nullptr access
Change-Id: Ice4a2dd102ed4afda351dc7d011752120d3952b5
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Christian Kamm <mail@ckamm.de>
2017-04-04 08:57:51 +00:00
David Schulz
16b3235003 Debugger: Catch memory read exceptions in getJumpAddress
Throwing an exception in these cases is not uncommon and should
be handled properly.

Change-Id: I8d4377bf26a4e31971da724904dd5ea5f01a95e1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-04 08:23:30 +00:00
David Schulz
cafd4a4626 Debugger: Make readRawMemory exception more detailed
Change-Id: Ibb9b42b05921cf8f797da3d3e2967a8842bf38c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-04-04 08:22:18 +00:00