Commit Graph

50929 Commits

Author SHA1 Message Date
Robert Loehning
611a970819 Squish: Configure C-toolchains for Windows
Task-number: QTCREATORBUG-17406
Change-Id: Iafa1b38f75fa56691e646aaf2fad61504f0706e8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-06 10:23:12 +00:00
Tobias Hunger
ca0a8a6cf7 Qmake: Initialize ExtraRunConfigurationAspects after initial parsing
Task-number: QTCREATORBUG-17462
Task-number: QTCREATORBUG-17477
Change-Id: Ie74455362d7e7ddc0cbd9296a3e2438e7195b00b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-01-06 10:19:13 +00:00
Nikolai Kosjar
85d8fbfdac UnitTests: Add rpath to $$LLVM_LIBDIR
Change-Id: I9be996e0639bacc1d09527e3fb2621311bb067f9
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-01-06 09:39:22 +00:00
Tasuku Suzuki
d6910b9288 QmlDesigner: Fix typo Chrash > Crash
Change-Id: I9cf55c25cb8c904ef1677376025b9ff6b81f1902
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-01-06 07:37:18 +00:00
Christian Stenger
572b04a00a AutoTest: Find data tags of inherited functions
Task-number: QTCREATORBUG-17522
Change-Id: I9fa1db3c2d7f338afe343fc835b9e3dbae353131
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-01-06 06:19:44 +00:00
Christian Stenger
0ceea628b0 AutoTest: Do not lose information of base classes
In case the base class is defined outside of the file with the
derived class we are missing the correct entry point.
Work around this by getting alternative entry points beforehand
and using them if we cannot find a valid entry point.

Task-number: QTCREATORBUG-17522
Change-Id: I07ef87b2fcdac4f78240da9e57eaa518ff0f4d20
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-01-06 06:19:35 +00:00
Christian Stenger
4a634a23cf AutoTest: Find inherited Qt test methods
Task-number: QTCREATORBUG-17522
Change-Id: Ie7cfed2bd38944c28ea8502552593e0083f9727c
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-01-06 06:19:28 +00:00
Christian Stenger
7d1d4471f0 AutoTest: Introduce inherited state for Qt test tree items
Preparation for later detection and displaying inherited functions
for Qt tests.

Task-number: QTCREATORBUG-17522
Change-Id: I2af1f758a837049ef676840b03f9cd73a2cb9873
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-01-06 06:19:22 +00:00
Christian Stenger
9d328ef1a9 Squish: Fix adding new kit
Projects view has changed and so has functionality of adding a new kit.

Change-Id: I44377822b8b850fd17be24e12f7e5d0104be568d
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2017-01-06 05:51:59 +00:00
Thomas Hartmann
e575f054db QmlDesigner: Adding a toolbar
* Icons are not the final ones.

* I fixed a couple of glitches and cleaned up the code.
   - Action for copy and paste/delete were not properly updated
   - Delete had no icon
   - Using std::function for action predicates and operations
   - The context menu has no icons. This way we avoid having to define 2
icons.

Change-Id: Ic23cbc78ba299c19e07e8de775eb813aae55db9b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-01-05 16:44:32 +00:00
Marco Bubke
a8c14b558a Utils: Fix warnings in Treemodel
We made a implicit const cast. Like it is said C-style can be harmful
because they are not const safe etc..

Change-Id: I6b41c10c18d37af4caf58574359fdce7d4a420ca
Reviewed-by: hjk <hjk@qt.io>
2017-01-05 15:24:34 +00:00
Marco Bubke
e9a2996f8d Fix warning in okapi_bm25.h
Change-Id: Ie7be70f37695debff636d9094c6b192cb83f4136
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-01-05 15:04:19 +00:00
Tobias Hunger
87c8839202 RunConfiguration: Simplify adding of ExtraAspects
This makes the code a bit simpler, at the cost of the factories not
having access to the fully specialized RunConfiguration anymore. This
is apparently never used and the factories can still use the Id to decide
what to do if they really need to.

Change-Id: I7d94f85e984ac87e62c6d341c1038e1538aa15df
Reviewed-by: hjk <hjk@qt.io>
2017-01-05 14:42:24 +00:00
David Schulz
f3e3d395e5 Editor: Fix '.' completion trigger behavior
This is a partial revert of c7f19dc0a6.

Change-Id: I09998c5bc82c29a348dfd6ba4a9a14c1ce52422b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-01-05 12:46:39 +00:00
David Schulz
c30170117d Debugger: Don't check twice if a value is expanded
The check is already done by numberOfChildren.

Change-Id: I2dfad4e283546acb87d17ec63e47c43a0b0d467d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-05 11:56:30 +00:00
David Schulz
1da8ed2b25 Debugger: Add some debug messages
Change-Id: Ib75954ec8d3e59f77cc501a7fb64344386fb3a0f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-05 11:41:32 +00:00
David Schulz
ccd84c62be Debugger: Add basic benchmarking infrastructure
Change-Id: Ib685be2ec7c39527748c2feb2ec7cc1dcd01ac37
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-05 11:41:26 +00:00
David Schulz
2e90a02a52 Debugger: simplify locals loop
The value name is already set in fromNativeValue

Change-Id: I82cdaa33133cde431d23a0f20bd5c3d6d938cf7f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-05 11:41:23 +00:00
Marco Bubke
ddbe6117b3 Bump C++ version to 14
Our compilers support some features which are part of the C++ 14 feature
set. Some off them are silently compiled with the C++ 11 setting.

For example:

[foo=bar] {}

is actually working with GCC but is part of C++ 14.

Change-Id: Icf2c3806e26c675f8251768c6ad54ba4da186d11
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-05 10:34:29 +00:00
Ulf Hermann
dba7333bef Timeline: Use the 'g' format for timestamp formatting
This has the nice property of dropping trailing zeroes and allows us
to simplify the code a bit.

Change-Id: I4ac98743960ba552c8e3e72e02f594ba910ab81b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-05 09:59:55 +00:00
Ulf Hermann
48570a754e QmlDebug: Use the original names for connection states and errors
The way to extract them from Qt is somewhat funny, but this leads to
clearer messages in the debugger log and other places.

Change-Id: Ib458d5ec796a2e69a6543d405593be8e54016946
Task-number: QTCREATORBUG-17492
Reviewed-by: hjk <hjk@qt.io>
2017-01-05 09:32:50 +00:00
Ulf Hermann
348b5ec8c5 QmlDebug: Add missing "emit"
Change-Id: Ib1affe0ca59c8ba01a9701fc9ee654f639122bd3
Reviewed-by: hjk <hjk@qt.io>
2017-01-05 09:32:36 +00:00
BogDan Vatra
c4afe5d79b Android: Fix keytool result handling
keytool return code != 0 if the password is incorrect.

Task-number: QTCREATORBUG-17317
Change-Id: I248b4a687ef48a849d42a70940009738d29a609c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-05 09:07:20 +00:00
Tasuku Suzuki
ac83af4ef0 Git: Add Sign off feature in git commit view
Change-Id: Icb0a8818f707d6a874a9b97318fc6a93205b4ce9
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-01-05 08:17:33 +00:00
Friedemann Kleint
9ceb1b504a MSVC toolchain: Add common mkspec added in Qt 5.8.1
Prepend "win32-msvc" to the result list. Projects based
on Qt 5.8.1 will then no longer be misconfigured with ARM
toolchains.

Change-Id: I734ee530e4fe2c5253f946568c2ab973e51d3cae
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-05 07:24:06 +00:00
Ulf Hermann
405c456d0d QmlProfiler: Print timestamps with context
For traces that start at a high timestamp, we want the timestamps to
still have some meaning. Without context the formatter will only
print something like "5h 25m" for all of them, which is not very
useful.

Change-Id: I7ec37659083f967c9ed03a843f6b7c9430214670
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-04 16:57:03 +00:00
Eike Ziller
144d817b76 Remove duplicate includes
Change-Id: I12af32a2b0cc66b4373d8ac5028f4d4cb6400c71
Reviewed-by: hjk <hjk@qt.io>
2017-01-04 16:41:32 +00:00
Ulf Hermann
59c186de5f QmlProfiler: Resolve pixmap file name via pixmapcache model in test
This tests that the file name is correctly stored in the model and it
removes the detour via the model manager.

Change-Id: Icc592b6383edcb18bfe31a81eb7ae0736a4f5508
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-04 16:39:24 +00:00
Ulf Hermann
5dd4b7d8fe QmlProfiler: Simplify stack handling in statistics model
There is no need to keep empty events at the bottom.

Change-Id: I072b50329a9f277005cbfa45350c060abd7e7a36
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-04 16:38:55 +00:00
Ulf Hermann
ba46ebc0f2 QmlProfiler: Remove unused member
Change-Id: Ieea5c09903477c9a9cb3ad158404ffe893f95c55
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-04 16:36:09 +00:00
Ulf Hermann
8a4c55b6cf Timeline: Improve display of time labels
As time labels are formatted with a precision that matches the context
we are generally interested in the right part of the string if it
doesn't fit into the cell. Therefore, elide left. Also, the label
corresponds to the line left of it, so put the margin to the right,
rather than to the left.

Change-Id: I953b1bc674e131dbfcf873774127c6360163f20f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-04 16:33:25 +00:00
Ulf Hermann
0f6d7dae8f Timeline: Fix time formatting for very large timestamps
10^12 doesn't fit into a 4-byte integer and we want to adjust the
minutes when printing hours, not the hours themselves.

Change-Id: I722403b8cb7f6817aed1b6a5e3c406349fe1bd53
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-04 16:33:17 +00:00
Eike Ziller
e0dd885338 PluginSpec: Use member initialization
Change-Id: Ie8720248eca88ec447461b54b27928c25dace97e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-04 16:32:42 +00:00
Tobias Hunger
be4d1093b4 ProjectExplorer: Do not crash when setting custom executable
Do not crash when setting custom executable without ever visiting
the runconfiguration before.

At that point the chooser is still a nullptr.

Task-number: QTCREATORBUG-17505
Change-Id: I27fb19845adf9c7ec0ad5a9435c8d86a573a2532
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-04 16:20:42 +00:00
Orgad Shaneh
86af16725d Revert "SDKtool: Warn if file is not found"
It is not an error. SDKTool can be used to create new files.

This reverts commit 274d3a8c79.

Change-Id: I4af46b4deb5fe356a9c1050cc9557d43f3a91a6e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-04 15:14:57 +00:00
Robert Loehning
7746c31774 Squish: Use different function name in tst_CSUP01
realloc is not being listed by Clang Code Model

Task-number: QTCREATORBUG-17490
Change-Id: I006fee04579706fbf5edf8b890bd7be8e090d01f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-04 14:43:32 +00:00
Robert Loehning
2a6c315fbb Squish: Workaround unexpected error message
Task-number: QTCREATORBUG-17492
Change-Id: Icda68a756b3420baa494e90c41dbefc656ae6327
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-04 14:42:18 +00:00
Robert Loehning
ae0ea76f07 Squish: Fix timing issue in tst_HELP06
Change-Id: Ic88207d86cf3f926fc4df681be4cfaa1a62ba763
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-04 14:41:54 +00:00
Thomas Hartmann
5017d11958 QmlDesigner: Cleanup ExtendedFunctionButton
Change-Id: I9b7c58cb2bea1afed926a38da71029a9930d3b40
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 14:01:45 +00:00
Thomas Hartmann
d26221481e QmlDesigner: Use Loader in ExtendedFunctionButton
The ExpressionTextField is part of every control, but is only required
if the action is triggered in the menu. Therefore we only create
the ExpressionTextField on demand.
This significantly speeds up the property editor since
the ExtendedFunctionButton is part of nearly every control.

Change-Id: I67a6ab86e70401c53bbe42a16aa1e12d725f16f6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 14:01:38 +00:00
Thomas Hartmann
02ee25b490 QmlDesigner: Attach and detach TextEditorView
This is required for the TextEditorView to get the
notifications from the model.

Change-Id: I8d548e3018f217466f15a469d428894e66e74c39
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:50:41 +00:00
Thomas Hartmann
75bcd04a9d QmlDesigner: Proper selected highlight for center widget tab
Change-Id: Ic29dd933eb26defe201f459211281655e1301484
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:50:31 +00:00
Thomas Hartmann
3d48d7565c QmlDesigner: Delay and compress text changes from editor
This is required to avoid blocking the ui while typing, because
the model is updated.
It will take 400ms without changes to the text until the model
gets updated.

Change-Id: Id428a52c15aeb8f0b802ee0448be8e6777a7402a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:50:25 +00:00
Thomas Hartmann
2322f70fb6 QmlDesigner: Fix for changing type
The type of the root node is handled differently.

Change-Id: I360095c97184230502c8d80fbcb7ef7815f0a177
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:49:57 +00:00
Thomas Hartmann
477e5e6b7e QmlDesigner: Keep track of the collapsed state of sections
When a section in the item library is colllapsed, then
the designer should remember this. This was already implemented,
but the feature stop working, because of refactoring.

Change-Id: Ib4465b87ade7b0c8ff501dea9893ee98caaae753
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:49:44 +00:00
Thomas Hartmann
b8dfc1e9a5 QmlDesigner: Refactor section
We use a property to control the state and ensure the animation
is not triggered by the initialization.

Change-Id: Icf88e63e6fda34826da6be70369902fa168ea48c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:49:34 +00:00
Thomas Hartmann
fad8644041 QmlDesigner: Adding simple performance logging to property editor
Change-Id: Idc8adce4ce245a9e470b898473ec9b02143827b2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:49:25 +00:00
Thomas Hartmann
3d168b67cb QmlDesigner: Do not throw in destructor of transaction
In C++ noexcept(true) is the default for destructors.
Instead of poluting the code base with noexcept(false),
we catch the exception inside the destructor of the transaction.
Typically the application code does not anything special to handle the
error, so showing the error message is good enough.

If the application code wants to handle exceptions commit()
has to be called instead of relying on RAAI.

Change-Id: Ic73cacb197737698454eca9270d07fd897c97ca8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:26:25 +00:00
Thomas Hartmann
d4aa4523b7 QmlDesigner: Avoid throwing in the destructor of transactions
Since C++11 destructors do not throw by default.

Change-Id: Ic6403704587999464011fcaa1f9ac7df3e4ee49d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:26:17 +00:00
Thomas Hartmann
8f74cc3b7c QmlDesigner: Avoid second error message
We get editingFinished twice. By checking visible we able to ignore
the second signal.

Change-Id: Ic5ab91e153b1d658a68321436c71b914e065c6dd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-04 13:21:20 +00:00