Commit Graph

57165 Commits

Author SHA1 Message Date
Thomas Hartmann
8f583631f8 QmlDesigner: Fix black bar
The color was not renamed in this inline css.

Change-Id: Ib23977fcc9f3c5925ef5183dba0fc2c0216ab465
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-04-10 08:55:23 +00:00
hjk
a06514c365 ProjectExplorer: Start unifing visual appearance of run config widgets
Margins and layout style widely differ so far. Start moving everything
to a QFormLayout with the same margin and growth policy.

Change-Id: I0bd1d8b2ec9830be56354be1376a2a24eebb8845
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-10 08:41:16 +00:00
Alessandro Portale
c66f52c065 QmlEditorWidgets: Use a prefix in easingpane.qrc
Since all resources in Qt Creator get merged together at runtime, they
should be prefixed with the library/plugin name.

Change-Id: Iacd2aa748e68ac9f8c61b77a4af1db9d03f3f9d2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-04-10 08:33:49 +00:00
Tobias Hunger
4ba5e402dc Abi: Fix switch statment when guessing ABI based on target triple
Some entries were duplicated. Fix fallout in gcc toolchain test
caused by this change.

Change-Id: I63c7a5fdba93e903888b2daa99a87e0a07c28acd
Reviewed-by: hjk <hjk@qt.io>
2018-04-10 08:04:56 +00:00
Vikas Pachdha
56b6972994 Android: create a new toolchain when missing target triple
Though it should not happen that a toolchain is missing the triple
but in case the detection fails a new toolchain shall be created and
the misbehaving toolchain should be deleted

Task-number: QTCREATORBUG-20217
Change-Id: Iaa86331730f82b8e5abd37f1184a53d1e1312979
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-10 07:31:59 +00:00
Tobias Hunger
f7a0a3cd26 ProjectTree: Do not use disabled state for disabled nodes
Rendering disabled nodes using the disabled state in the painter
breaks themes as it introduces a discrepancy between the actual
state of the node and its graphical representation.

IIRC this was introduced since there was no easy way to find what
color was supposed to be used for disabled items. That is no longer
the case, so let's clean this up.

Change-Id: Ic5653cd970e07eb680cb1d28d1feefd70aded540
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-04-09 14:58:42 +00:00
hjk
e760cbdd52 ProjectExplorer: Remove unused functions
Change-Id: Ib35a04e486fb50a0a43c718adb726bee399165d9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-04-09 14:13:30 +00:00
hjk
c5ff80163b QMake: Use new ExecutableAspect
Change-Id: I87af8de1a6bec216ebafaa6d7832e00facc9601a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-09 14:13:26 +00:00
hjk
37f675d9c5 RemoteLinux: Rework RemoteLinuxCustomRunConfiguration
Use ArgumentAspect and WorkingDirectoryAspect.

Use base convenience functions to set up configuration widget.
The RunConfigWidget base is not needed for the main frame.

Make the run config display names consistent.

Display remote exe (which is the main thing) above the local
exe (which is only a helper to get debug info).

Change-Id: I9a47dc9ea27e6abd96bb75a3103ebc8ba35069c0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-04-09 14:00:27 +00:00
Alessandro Portale
08c90cecc8 Help: Remove several unused icons
Change-Id: I3a8cc0413b728606d79aa36fa0fd45553f204e5a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-09 13:33:28 +00:00
Marco Bubke
42ecd2ed3d Clang: Fix reset for write and execute in the sqlite statement
We were not reset a statement if we got an exception. There are now test
for it.

Change-Id: Ife7b4437fece9369767605ba7387bd0564c1bb8d
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-09 13:09:55 +00:00
Marco Bubke
9d7225d283 Clang: Cleanup transaction statements in the database
Change-Id: I795248492fe952c230fd3a9cf8bf16f3c831f161
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-09 13:09:45 +00:00
Marco Bubke
1b9469aa85 Clang: Use DeclarationName for indexing
Change-Id: Iefb2cb8a21c0f76d935bca56a4e9e02d6626e936
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-09 13:09:39 +00:00
Marco Bubke
4335dc7ff8 Clang: More tests for symbol indexing
Change-Id: Ic0806fbf245c9b69f74eaa8e3d52cad90dafedbf
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-09 13:09:33 +00:00
Marco Bubke
d4ef90e632 Clang: Filter duplicate locations
An unique index is prevent double locations in the database.

Change-Id: I167cafe1a707dd8a8a9754b8d69790a8382f4eea
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-09 13:09:28 +00:00
Marco Bubke
8e9e1af7b8 Clang: Handle warning inside of the event loop
Change-Id: Ic0120beefcba209c572ce0a03b21d30e764c2ad3
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-09 13:09:20 +00:00
Oswald Buddenhagen
bb027e10a8 fix llvm libdir handling wrt RPATH, more or less properly
we must not add the llvm libdir if it's a system path. this was already
done in some places, but not in others.

while we're at it, re-shuffle some pre-existing conditionals to make
things consistent.

Task-number: QTCREATORBUG-20178
Change-Id: Ib7e5a81705494e4cf2f83a4782ecd0832b91e511
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-04-09 12:54:53 +00:00
Alessandro Portale
639df58287 Utils: Remove the unused and invalid Utils::Icons::DARK_CLOSE
The icon is not used anywhere and the :/utils/images/darkclose.png it
depends on does not exist.

Change-Id: I3f2bd5e4cd13ad4d19baf9e691897b81cd3b0629
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-09 11:38:23 +00:00
Alessandro Portale
0789c5485e TextEditor: Remove unused "finddirectory" icon
In case such icon will be needed at some point, we will recreate it
themable and HighDPI-able.

Change-Id: Icf34617fa71eb35406bbc10daaa700a823671061
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-09 11:38:12 +00:00
hjk
0df9d6dda9 ProjectExplorer: De-qobject-ify RunConfigurationFactory
Some translations moved over to the corresponding RunConfigurations,
one setParent() replaced by direct deletion.

Change-Id: Ib5e527b71353a6be70b332ac2dfd2f5cd2499a60
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-09 10:57:36 +00:00
Christian Stenger
51cc3957b4 AutoTest: Replace expensive function call
Depending on the underlying project manager it can be
pretty expensive calling PE::canRunStartupProject().
AutoTest plugin used this to determine whether its
global actions should be enabled or not and updating
these actions is triggered for too many causes.

Replace this function call by some simple checks that
have almost no cost to avoid blocking UI.

Task-number: QTCREATORBUG-20175
Change-Id: I0e3cce683f33abe82bf1354ec5276250f5e30068
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-04-09 10:38:23 +00:00
Orgad Shaneh
9053cd7515 SettingsAccessor: Support user file without EnvironmentId
Let the users forge a user file without injecting their environment.

Task-number: QTCREATORBUG-20097
Change-Id: Ia481f0f6d7c704d26b5f7d0f985f38dd39027f95
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-09 09:32:13 +00:00
Jarek Kobus
e806ea40cc Pass this context object to the connect()
Otherwise when "this" instance
gets deleted and the sender still exists, the lambda
expression is still invoked for the deleted object.

Task-number: QTCREATORBUG-20223
Change-Id: Ifd5c9e6ce1fe7fde71698c6683cdfcd7566e8d35
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-04-09 09:31:40 +00:00
Orgad Shaneh
eea6a7c3b3 Utils: Purge qtcfallthrough.h
No longer needed.

Change-Id: I9b0bee014df89d4c567f1d2431b5ff9404f5f925
Reviewed-by: hjk <hjk@qt.io>
2018-04-09 09:04:13 +00:00
Orgad Shaneh
7d3a79c696 Utils: Purge asConst
Replace by qAsConst.

Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-04-09 09:04:00 +00:00
hjk
11336fb604 QmlProject: Move RunConfigurationFactory close to RunConfiguration
No need to have a dozen lines of code in a separate translation
unit and more in line with what others do nowadays.

Change-Id: I765535d1484805bc3005fe23bfd4992a96a80e9c
Reviewed-by: hjk <hjk@qt.io>
2018-04-09 08:49:09 +00:00
Tim Jenssen
18ad5653d5 Wizards: fix crash when index is wrong
Task-number: QTCREATORBUG-20193
Change-Id: I20da636a3db478c6ff0d812b1b3dc3405f73cb8e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-09 08:28:10 +00:00
hjk
ef79078db2 RemoteLinux: Move RunConfigurationFactories close to RunConfigurations
No need to have a dozen lines of code in a separate translation
unit and more in line with what others do nowadays.

Change-Id: I029cac3d96b6a318be2cc4efad08badfae68fc20
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-09 06:54:31 +00:00
Orgad Shaneh
8183809846 QmlJS: Update gen-parser.sh
Try to minimize differences on sync

Change-Id: I9af325911b1a6a7635099cb3a5c778305e5e6223
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-04-09 06:37:27 +00:00
Orgad Shaneh
b67ad62cac ProjectExplorer: Avoid casting to const value
Detected by GCC8.

Change-Id: I01b7dda2c8304986dae88f30c753221661c32207
Reviewed-by: hjk <hjk@qt.io>
2018-04-09 06:18:34 +00:00
Vikas Pachdha
e6898fd863 Android: Fix app_process not being copied for 32bit cpu abi
Task-number: QTCREATORBUG-20084
Change-Id: Id06cfb6250030851211c7c170f8d0c8b0491b3d8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2018-04-09 05:54:23 +00:00
Claus Steuer
27190cd50a AutoTest: Set gtest-result line number even if file can't be resolved
Task-number: QTCREATORBUG-18725
Change-Id: Id9c4749feafcd3dc3c54fcb25589f45e9cebe283
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-09 05:45:53 +00:00
Orgad Shaneh
5e483d04bc Clang: Fix build
This amends commit cf4dbb4bb6.

Change-Id: Ib74fba38348a02f6bb9d254b7a5e9013a2013942
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-09 05:25:40 +00:00
Orgad Shaneh
1c82a53e74 Modeling: Catch exceptions by reference
Detected by GCC8.

Change-Id: I478e835a49beaa2cd6f07650b2e8c3726979018d
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-04-07 17:41:42 +00:00
Orgad Shaneh
2dcb558945 ClangSupport: Do not cast to const quint8
Detected by GCC8.

messageenvelop.h:83: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
         out << static_cast<const quint8>(messageEnvelop.messageType_);
                                                                     ^

Change-Id: I46ee5fb45b6ebc3c75475faa16cba66243a38fb3
Reviewed-by: hjk <hjk@qt.io>
2018-04-07 17:34:08 +00:00
Tim Jenssen
e0c8ec8f79 QmlProject: simplify code
Change-Id: I3cfee42b63bf840bf2ecde54c5f2d277d7a32e7c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-04-06 17:23:30 +00:00
Nikita Baryshnikov
a16d712c11 CMakeSpecificSettingsPage: delete SettingsWidget
Also added Q_OBJECT macro, for tr call in ctor.

Change-Id: I4766b6299a07e3ba0ebc8577e9f4471021b89f07
Reviewed-by: hjk <hjk@qt.io>
2018-04-06 13:31:51 +00:00
hjk
cf4dbb4bb6 ClangSupport: Use simpler structures in some cases
The patch is mostly mechanical, but contains also a few spurious changes
from values references for some local variables, foreach -> ranged for
etc that I coulnd't resist.

Change-Id: I58f0bd972546895eb318607cbfbd7ac35caf3f23
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-06 12:55:23 +00:00
Christian Kandeler
9d4cb68894 Update qbs submodule
To HEAD of 1.11 branch.

Change-Id: Ia5df7f4264cdead6d11a97f473c8f2701de78eae
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2018-04-06 12:06:58 +00:00
hjk
4a0bbed560 Qnx: Re-enable CMake etc builds
This partially reverts 6e419d642a as the restriction is not need.
QNX + CMake is working fine.

Change-Id: I430c6e8c25f8975201892759abb20a52cb04e4a4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-06 11:49:46 +00:00
hjk
9670c67704 Qnx: Move QnxRunConfigurationFactory close to run config
No need to have half a dozen lines of code in a separate translation
unit.

Change-Id: I7b611f3404d3db4a1f731b4bfa79bd560a2bf9f3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-06 11:45:20 +00:00
Christian Kandeler
300afe8b8d QbsProjectManager: Cache run environment
Setting up the qbs run environment is not free, and the respective code
gets triggered from other plugins much more often than expected.

Task-number: QTCREATORBUG-20175
Change-Id: I6529718d20738140963486caef103d6d17958d50
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-06 11:05:45 +00:00
hjk
71501a3bf7 BareMetal: Some consolidation of RunConfiguration related classes
Purely mechanical, no visible/functional changes intended or expected.

- have one file pair for each set of config/factory/widget
- de-pimpl BareMetalRunConfigWidget, it's very local now
- use new wrapWidget convenience function for run config widget setup

Change-Id: Icd0df2bc7e206d6bf15d722f7eaa3b9fbee0b0fa
Reviewed-by: Alexander Drozdov <adrozdoff@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2018-04-06 08:52:46 +00:00
hjk
afbeefba86 Python: Move TaskList emptying to OutputFormatter constructor
... in preparation of upcoming OutputFormatter creation reorganization.

Also, replace a raw string literal by a normal one to accommodate moc
and remove an unused member.

Change-Id: I416bb20afd891717fcb4f449955b4e46e5c05590
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2018-04-06 08:24:12 +00:00
Nikolai Kosjar
b9ae919cb7 Clang: Backport support for std::has_unique_object_representations
...to be able to parse type_traits of libstdc++ 7 without errors.

Task-number: QTCREATORBUG-18757
Change-Id: Ib76e233e77a58a9fb6761c733057dcc1d6c42ead
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-06 06:57:44 +00:00
Nikolai Kosjar
56a8cd6835 Clang: Remove pointless empty line in diagnostic tooltip widget
...for diagnostics coming from clazy/tidy.

Change-Id: I73a1db74f075c1ec15ff16fc07da012451729097
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-06 06:57:34 +00:00
hjk
c69e4598ed ProjectExplorer: Streamline *EnvironmentAspect interface
Register code/name combinations together.

Also make the otherwise implicitly preferred first entry
explicit in the API.

Change-Id: I80f68b01d53e2672480365d4efcb9d790b8363fd
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-04-06 06:27:52 +00:00
Ulf Hermann
27c51ed4c8 FlameGraph: Allow zooming into items
Double clicking an item will now rebuild the flame graph with that item
as root. Double clicking on an empty area will reset the root.

Change-Id: I16dd4b00d0dd09ff922a01acee67f0d553da6323
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-04-06 05:58:54 +00:00
Orgad Shaneh
438db9a488 QmlJS: Remove duplicate entry in DISTFILES
It already listed in parser.pri.

Change-Id: Id44e1945eb9f0a7fc988a00b52b6650267c8a266
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-04-05 14:33:01 +00:00
Thomas Hartmann
89ce755909 QmlDesigner: Remove magic opacity when adding items in states
It should not make a difference if an item is created in a state.

Change-Id: I788cb2aec758a42418a5939c2430074803a662db
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-04-05 13:42:47 +00:00