Commit Graph

50929 Commits

Author SHA1 Message Date
Andre Hartmann
5b40263648 Gerrit: Convert REST "updated" timestamp to local time
Change-Id: Ic763495386cb0c11b640fa3b5488cdd928ab508f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-03-09 08:33:02 +00:00
hjk
fb213b5826 Debugger: Use a named tuple for Dumper.Field
Makes it clear that this is meant to be immutable and is supposedly
faster.

Task-number: QTCREATORBUG-17823
Change-Id: Ie5d67b793e0bc4f704981d5161efc12bcc22100a
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-03-09 08:20:46 +00:00
Serhii Moroz
69da534f99 TextEditor: add right sidebar
Task-number: QTCREATORBUG-9436
Change-Id: Ic0406758a30d52c22c58433f5f35305b798cb462
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-03-09 08:19:54 +00:00
Jake Petroules
3b38c986e9 Use correct AMDError constant name in iostool
Amends 350db24891.

Change-Id: I2e7e1903b2cae1d73be19e85c94e4199e8b2191a
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-03-08 20:50:30 +00:00
Orgad Shaneh
69f978efca Gerrit: Split GerritServer to its own file
It became much larger than GerritParameters. No reason to keep them
together.

Change-Id: Ib125f124940e95b0e15616d150f6b44fdb428284
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-03-08 18:57:20 +00:00
hjk
b7412814ab ProjectExplorer: Switch responsibilities for raising applications
Instead of letting the launcher decide to raise something when
started (and only then) leave it to the RunControl to trigger
(and for now also to implement) as response to the application
launcher start (or possibly now, in other circumstances).

Change-Id: I0ac8f1e633981f7bf316c88e83c208765886d9a1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-03-08 16:12:13 +00:00
Robert Loehning
a49399dcb9 FileSearch: Remove dead code
Change-Id: I009589cd5da2747f9c7e9a74f7a2762e332ede07
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-03-08 16:08:04 +00:00
Eike Ziller
6ba478e33e Add more change log
Change-Id: I797567d1dc01d57991f776cf36f2a6de3eff9a3c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-03-08 15:03:32 +00:00
Christian Stenger
9a126e37f9 AutoTest: Handle conflicting update triggers
If a postponed update should be done for a single parser only and
another full update for all is triggered the latter one would be
ignored which is wrong.
An update for all parsers should always have higher priority and
replace a possible scheduled update for a single parser.

Change-Id: I5e1e446c7dcb9ddbcaed4606ff87a894235b723e
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-03-08 14:16:35 +00:00
Thomas Hartmann
b9fc59f413 QmlDesigner: Improve raise and lower actions
Adjusting the z property is not what users frequently require.
Instead we change the node order.

Change-Id: Id98ea1ca28aa7b1ea2ccf56931e049f94c106369
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-08 13:45:32 +00:00
Thomas Hartmann
aa451eecbc QmlDesigner: Block cursor updates by ModelToTextMerger
When we update the text we have to block the cursor
selection synchronization.

Change-Id: I79c3589482f2ca884bc4980b295b18b0a8e8ef2e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-08 11:23:05 +00:00
Thomas Hartmann
a57279d868 QmlDesigner: Fix sliding in NavigatorView
We have to rebuild the complete tree and update
the item selection.

Change-Id: I91057ca3c518d9027724a7b15de686248df7a0e6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-08 11:22:57 +00:00
Nikolai Kosjar
bd0d8f532c Clang: Limit mingw workaround to mingw
MSVC seems to have problems linking llvm-tblgen.exe with debug and release
libraries.

Change-Id: Ic7cd120f2bb19f762e656de565ebc3c98bbd750c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-03-08 11:07:14 +00:00
Nikolai Kosjar
187f48c238 CppTools: Clean up includes of doxygengenerator.cpp
Change-Id: Ie9ad5cbebc2d97c51889ccc1539caed7d7ded8d4
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-03-08 11:07:12 +00:00
Christian Stenger
50683f5882 AutoTest: Fix potential crash
It is a bad idea to remove child items while iterating over them.
Introduced a while ago, but forgotten to fix in f00a113e.

Change-Id: I8d335cec34c2e6a9e7dff99d10c68066ffa8933d
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-03-08 10:48:08 +00:00
Tobias Hunger
270f863254 Qmake: Use QmakeProFile, not QmakeProFileNode
Change-Id: Ic156e25bcb797f8643639fb0606f2713830e83f6
Reviewed-by: hjk <hjk@qt.io>
2017-03-08 10:42:16 +00:00
Tobias Hunger
03f22b4bc1 ProjectExplorer: Enable tooltips in MiniProjectTargetSelector
Enable support for tooltips in MiniProjectTargetSelector. Use it to display
the kit information when hovering the Kit selection area.

Change-Id: Ie9691973cb74e25217635dc0a798dd9c6219ad37
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-08 10:41:57 +00:00
Eike Ziller
6508956d15 Clang: Add patch against very slow reparsing of large files
Task-number: QTCREATORBUG-17397
Change-Id: I3734b77341ca2c7fd87b0f8e5d1502b859de7692
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-03-08 10:38:39 +00:00
Robert Loehning
c35b0ff781 ProcessStub: Handle failed ftell
Change-Id: I07967ee4f05daa43262d205e2113325b96b429f6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-03-08 10:30:53 +00:00
David Schulz
10c73bac51 Editor: Fix crash in generic Highlighter for invalid rules
Change-Id: I3da9115ecd54f72256e4ee399b2cd37e31f6bcbe
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-03-08 09:54:00 +00:00
David Schulz
4f91cb3d0c Debugger: Do not lookup types when accessing the type name
Return the typeId instead of triggering a type lookup when accessing the
type name and no TypeData is available.

Change-Id: I4d46d5356d38184d73427e5a65c3986d30520cf9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-03-08 09:52:30 +00:00
hjk
d6df4492d0 ProjectExplorer: Use visitor-by-lambda for project tree
And inline it into user code. Less code in total and no intermediate
node lists.

Change-Id: I3724883408bfaa868266110aee27bbffd4d96bd8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-08 09:05:29 +00:00
Christian Stenger
05e8f34d3e QmlJS: Allow forced rescan on already known paths
Qml files used by Quick tests are not necessarily added to the
project file and therefore not fully handled by the QmlJS code
model / snapshot.
When adding qml files to a directory that is handled by the
code model these folders are not scanned again - we need to
enforce such a scan on AutoTest plugin's side.

Task-number: QTCREATORBUG-17805
Change-Id: Ie3d071a9aa03297d618648b06d52fb298c856d25
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2017-03-08 08:57:34 +00:00
Thomas Hartmann
179b845acb QmlDesigner: Modernize C++
Change-Id: Ieb12f3873397c15b537e1a0c353c20780947f903
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-08 08:53:57 +00:00
Nikolai Kosjar
83f1b19a3f Clang: Add patch for workaround of llvm-tblgen crash during mingw build
https://bugs.llvm.org/show_bug.cgi?id=32018
Bug 32018 - llvm-tblgen.exe crashes while compiling LLVM/Clang current
release_40 with MinGW 4.9.2

Change-Id: Ie5ac7c5d0ef040b5767162e19532a8a255633322
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-03-08 08:31:28 +00:00
Nikolai Kosjar
da4e42ec25 Clang: Add patch against leaking file descriptors on windows
FileManager: mark virtual file entries as valid entries
https://reviews.llvm.org/D27810

Task-number: QTCREATORBUG-15449
Change-Id: I8db251a6556f0eb6f3057df751d69dfd09771631
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-03-08 08:31:17 +00:00
Orgad Shaneh
ed5488a490 Gerrit: Improve text in authentication dialog
Change-Id: If5610bad071d6c5d633e28fb16cfe003bdbbd6a0
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-03-08 07:26:03 +00:00
Christian Gagneraud
972b48ef24 CppEditor: Use qFuzzyCompare when comparing member variable for qproperty refactoring
For a line like

    Q_PROPERTY(qreal foo READ foo WRITE setFoo NOTIFY fooChanged)

the generated setter will now use "if(qFuzzyCompare(m_foo, foo))" instead of "if (m_foo == foo)"
for types that are supported by qFuzzyCompare (that is: qreal, double and float).

A warning stating that "Floating point comparison needs context sanity check" is as well added
to remind the user to check/fix the generated code.

Change-Id: I8d274d5c072d107f0d04b1e153b5cc183e6317fc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-03-07 23:33:05 +00:00
Thomas Hartmann
d42c35ab07 QmlDesigner: Add more logging to DebugView
Change-Id: I4f95794b298fa7a3d16c882751c75f0a2e4c9247
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-07 18:03:46 +00:00
Thomas Hartmann
a86660ba80 QmlDesigner: Adjust qDebug() for VariantProperty
Change-Id: Iae591307865dbf00314d11d4c43a345e6ea117e6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-07 18:03:38 +00:00
Thomas Hartmann
fe06638bfd QmlDesigner: Handling out of hierarchy property actions
In theory we could ignore those, but this breaks compressing,
if properties are added and removed in a transaction.

This requires a fix in the RewriterActions.
If property actions are added before the node
is inserted into the hierarchy we ignore them when applying.

Change-Id: I47f2efe93578a05958b63948a2510347e7c79439
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-07 18:03:30 +00:00
Thomas Hartmann
e108ca45c6 QmlDesigner: Reset position if dropping item in layout
If an item is dopped in a layout we reset the position.

Change-Id: I22d005111b1f1d16ed81473c84ea8f9e27130e9d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-07 18:03:17 +00:00
Thomas Hartmann
4f25e892d3 QmlDesigner: Adding notifer for initial properties
It is possible to add properties to a node when creating this node.
We have to notify the view of these properties.

Change-Id: I50ef5b38ff8e1cac4f4d892734e1f4b96690217c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-07 18:03:09 +00:00
Robert Loehning
8e1910b7cd Debugger: Comment out dead code
Change-Id: I91218d9b7b3fa6433d7e64d68b4974a1fdcd295c
Reviewed-by: hjk <hjk@qt.io>
2017-03-07 17:31:33 +00:00
Nikolai Kosjar
45b7c5ac29 Revert "CppTools: Do not put configuration document into global snapshot and working copy"
This reverts commit 05942b63f8 because it
breaks refactoring, e.g. Q_PROPERTY generators.

Change-Id: I9a14b912ba72663f08ea99e7e066d824b18da4b0
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-03-07 11:54:16 +00:00
hjk
95f78f6c80 Debugger: Restrict QFixed dumper to Qt 5
Change-Id: Ic6992bf4f9160bca43ef7e71968105508bdc29f2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-03-07 10:14:39 +00:00
Robert Loehning
0ca8268d81 Clang: Initialize errorType
Change-Id: I1a418c8cda02320c6157635755f03bdc14d28a9e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-07 10:02:06 +00:00
Christian Stenger
b273d7be6a AutoTest: Ensure that removing and adding qml files is noticed
Task-number: QTCREATORBUG-17805
Change-Id: I068f6925fc39813a504205c4ef8e8b9f9e911189
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-03-07 09:57:53 +00:00
Christian Stenger
a095148993 AutoTest: Avoid processing files that are no more present
Change-Id: I02ea32b14fe0d911f3c0b151eb993999922605e5
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-03-07 09:57:43 +00:00
David Schulz
530f7972eb Debugger: Optimize QObject::staticMetaObject lookup
Change-Id: I8c06472ce4e33b7c4203934d93b9cc8c8ae95ce2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-03-07 09:46:23 +00:00
David Schulz
9d8c380b43 Test: Add corrrect Qt path to environment
Change-Id: Ie1d88ebb6b266ce7da2d45b032561883faad5ce5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-03-07 09:36:04 +00:00
David Schulz
707c14df18 Test: Move setupCdb to initTestCase
Change-Id: I8487d932914484db91c24e9059da77225da84906
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-03-07 09:35:54 +00:00
Orgad Shaneh
562a3dadd0 Gerrit: Sort entries in qmake project
Change-Id: I6a1a2c9c8891d5af743a6537ca0d3fb6ead53458
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-03-07 07:28:15 +00:00
Ulf Hermann
c1db6d89f9 BareMetal: Add some missing "override"
Change-Id: I2526a1e63588bf61f1fdea062234c9fb6da523b4
Reviewed-by: hjk <hjk@qt.io>
2017-03-06 16:44:27 +00:00
Orgad Shaneh
1c3b11ed54 Gerrit: Do not pass username for anonymous access
Change-Id: Idaa04d359ac36d8265d34feb725da54e30392788
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-03-06 16:04:51 +00:00
Alessandro Portale
ea8ff05952 WelcomePage: Workaround broken QFrame in HighDPI cases
This change introduces Core::WelcomeFrame which draws proper rectangles.
The need for this workaround is unfortunate, but the very visible
regression with the new welcome mode would be worse.

Task-number: QTBUG-59116
Change-Id: I158b8309cf396a247136d7017406ca1f7bce2407
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-03-06 15:22:12 +00:00
Alessandro Portale
a7bd6156ee WelcomePage: Add a margin right of the search box
On the Examples and Tutorials page.

Change-Id: I079a4586fe71f5ce4b555cd8e857b28b40dba77f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-03-06 15:22:02 +00:00
Tim Jenssen
5d159639eb QmlDesigner: remove warning
Change-Id: I253261d8fc18f856afc10d737de58da21cb7fbf0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-03-06 13:41:07 +00:00
Tim Jenssen
804c02ea9c ResourceEditor: Code cosmetics
Slim down resourcenode.h, namespaces, unneeded friend.

Change-Id: If2a01ea2242183c1f6b27847849309e063af7695
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-03-06 11:00:51 +00:00
Christian Kandeler
36850fbfd7 gdb autotest: Fix qbs build
Change-Id: I5c3b9984fe364db179d76b277a453ec01a4a7b39
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-03-06 10:40:50 +00:00