Commit Graph

52829 Commits

Author SHA1 Message Date
Marco Bubke
be939a80db Clang: Improve locking of string cache
The string cache is only very seldom written but very often read. To
improve thread scaling it is faster to lock it only for write operations.
So we use a shared mutex which is locked in shared mode for read
operations and locked exclusively for write operations.

Change-Id: I2cc742d1b9cc15c162be40ab339fa8310640bc44
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-05 17:48:23 +00:00
Marco Bubke
d2e15e5f1e Clang: Add file cache
The database is using file path integer ids to handle file paths because
otherwise we would save many redundant data. This patch is improving it
further with the introduction of a database based file path cache. The
entries are now divided in a directory path and file name. This is quite
handy for directory based file watching.

Change-Id: I03f2e388e43f3d521d6bf8e39dfb95eb2309dc73
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-10-05 17:36:37 +00:00
Friedemann Kleint
0be8240002 Add folding to Unified diff editor
Add folding for files and chunks.

Change-Id: I0dd278d0bc69208a0c9c116b94e4ead7aec5fede
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-10-05 14:29:38 +00:00
Ulf Hermann
7842a309ce ProjectExplorer: Add missing import
Change-Id: Ida0e9387036d5ab3a5abe8661c55e34ecef32187
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-10-05 09:58:15 +00:00
Ulf Hermann
fb370f460d Move URL utilities from ProjectExplorer to Utils
This way we can access them from the qmldebug library.

Change-Id: I90ba80228f44a9d5ea825ad59f4bd1572969980e
Reviewed-by: hjk <hjk@qt.io>
2017-10-05 08:54:39 +00:00
Ulf Hermann
2f9d82791e QmlDebug: Move QmlDebugConnection into own file
Change-Id: I761658de7c19754cfaadf8cbbad7596a9bcdfbf3
Reviewed-by: hjk <hjk@qt.io>
2017-10-04 16:17:48 +00:00
Tim Jenssen
451f4a1e73 ProjectExplorer: fix testFlavorForOs()
Change-Id: I7e6e784c233159beead616149b7aeeb0f95225fe
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-04 16:15:27 +00:00
Ulf Hermann
7749a47e62 QtSupport: Move populateFileFinder to BaseQtVersion
This populates a file finder so that it is best able to find QML files,
prioritizing the given project/target. Some of it would also apply to a
non QML file finder, but as we don't use FileInProjectFinder for other
file types we keep the code here, for now.

Change-Id: I14e2ac63e699afe27d2f3af8ca3d57dfe732da8c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-04 10:49:40 +00:00
Ulf Hermann
0693db3579 SessionManager: set startup project on addProject
If there is no startup project when we add a new project the new project
should become the startup project, as a situation where there are
projects, but no startup project is invalid. removeProject also checks
for the startupProject and adjusts it if necessary.

Change-Id: I5f12add832db82af553fc1e393e32185eb322866
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-04 10:49:29 +00:00
Tobias Hunger
c330cf0679 Replace manual signal blocking/unblocking with QSignalBlocker
Change-Id: Ibb59fab4e37d045e506c5a8172b6f5cbb955b028
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-10-04 09:35:06 +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
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
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
Orgad Shaneh
9d40f81441 Merge remote-tracking branch 'origin/4.5'
Change-Id: I919f3dac0bf44f18276e4f70309414bb22c74973
2017-09-28 13:59:51 +03: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
Friedemann Kleint
3edc50a164 README.md: Update Clang repository URLs
Change-Id: I5112052032e128144b346fac49076a458647f7db
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-09-28 06:26:22 +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
Tim Jenssen
c0b2ba829f Wizards: add label for spanned widgets
Change-Id: Ib6cd4791d33a3b14b37f63adb967e17c9357da9f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-27 09:01:41 +00:00
Tim Jenssen
d96c80c1a5 Wizards: sprinkle some consts
Change-Id: I54d8a37ce508570ce85faeca049ad2b855b99e47
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-27 09:01:33 +00:00
Tim Jenssen
08d3ef13a7 Wizards: improve looking for a factory
Change-Id: I5d384ff43b01274556c30a1669a953955d81a501
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-27 09:01:24 +00:00
Orgad Shaneh
0269bf537b Macros: Modernize
* Replace 0 with nullptr
* Remove redundant pimpl
* Use inline member initialization

Started-by: Laurent Montel <laurent.montel@kdab.com>
Change-Id: I15ace2581c13ecf24b7c947972b9435fbcaa12ab
Reviewed-by: Laurent Montel <laurent.montel@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-27 08:17:08 +00:00
Nikolai Kosjar
e99b86e8ca Clang: Remove IpcSenderInterface
Change-Id: I005ab86d0967b439421a217556a39f2416976f20
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-27 08:07:30 +00:00
Nikolai Kosjar
576ae5e132 Clang: Remove test testUpdateBackendAfterRestart()
* It's skipped / must be rewritten.
* It does not belong to ClangCodeCompletionTest

Change-Id: If6708d28602cc8c3478a968b87bae542ae859590
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-27 08:07:24 +00:00
Laurent Montel
d0f59c0949 CppEditor: Clean forward declaration
Change-Id: Id2a4d203e7a0c3405ca612aeb294b25be8a37323
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-27 07:55:18 +00:00
Alessandro Portale
c4438cc4c3 Qnx: Have a proper default device icon
Themable and HighDPI-able.

Change-Id: Ieefa19f3a569d9b9fbb3349f9bb6ac67453eff1f
Reviewed-by: hjk <hjk@qt.io>
2017-09-27 07:47:50 +00:00
Alessandro Portale
aeeeffbe68 qtcreatoricons.svg: Pacify recent Inkscape versions
Since a few versions, Inkscape wants to add a inkscape:locked to
guides. In order to have less patch cleanup duty for each svg
commit, we just concede that to Inkscape.

Change-Id: I8c096b7db15dc776976281cf9d20444e1654bb01
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-09-27 07:47:23 +00:00
Laurent Montel
784d9a6279 QMakeProjectManager: Clean forward declaration
Change-Id: If2a70a5b39b999119cb02c84b72a5a13891661dc
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-27 07:46:27 +00:00
Laurent Montel
b89cd0a78a DiffEditor: Clean forward declaration
Change-Id: Ifedc0041a5a7d736231057c092f430061c62f8fb
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-27 07:46:16 +00:00
Laurent Montel
7dafb822ed CMakeProjectManager: Clean forward declaration
Change-Id: I47cb6fbac276554e548383fe6945fd5cd38386c6
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-27 07:46:06 +00:00
Tobias Hunger
3d8be750b9 Environment: Use Utils::FileName for path() and related methods
Update users accordingly.

Change-Id: I9432e82308e9d0630514c6c8632aeb6b6ee0cf90
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-27 07:37:26 +00:00
Eike Ziller
8645b27880 Version bump for master
Change-Id: I0d2a37c4dd7435e55534538b7b2c4d9d69640e14
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-27 06:48:10 +00:00
Christian Stenger
211dad0325 QmlDesigner: Fix translatable string
Change-Id: Ie116f05ee8a8c65f470b3bdd6363a92ca43f6acc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-27 06:29:40 +00:00