Commit Graph

44349 Commits

Author SHA1 Message Date
Orgad Shaneh
e20aa431ed ShellCommand: Apply progress parser also to stderr
It is only used for Rebasing message in Git, which was moved from
stdout to stderr on Git 2.12.

Change-Id: I761cb7ac4e0d19fc28b323076dd3b0919535ed32
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-04 07:50:34 +00:00
Orgad Shaneh
d8fda051f9 CamelHump: Minor cleanup
* Use local variables to avoid duplication
* Correct the regular expression:
  instead of (?<=...)(C|(?<=...)c) create
  (?<=...)(C)|(?<=...)(c)

Change-Id: Ibf65ab118017fa67db1cb0efa4eb82a4e36f284c
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-10-03 05:50:13 +00:00
Serhii Moroz
6afdb8bdf9 TextEditor: Disable block selection if file was changed in other editor
Task-number: QTCREATORBUG-18770
Change-Id: Iccdc3deb354599bf1fd6f1cb8c0d5a1765ecb471
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-10-02 08:30:11 +00:00
Christian Kandeler
7d88284e48 Update qbs submodule
To HEAD of 1.9 branch.

Change-Id: I90a37855cd405423ef02dc27be563b822ad96bd3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-10-02 08:04:42 +00:00
hjk
5baecec6b7 Qnx: Fix C++ debugging
Task-number: QTCREATORBUG-17901
Change-Id: Iab7dfa3eb9a211770e45405f344d75ff20e8acae
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-09-29 14:26:36 +00:00
hjk
af63f488c2 Debugger: Simplify CdbEngine construction
Moving the knowledge that this won't work well outside windows
kind of decreases encapsulation, but that's not really worth the
complication of the error handling here.

Change-Id: Idcb6f6d64f33ee8c49a01e62e20aad16d3f01b86
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-29 14:12:54 +00:00
Eike Ziller
b721b2dce9 Fix updating root directories in file system navigation pane
We also need to update the static cache of the root directories and
their properties, otherwise it will be wrong for file system panes that
are opened afterwards.

Change-Id: Iaf96f2728132e7c2f349095b347b13f833ccc732
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Florian Apolloner <florian@apolloner.eu>
2017-09-29 11:02:52 +00:00
Tobias Hunger
ab3a76281c ClangStaticAnalyzer: Remove unused lambda capture
Fixes a warning in clang 5.0

Change-Id: I5e0415e65c3019e9deb3e99c396e6a86c6952ca4
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-09-29 10:57:25 +00:00
Tobias Hunger
2b7c5deadc GccToolChain: Improve findLocalCompiler
Improve findLocalCompiler to better match the semantics of icecc/distcc.

Task-number: QTCREATORBUG-18902
Change-Id: I06e7957d37bff449ce0188dd5d19e88d25f8e459
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-29 10:56:20 +00:00
Eike Ziller
5e622a3203 Use nullptr and member initialization in document manager
Change-Id: Iddd446d10cf3fd0a59d46d6ed3ba335f0c93e118
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-29 10:46:28 +00:00
Ulf Hermann
7c3ea5a78c ProjectExplorer: Make some more menu group IDs public
This way other plugins can add entries to those menus.

Change-Id: I3c536a85543d267983a6797f62e25be9e4b7e006
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-29 10:19:17 +00:00
Tobias Hunger
cac9db78df CMake: Make conditions in disabledReason and updateEnabledState match
Change-Id: I7c218b20e15c1e7b2dcca7dd80b226536cfa650b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-29 10:17:03 +00:00
hjk
e3f0e1be08 Qnx: Use simpler portsgatherer command
As indicated by the removed comment, the original version was
way too complicated.

Change-Id: Ie5d8d8fbe7bd8e44e0538117cd2aaa73958f7d8c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-09-29 10:10:08 +00:00
Tim Jenssen
7dbd399a97 Wizards: introduce ObjectToFieldWidgetConverter
With it as a wrapper we can register any QObject
to use widget based field mechanism from QWizard.

It also helps to avoid the necessity for inheritance
to just adjust the text property of a widget.

Can not remove the TextCheckBox, because it is used
in some old C++ wizards.

Change-Id: I85a85a834714a4b38b501c13357fa8c8bb02b5bd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-29 09:34:08 +00:00
hjk
64d784ec9a Qnx: Fix Qml profiler startup
This essentially replicates the RemoteLinux setup with
the additional Slog2Info runner.

Verified to work with Qt 5.9.2 on a BD-SL i.MX6Q_Sabre-Lite_Board
armle running QNX  6.6.0 2014/02/22-19:07:53EST

Task-number: QTCREATORBUG-18954
Change-Id: Iffea289b7c7f25d23472c9e12b5e45c460c93795
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-09-29 09:23:32 +00:00
Laurent Montel
41c9ef6ec0 Subversion: fix forward declaration
Change-Id: I4fa01e0fb5b2a56959a30737b6aea0acc4889334
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-29 08:34:12 +00:00
Ulf Hermann
defcb6a55a QtSupport: Add a method to retrieve the QML path
We check that qmake property in many different places.

Change-Id: Ifd5efe4ad2831385493bd3afe8538929578e8fb4
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-29 08:26:33 +00:00
Tim Jenssen
bb16ae7323 Wizards: let the page use wizard values
For example it will be used to get the
wizard directory to show icons in fields later.

Change-Id: I6a243a67a89e4a0133550a61b870d771147667f1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-29 07:59:24 +00:00
Andre Hartmann
8730dbd4e6 Locator: De-duplicate RegExp pattern generation
Change-Id: I3576e1507aebed15245e1f197995bfe9e345e32b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-29 07:03:43 +00:00
Eike Ziller
e0639d0696 Fix reload issues for files with multiple registered documents
If a file is removed, the file system watcher can loose its watch
on it (e.g. on Linux, inode-based).
Saving files does so "safely" by writing a temporary file, moving
the original, and moving the new file in its place, which is
triggering the issue above. That is why we need to re-register
the path in the file system watcher.

This broke in the refactoring done
by 05485071b0

Task-number: QTCREATORBUG-18892
Change-Id: I3b216d614b9f82e308da63c07d990e5911193655
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-29 06:48:49 +00:00
Ryuji Kakemizu
fc4bc59fd5 Fix deployment to Windows 10 Phone Emulator
Change-Id: Iaedee9ee61c3bf6b628a2f3d6480b980ddac54f2
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2017-09-28 16:47:02 +00:00
hjk
b58f695cf8 ProjectExplorer: Sort dependency names alphabetically
Task-number: QTCREATORBUG-18843
Change-Id: Iba25e9ea292b34a7479e0456d005d02b678477f5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-28 14:58:20 +00:00
Laurent Montel
fd2cca08c0 qmljseditor: fix forward declaration
Change-Id: If44cf14eb04c74a164d6b3cd68cd5a114fff1533
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-28 14:57:06 +00:00
Nikolai Kosjar
087ea0e531 Clang: Rename directory ipcsource to source
Now it's in accordance with clangrefactoringbackend/source and
clangpchmanagerbackend/source.

Change-Id: I939cfc72cffb8fcde0649f125e6efb6670d1cbc3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-28 12:45:41 +00:00
Nikolai Kosjar
917592970d Clang: Extract and rename backend classes
IpcCommunicator -> BackendCommunicator
IpcSender -> BackendSender
IpcReceiver -> BackendReceiver

Change-Id: I110ebe8d185db7ff47d2d5de9b786262520926d0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-28 12:45:31 +00:00
Vikas Pachdha
66a42a7ffb Android: Fix the SDK platforms parsing for SDK tools 26.1.1
Task-number: QTCREATORBUG-18962
Change-Id: I780193be482ebc151931196792068d7c4d1ad808
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2017-09-28 12:34:59 +00:00
Orgad Shaneh
9d40f81441 Merge remote-tracking branch 'origin/4.5'
Change-Id: I919f3dac0bf44f18276e4f70309414bb22c74973
2017-09-28 13:59:51 +03:00
Nikolai Kosjar
315031e3f5 GLSL: Avoid infinite loop at error recovery
For error recovery additional tokens are tried to produce a valid
grammar rule.

For the specific case in the bug report

    for(int x=0; x y

the two consecutive identifiers in the end triggered an infinite loop
since the identifier token is also part of those additional tokens that
are tried.

Circumvent this by trying a more conservative list of tokens on the
second try.

Done-by: Erik Verbruggen
Change-Id: I271dddecf947a06ed3af5f9955ee630441533342
Task-number: QTCREATORBUG-18967
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-09-28 10:40:32 +00:00
Nikolai Kosjar
c354eff5e9 GLSL: Fix conversion warnings on Windows
This was actually already fixed with

  Fix compiler warnings on windows.
  commit cc04b84917.

However, glslparser.{h,cpp} were changed, which are generated from
glsl.g. Fix the warnings in the source file glsl.g so the next time the
parser is re-generated the changes are not lost.

Change-Id: If7e5f45ff1a93d1d7b6c9213697884f5a7e9ec5f
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2017-09-28 10:40:26 +00:00
Nikolai Kosjar
aca8e8643c GLSL: Re-generate parser
...by running ./make-parser.sh to make a subsequent change less noisy.

qlalr in PATH is from Qt 5.9.1.

Change-Id: Ia39181b55cd0e16207fa809f0db92cdeba3b095c
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2017-09-28 10:40:19 +00:00
Laurent Montel
227acdea75 TextEditor: Clean forward declaration
Change-Id: If338617551893e3ce3c7a68ff1abfc60de8cf610
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-28 09:39:46 +00:00
Nikita Baryshnikov
e4c3e04ebd Environment: make usage of Environment.iterators more consistent
Change-Id: I114ddb2238ad19ac0681b8405925f283f2460f21
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-28 08:59:55 +00:00
Andre Hartmann
f792475739 CamelHumpMatcher: Fix matching word continuations without hump
Let the search string "window" also find "mainwindow.cpp",
not just "MainWindow.cpp"

Task-number: QTCREATORBUG-18957
Change-Id: Iace3111fb3ce319d916362c1f8d396844a3bc47a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-28 08:04:43 +00:00
Laurent Montel
b35fe9bf53 timeline: fix forward declaration
Change-Id: Ic69e6559826050adabd3f39e7b936f98d8069621
Reviewed-by: hjk <hjk@qt.io>
2017-09-28 07:53:35 +00:00
Laurent Montel
8883d496b3 Help: fix forward declaration
Change-Id: I88b5cca65d7e98e7f9d9e5d082cc137e822bc9b4
Reviewed-by: hjk <hjk@qt.io>
2017-09-28 07:53:26 +00:00
Laurent Montel
f75379ddcf Mercurial: fix forward declaration
Change-Id: Iacd804231c84881de553e6b5d7d66f6b8731e70e
Reviewed-by: hjk <hjk@qt.io>
2017-09-28 07:53:15 +00:00
Laurent Montel
67646cb026 autotoolsprojectmanager: fix forward declaration
Change-Id: If710c026bb40735a4437cce8ca3e7c32c619d202
Reviewed-by: hjk <hjk@qt.io>
2017-09-28 07:53:06 +00:00
hjk
0c8283234a Debugger: Simplify GdbEngine construction
Change-Id: I4af1cb7d7480b1db68693881254cbc89d985c33e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-28 07:52:16 +00:00
hjk
b11f304ffb Debugger: Remove more non-const acccess to start parameters
Change-Id: I1311b652bb56ef4b9b51cca6b39be2b2215e0074
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-28 07:42:24 +00:00
Laurent Montel
ac6055eeb0 Git: clean forward declaration
Change-Id: Ic8e988d9fa27f9e92fdcfe111220a5c929998afb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-28 07:05:19 +00:00
Christian Kandeler
75395af824 QbsProjectManager: Respect overridden target ABI
Auto-detecting the architecture in qbs is all well and good, but if the
user explicitly set an ABI in the toolchain widget, we must set
qbs.architecture accordingly.

Change-Id: I3a2c441ceea5e939e43764e0468588d2d0ef323c
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-09-27 16:13:06 +00:00
Laurent Montel
3ddba62aff Valgrind: fix forward declaration
Change-Id: I6fe6a903451a40214224319a5245d57488d9cf05
Reviewed-by: hjk <hjk@qt.io>
2017-09-27 14:24:26 +00:00
Ulf Hermann
d8a41f2706 QmlProfiler: Add QT_INSTALL_QML paths to FileInProjectFinder
This enables us to find QML files that are part of Qt, also if they are
not in the same location on the host and target systems.

Change-Id: Idcd0be8ae4301000c4123e39edeb04b43efb4659
Reviewed-by: hjk <hjk@qt.io>
2017-09-27 14:22:58 +00:00
Ulf Hermann
38d00cc8b6 QmlProfiler: Use a Target for populateFileFinder()
The RunConfiguration we were using previously only served to retrieve a
target.

Change-Id: I30628197de3025511a03a53d3119083b980762c8
Reviewed-by: hjk <hjk@qt.io>
2017-09-27 14:22:49 +00:00
Laurent Montel
7c064d3921 CorePlugin: Clean forward declaration
Change-Id: I37c381bc26a29acae1bfe0e49f2772b4e92cf046
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-27 13:08:46 +00:00
Eike Ziller
e3a692a1a4 File System view: Fix that projects could be duplicated
It is not possible to use the display name as an ID, because that can
change (and to propagate that change we use the ID).
Remove the display name from the ID, use a separate sort property, and
sort by this property + display name.

Task-number: QTCREATORBUG-18972
Change-Id: I27017473842931defa3a123ce9f41cc8e8ba1a61
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-27 12:37:53 +00:00
hjk
895acd23e3 Debugger: Move external terminal into separate RunWorker
Change-Id: Ifb9701f840195ba90db48a0f6fa07b28e0409648
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-27 12:16:19 +00:00
Laurent Montel
6f481bd9da CPaster: Clean forward declaration
Change-Id: I05126edb499cff64bd83839933ad831d9845e0e3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-27 09:54:16 +00:00
Claus Steuer
4c04cff7c1 AutoTest: Test execution from result output pane
Enable test execution via context menu in the result output pane.
At the moment only gtest is supported.

Task-number: QTCREATORBUG-16695
Change-Id: Ib39164c3cb44d249647b11e25dc51c9ac5db89c5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-27 09:47:28 +00:00
Thomas Hartmann
8b80442131 QmlDesigner: Add support Qt Quick 2.10
Change-Id: Ic6ba5224c8b70bab60e903a8e159749a69f7818e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-27 09:34:36 +00:00