Commit Graph

43591 Commits

Author SHA1 Message Date
Christian Kandeler
5e55337652 Update qbs submodule.
To HEAD of 1.4 branch.

Change-Id: I7177e3dc23941a2bc5d62329a00e232c633fc331
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
2015-08-14 10:13:36 +00:00
Eike Ziller
c9614cb5f7 Avoid trying to create autosave files in read-only directories
Task-number: QTCREATORBUG-10958
Change-Id: I9cb4289f35f194bcbb5e242f064c67264bcf8676
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-08-14 07:50:17 +00:00
Eike Ziller
ad5b6e60b5 Preserve preference dialog size
Change-Id: Ibc4a0d62eab0823253e4050001c7d7904fef4d33
Task-number: QTCREATORBUG-14522
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-14 07:42:57 +00:00
hjk
76b5095687 Debugger: Also display subentries for pretty printed char arrays
While the formatted value is usually all that's wanted,
having access to the individual chars is handy at times.

Change-Id: I53b0d0ccfe4289b9b54a1caced4e0bd5ac66d9fc
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-13 14:18:22 +00:00
hjk
1b417fd78c Debugger: Use qtHookData to extract Qt version when possible
This avoids inferior calls, i.e. is faster and more robust.

Task-number: QTCREATORBUG-14350
Change-Id: I9f21eda6e2e3950eaaca90a35afb885e76e789d8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-13 14:03:00 +00:00
Nikolai Kosjar
019e618841 Clang: Fix removing unsaved file
We called delete[] on invalid data.

Change-Id: I94147c80119e27b42c280fb527966602fc456f8b
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-13 13:06:22 +00:00
hjk
ef7a7a445b Debugger: Fix evaluated expressions containing quotes
Task-number: QTCREATORBUG-14364
Change-Id: Ia1fc1f341dad56c495b356464951a771dfccc50b
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-13 12:19:17 +00:00
hjk
5531f73cf6 Debugger: Disable L&E context submenu without useful contents
Task-number: QTCREATORBUG-14578
Change-Id: I6bc3b69601d8330ca2b267424260d48dd489a7e7
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-13 12:17:34 +00:00
Christian Kandeler
a802ca771f QmlDebug: Fix qbs build.
Change-Id: I8381f1d1b0acd3344a05d0845d9fe04d2bf27251
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2015-08-13 08:48:49 +00:00
hjk
d98325f413 Debugger: Make Locals views entries selectable for core files
Task-number: QTCREATORBUG-14904
Change-Id: I3918979c5f7a5dd3e4fbe9e3c7444f622e26b3f3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-13 07:04:27 +00:00
Nikolai Kosjar
039d9309a9 Clang: Ignore include dirs matching lib/clang/x.y/include
On OS X the clang versioning is different.

This completes

    775661fafb
    Clang: Ignore clang include directories from the toolchain

Task-number: QTCREATORBUG-14856
Change-Id: Ib93ce9fcf18a3c8693f9f2af8075eeef8b93fa32
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-12 15:59:51 +00:00
Marco Bubke
e2423170b2 Clang: Fix tests for master
Change-Id: Id29c61ef4c12f9a0893df911cd42ac09460f5911
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-12 14:47:38 +00:00
hjk
f020edc287 Debugger: Fix QJsonDumper with LLDB
Change-Id: Ied299468a3f125540894278841114591cfecb02b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-12 13:55:01 +00:00
hjk
eca5ccdd3e Debugger: Debugger protocol maintenance
- Move DisplayFormat from watchhandler.h to debuggerprotocol.h
- Add/update a few comments about the use of the protocol enums
- Make decodeData take a DebuggerEncoding instead of an int

Change-Id: I50bed70a5da2e94da46e894bf9136bc14c9a1b23
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-12 12:59:41 +00:00
Orgad Shaneh
786aa4a441 Git: Fix source repository resolution in Stashes dialog
Remove workaround done in Branches and store copies where they're needed.

Task-number: QTCREATORBUG-14850
Change-Id: I6a81fc5ac02fb11d444906af6cfbe768695c9965
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-12 11:32:20 +00:00
Ulf Hermann
fb387ea2af Remove V8 profiler client
Change-Id: I3b4966aca5026d090a5a7653be6dd09bd0ea66fd
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-08-12 10:13:12 +00:00
hjk
5b0e12bde6 Debugger: Rename "Change Local Display Format" to "...Value Display..."
This has been a mis-nomer since the Local and per-Type format
submenues were merged into a single submenu.

Change-Id: I07068a6909b30c961bfc956d8ea5c0be5cf0e45d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-08-12 09:18:05 +00:00
hjk
d7c5ee7edd Debugger: Fix display selection of char arrays
... by re-using the logic we had for std::string already.

A plain char[] value did not react to Change Display Format,
Latin1 was used unconditionally.

Also rename putStdStringHelper to putCharArrayHelper.

Change-Id: I01fdf796ff49a4c99ead7b9b46274684e18e962b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-12 08:07:08 +00:00
Eike Ziller
07e1f78ca8 Editors/Function hint: Guard against potential crashes
Change-Id: I285fe66a2ef9fd9543150dbbec5da6a83657ae73
Task-number: QTCREATORBUG-14875
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-08-12 07:16:43 +00:00
Orgad Shaneh
adf3a4363f Utils: Avoid multiple calls to GetNativeSystemInfo on Windows
In fact, hostArchitecture is only called on MSVC auto-detection, which
is only done on startup.

On the other hand, all the other functions in HostOsInfo are independent
on external calls, so adapt this one in case it is used in the future.

Change-Id: I4646d87cb3b976e358276482cad1b14bfc430964
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-08-12 06:13:57 +00:00
Daniel Teske
9bcb933008 Utils::transform; Remove some code duplication
Change-Id: Ic1237351f6d67cdd8a5d19500d833dce96b08f36
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-11 15:08:27 +00:00
hjk
7a88612a8e Debugger: Don't add a new watcher item when editing one in-place
Task-number: QTCREATORBUG-14775
Task-number: QTCREATORBUG-14851
Change-Id: I06638ffc2d5a1723e87c1c5a651592e7e0bbad22
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-11 13:29:29 +00:00
Ulf Hermann
f99e40602b Fix typos in CPU Usage Analyzer docs
Change-Id: Ie1f62224b62a148c0a6df1ff4afb55fa9aec89af
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-08-11 11:16:01 +00:00
hjk
472d584d5d Debugger: Adjust dumper test to changed dumper output
Change-Id: Ib183c960ff7e737636860e007a16972d5f1f232f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-11 10:31:06 +00:00
hjk
1b5e5656f6 Debugger: Fix display of QByteArrays constructed from raw data
The sanity check on sizes introduced in 2ad602bb was too harsh,
marking the fromRawData() case (alloc == 0, size > 0) as invalid.

Change-Id: I9d7e0cedbc3f35024281829cfb1f6fa2e17a1573
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-11 10:31:00 +00:00
hjk
884be5128f Debugger: Show QDateTime also for non-default timezone
Task-number: QTCREATORBUG-14853
Change-Id: Iaf4501878df15bd55b49d4daab64ea280e14663b
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-11 10:30:00 +00:00
Robert Loehning
6fe810f514 Squish: Compare sets directly instead of differences
Generates better output with less code.

Change-Id: I3a5fa02c5aca97561e20dc4ddf4153596a3a60ae
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-11 10:01:41 +00:00
hjk
3413130379 Debugger: Fix typo when reporting large containers
Regression since 9130cdfc05, leading to "<unavailable>"
instead of "<at least %1 items>"

Change-Id: I89166e50f27c568009ff7aeabb5adf622e303789
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-11 09:31:54 +00:00
hjk
eaec337265 Debugger: Fix display of C-style wchar_t strings
The null delimiter was not reliably found due to iterating over the
wrong positions in the string.

Task-number: QTCREATORBUG-14826
Change-Id: I3a3f2fca84648b54b12fe5fae921ce6311d4f1b2
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-10 14:28:44 +00:00
hjk
427c32ccb0 Debugger: Fix Jump To Address in LLDB disassembler on Linux
lldb.thread.RunToAddress does not seem to hit anything on Linux.
Fake it by setting a temporary breakpoint + continue.

Change-Id: I533c8fb42c9a3d1ac1e5cc23eae8162a3455fb9a
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-10 14:04:48 +00:00
Daniel Teske
0a23dd4e23 ProjectTree: Improve resizing of project tree
On each resize event the treeview iterated over all rows to get the
maximum width of them. That involves text layout and is very slow
with bigger trees.

So cache the size hint for the column and connect to all signals
that can potentially change the size hint.

Change-Id: I83a13982848df56515fed8225ced336096370546
Task-number: QTCREATORBUG-8075
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-08-10 13:42:38 +00:00
Robert Loehning
5dab51ce9f Squish: Fix tst_default_settings for Ubuntu 15.04
Task-number: QTCREATORBUG-14697
Change-Id: Ia8e41325e61ce6a380dbe0c60cf78c11afc2e99c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-10 13:15:24 +00:00
Eike Ziller
a874dc2305 Preferences: Sort categories from providers into list of categories
Designer options were always coming last because that uses an options
provider instead of option pages directly.

Change-Id: I2c02ce7d2ff122beb5d563a9c9ac263bdc71f62b
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-10 11:55:44 +00:00
Eike Ziller
8261b98d7e Preferences: Options pages need unique IDs
Since we are referring to them by ID without specifying the category in
addition.
This requirement was implicitly added by
592ffe7377

Task-number: QTCREATORBUG-14742
Change-Id: I7be539127b76de90c19b0282565d845fa42010ab
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-10 11:55:01 +00:00
Nikolai Kosjar
64d8ac4880 Clang: Fix showing signature tooltips for functions
...and others in the generic completion widget.

Task-number: QTCREATORBUG-14874
Change-Id: I75122eaf364d740b0a64ca514b31a26c5c8ea673
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-10 09:35:01 +00:00
Eike Ziller
4b1cda0f7c Merge remote-tracking branch 'origin/3.5'
Change-Id: I9baaf42531c10c32a2fa78d2504de213e77fdf82
2015-08-10 11:15:29 +02:00
Christian Kandeler
1c822544f0 Ios: Remove some unneeded references to QmakeProjectManager.
Includes, namespace usings and casts.

Change-Id: Iaa9caa1387f1f96fa5d8537d8cfec78ab9786789
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-10 08:34:33 +00:00
Leena Miettinen
c4fe977e7c Doc: remove references to Qt WebKit
It has been deprecated and was only used as an example.

Change-Id: I4e483e2f86b32476e4b88c9c3eecb7eeffa42e72
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-10 07:39:19 +00:00
hjk
a6fb90165a Utils: Fix lifetime of Aggregate lockers
The QReadLocker died before locking anything.

Change-Id: I8d50082bfcdd70c2e29cf637a6cfb327f106f2c3
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-10 06:39:16 +00:00
Orgad Shaneh
14419e3d1b Git: Fix typo in comment
Change-Id: I07a7905bed3a46f7fbd60fd0844e9c46d61fbc1f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-09 19:09:16 +00:00
Eike Ziller
80766578a2 Version bump
Change-Id: Ibb3790fe4b4bfcbd808f611ce9fa2f0427022a4a
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
2015-08-07 14:19:12 +00:00
Eike Ziller
98b0a11dbd iOS: Keep iostool from stealing focus
This was triggered by fixing the iostool Info.plist in
339a8b619e

Define QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM, similar to how it
was done for qml(2)puppet in f6303e6784

Task-number: QTCREATORBUG-14837
Change-Id: Ia0dda338361900c519bbaaef225b6a613e928817
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-08-07 10:02:56 +00:00
Robert Loehning
1992d0f230 Squish: Improve tst_CSUP02
Change-Id: I6ddafab93381a3ee82c581299175d18dcad55a1b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-07 08:46:39 +00:00
Robert Loehning
630552f9e4 Squish: Add binary test file
Change-Id: I326812f4cd57f4f91197717ae54a18c675c514b4
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-07 08:46:09 +00:00
Leena Miettinen
a4a27d4de7 Doc: fix writing Qt Creator as one word in a label
... in Tools > Options > Debugger > General.

Change-Id: Id9d68c47ef59179d5e66abd3a97ab597f7ac9364
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-08-07 08:37:21 +00:00
Nikolai Kosjar
1ecadd7d76 Clang: Filter out "#include_next in primary source file" warning for headers
Another diagnostic that can't be turned off.

Change-Id: I1e4452ccbb2f1864e1a68cf02a858d410cd0c162
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-07 08:19:51 +00:00
Christian Kandeler
295b11d099 Update qbs submodule.
To HEAD of 1.4 branch.

Change-Id: I29b8da7c318a87ff6c5148edb93955826c7697d8
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
2015-08-07 07:59:10 +00:00
Leena Miettinen
ff3925f3b0 Doc: fix function names in code pasting instructions
Change-Id: I59d1131c516ded36dc4f6967dc7cc1905f0c8922
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-06 14:27:02 +00:00
Leena Miettinen
3bb2b0c456 Doc: update screenshots for Linux and QNX devices
The deployment steps have changed. Removed the screenshot
that shows the default settings for running on Linux.

Change-Id: I64745026e4a79f32e62d575df4e0b408173cbddb
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-08-06 14:02:33 +00:00
Orgad Shaneh
8c53ff79ab CppEditor: Delay mime initialization on startup
Plugins register their mime types on initialize().

If a plugin *reads* from the mime database on initialize(), and plugins that
follow it register new mime types, the next read forces reload of the database,
which is expensive.

Change-Id: Ifd5f1bfea17faf2be25846d954d66884b6fbb204
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-06 13:49:24 +00:00