Commit Graph

53252 Commits

Author SHA1 Message Date
Eike Ziller
8eae8881cc Improve horizontal scrolling in the navigation views
Because of QTBUG-3927 the tree views are scrolled completely to the left
when selecting any item because it makes the header column visible. That
is very annoying, because it makes items deep in the hierarchy hardly
readable, even if you manually scrolled horizontally to see them.
Scroll horizontally to make the actual item visible instead.

Task-number: QTCREATORBUG-19204
Change-Id: Ic083236feae8892d210b9d2b1238f3c6b80a8cea
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-07 12:16:04 +00:00
Eike Ziller
489ec3594a NavigationTreeView: Add overrides
Change-Id: Ia31c56b26fd62345338b9a613499fb7b9504df48
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-07 10:55:07 +00:00
Tobias Hunger
54e2a977b9 ProjectExplorer: Code cleanups for AbiWidget
Change-Id: I501d7a30413ea13c5ba7f6d8e3b990f615629b5e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-07 09:57:23 +00:00
Tobias Hunger
9ca74997d5 CMake: Use QtOutputFormatter for CMakeRunConfigurations
Use QtOutputFormatter for CMake run configurations that belong to targets
with Qt configured.

Task-number: QTCREATORBUG-18586
Change-Id: Iedb6d7079649022b2ba6dabef37b79c0d33b8635
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-07 09:51:22 +00:00
Christian Stenger
d0fe839451 DumperTest: Fix compile failure for gcc4.9
Change-Id: I1d97324a12a4d0974f1930351f337c381851d011
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-11-07 09:45:41 +00:00
Leena Miettinen
072e8c323b Doc: Update Accelerate Bubble example to use the Swipe wizard
Change-Id: I6f3d88788707c4ecd18c327c9145529ec0bd8fc6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-11-07 09:33:18 +00:00
Leena Miettinen
a1a47242c6 Doc: Update the Transitions example to use the Swipe wizard
Change-Id: I17e6d8ddba96d28ea8f533d5993f8665fd380ca0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-11-07 09:31:21 +00:00
Leena Miettinen
7cf755bc06 Doc: Update info about Qt Quick Application project wizards
There are now wizards for creating apps that use Qt Quick 2
types or Qt Quick 2 controls (ScrollView, StackView, or SwipeView).
Some wizards generate ui.qml pages, while others don't. Therefore,
an include file can no longer be shared between the tutorials and
the creating projects topic.

Change-Id: If06e20511cb5f6fe9da28feff40cec0250a49416
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-11-07 09:26:12 +00:00
Leena Miettinen
40fa1d594a Doc: Remove remaining reference to deploying incomplete APKs to Android
... and update the screenshot.

Change-Id: I9c93b0c94bec6c3f685160dd2fd0e73e33044b5c
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2017-11-07 08:16:40 +00:00
Thomas Hartmann
05d969a61b QmlDesigner: Move HelperWidgets
Having the HelperWidgets next to the QtQuick directory was triggering
a bug in Qt (QTBUG-64237).

The property editor was white with Qt 5.10, because the "." import is
mapped to "./QtQuick" and was confused with QtQuick 2.x.

Task-number: QTCREATORBUG-19194
Change-Id: I4148d8e40f1e886eb41ffe6f4df62b213af5e9c3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-11-06 18:02:02 +00:00
Tim Jenssen
de87562eb3 QmlDesigner: Fix crash in QGraphicScene
Use QWidget method to block updates instead of an own implementation.
The QWidget grab resulted in crashes like in QTBUG-36600.

Change-Id: I4b57a0ba19e3a85e8e7985f893074364f5cb4490
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-11-06 17:22:55 +00:00
Thomas Hartmann
6a738504d0 QmlJS: Add error message for dynamic property called "data"
The default property of most QtQuick items is data and
therefore "data" should not be used as a property name.

Task-number: QTCREATORBUG-19225
Change-Id: I54d1b72ce984debd4c366b7261e93b7a81b8c940
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2017-11-06 16:41:07 +00:00
Tobias Hunger
438fe38e1f ProjectExplorer: Fix logging category prefix
Use the same qtc.projectexplorer. prefix for the gcc toolchains logging
category that is already used elsewhere in the ProjectExplorer plugin.

Change-Id: I5f2746504ed08d5422baaedd6860fa1ed3c86bae
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-06 16:05:56 +00:00
Thomas Hartmann
dc82eabe4c QmlDesigner: Fix crash
In case the dynamic property was called "data" the designer
crashed.
There are still issues with dynamic properties called "data",
but it does not crash anymore.

Task-number: QTCREATORBUG-19224
Change-Id: I824a40729ed104f4eaa6a2bdc2fda336aafab836
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-11-06 15:18:44 +00:00
Leena Miettinen
56cd215c6d Doc: Describe hiding invisible items in the Qt Quick Designer Navigator
Update screenshots.

Change-Id: I8335131298d2a400403be2879f4f363d687c78cc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-11-06 11:43:16 +00:00
Tobias Hunger
03e629e5f9 ProjectExplorer: Handle Macros in build directory
Macros in build directory were not consistently expanded, so building
failed (at least in qmake projects).

Task-number: QTCREATORBUG-18601
Change-Id: I7ab06a1b969866748cf4062d1c820e5830efe281
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-06 09:24:09 +00:00
Tobias Hunger
19e125ce5f Qmake: Pass on QMAKE_CFLAGS to the code model
Change-Id: I87c07177adcfd72c7852f84266feb9baf1f87e5b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-03 14:07:30 +00:00
Ivan Donchevskii
74570e833d CppEditor: fix class refactoring crash
... when class contains functions with incorrect AST.

Task-number: QTCREATORBUG-19180
Change-Id: Ie60c27ccec6d664e7ba76b8862326dbb9576a1bb
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-03 12:12:32 +00:00
Tobias Hunger
1094fe5abf Qmake: Fix detection of successful parsing run
Do not report success of a qmake parsing run based on every .pro-file
having reported success. Take the top-level .pro-file's success value
instead.

This fixes e.g. Creator, which has some .pro-files that error out in
some conditions.

Task-number: QTCREATORBUG-18992
Change-Id: I888141e723da84fb780ccd84c86acc25d03f5f28
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-03 10:12:59 +00:00
Tobias Hunger
af572c546f Qmake: Speed up QmakePriFile::findPriFile
Avoid needless detaching in that method: The method is used less since
the Nodes no longer need to go through it. All the runconfigurations
still use it, so this change is still noticeable.

Change-Id: I9f5e238ab1ef7165fd4fef1b0f80d4e5daa9a7e8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-03 10:12:49 +00:00
Tobias Hunger
0b5765d1cb Qmake: Make finding pro-files fast, second attempt
Finding the right pro-file was surprisingly slow. Make that fast again by
storing a pointer in QmakePriFileNode back to the QmakePriFile that created
it. This is save since the Nodes in the ProjectTree get nuked whenever the
tree of QmakePriFiles changes.

Task-number: QTCREATORBUG-19131
Change-Id: I4b5a8887cb13c36273a553f935a00d87cee4a7b6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-03 10:12:34 +00:00
Tobias Hunger
07748f540b ProjectExplorer: Fix handling of custom ABIs but AbiWidget
The AbiWidget sometimes lost changes when a custom ABI was used. Fix
that.

Change-Id: I220cc4c6072f0615c645a494130014e0a65d83fe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-03 10:10:58 +00:00
Leena Miettinen
d679c8db82 Doc: Update info about Qbs options
Qbs profiles can be edited in the Kits tab in Options.
Qbs settings are now a tab in Build and Run options.

Change-Id: Ibb45ff4488cb061a50f48ec3237265ce5776fa24
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-11-03 09:03:45 +00:00
Alessandro Portale
af17830d79 QtSupport: Use FancyLineEdit as Welcome Page search filter edit
FancyLineEdit has fancier features than plain QLineEdit.

Change-Id: Ibec542641abdf0e8f762bf7bfc6a5bac2fd056e5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-03 08:22:12 +00:00
Eike Ziller
ba0faf229a Remove external tool for "sort text"
We now have Edit > Advanced > Sort selected lines

Change-Id: I948718a1be432e00b2646b29f173894a51691164
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-11-03 07:30:52 +00:00
Orgad Shaneh
d6ff82a244 Dumpers: Fix CPlusPlus::IntegerType dumper
Change-Id: Ia21caf874f927428c27f6ad21da031b3a32146ea
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-11-02 14:04:44 +00:00
Leena Miettinen
b3ed01ca07 Doc: Describe managing Android SDK packages
Change-Id: Ida9d91806e0ffd8980ef1e9df0f933f234416188
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-11-02 11:59:16 +00:00
Christian Stenger
aab634ff15 Revert "Qmake: Make finding pro-files fast"
The patch broke defining the correct executable for qmake based
projects. Loading more complex projects (like QC itself) did
end up failing to run any executable out of the box as the
executable name was always wrong.
This reverts commit 21b0e7c37e.

Change-Id: I471c9963bd739b74e48286e1bde00f7222b90c8b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-02 09:45:25 +00:00
Orgad Shaneh
bacfc28a36 CppTools: Match also function arguments in locator
Useful when there are several overloads for the same function.

Change-Id: I325bda7d2fdf4108f71a61d5473cd55310c51c28
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-02 09:26:17 +00:00
Eike Ziller
2d5d62fdbc Restrict suggested file filters to registered supported mime types
When using File > Open File or Project, and with Save As.
It was containing all mime types registered in Qt Creator, including the
default one from freedesktop.org, most of them being not interesting.

Task-number: QTCREATORBUG-17913
Change-Id: Ic5e49b27b566eb41419240b78a6cd99b233aeb07
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-01 15:17:39 +00:00
Tobias Hunger
2a651bf477 GccToolChain: Invalidate caches on toolchain changes
Change-Id: I91a69631d0417beb35574a5725da6b5a5e411113
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 15:14:48 +00:00
Leena Miettinen
d8afb51c92 Wizards: Fix copy-paste error in Swipe view wizard description
Mentioned a StackView and a Drawer, which do not seem to be used in
the example. Also contained "with a" twice.

Change-Id: I51916b73731224cb633bd90f724ec7f4c2b89f91
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-11-01 14:38:33 +00:00
Tobias Hunger
b6d0ca203e GccToolChain: Make macro cache bigger
16 entries is tight alrealdy for Qt Creator, so leave more room to avoid
retrievivng the same information over and over again for bigger projects.

Change-Id: I92239df2449cec20d1dbd9aaae98d88c08d2a241
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 14:21:26 +00:00
Tobias Hunger
3529e785c4 CppTools: Make create* methods return something
Change-Id: I20cfdaef23e9b7c48c9d3b4f27157e771fd9bc7f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 14:19:29 +00:00
Tobias Hunger
a65630ef8c CMake: Pass C toolchain on to the project model
Change-Id: Ice833d9b180d7bac109c7cdf9e63fdba0bbce86e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-11-01 14:19:10 +00:00
Knud Dollereder
4baa34ec60 Assign the stylesheet to the tab-bar that contains the timeline
Change-Id: Idd0e16bd6557bff7fd956e60b8b991b35feb5ea0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-11-01 13:29:39 +00:00
Tobias Hunger
5897cd1f24 AbiWidget: Use QSignalBlocker
Use QSignalBlocker instead of blocking/unblocking manually.

Change-Id: I7b5c04bd256caee9e20b353392eda49a301137e3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-01 12:54:55 +00:00
Tobias Hunger
21b0e7c37e Qmake: Make finding pro-files fast
Finding the right pro-file was surprisingly slow. Make that fast again.

Task-number: QTCREATORBUG-19131
Change-Id: I4b5a8887cb13c36273a553f935a00d87cee4a7b5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-01 12:54:25 +00:00
Leena Miettinen
130a32cbb3 Doc: Describe function for sorting lines alphabetically
Remove the information about the external sort tool, which will
now be removed from Qt Creator that we have a sorting feature.

Change-Id: I508885954a2fc7f9cbd136681a69c690c710235f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-11-01 12:32:50 +00:00
Christian Kandeler
9e32603c3d QmakeProjectManager: Support wildcards in INSTALLS again
This functionality was (accidentally?) lost in some semi-recent
refactoring in the pro file evaluation code. Note that only the "*" and
"?" globs are supported.

Task-number: QTCREATORBUG-17935
Change-Id: I9ade940f4dbf9c5836cd8b5fab2d85d10f42ad9a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2017-11-01 11:27:40 +00:00
Leena Miettinen
f2ea25f0cb Doc: Describe CMake setting groups and changing setting type
Change-Id: I4ea68fa3075caf316c2d88b94b8c48266a9879f7
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-01 07:54:31 +00:00
Leena Miettinen
7f9332db09 Doc: Describe using fuzzy matching in the locator
Change-Id: I443e8cc525772136e0ac749790890604c211bce7
Task-number: QTCREATORBUG-3111
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-11-01 07:54:08 +00:00
Orgad Shaneh
be673acb3e Add CameHumpMatcher autotest to qbs build
Change-Id: Ia019822ecc8d9ab1a19a17a7965fd5e9a4178bc9
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-10-30 19:39:14 +00:00
Orgad Shaneh
92c1659df2 CamelHump: Prefer plain match over camel hump
For example:
Matching "lit" against "LiteralTable" should highlight "Lit" and not "Li"
and "T" from Table.

Change-Id: I8a0a9d0b0b90403745e85b1d3d20deaa551416eb
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-10-30 19:38:57 +00:00
Benjamin Terrier
4c62cbd6dc Add detection of MSVC 2017 Build Tools
Rename detectCppBuildTools() to detectCppBuildTools2015().
Add detectCppBuildTools2017(). Like the 2015 version the detection is
based on the presence of a .bat file because there are no entry in the
Windows registry, but it relies on the VisualStudioInstallation
structure like other Visual Studio toolchains.

Task-number: QTCREATORBUG-19053
Change-Id: I875bd466a3009574696fb7ebe54cdc5ff9bcb921
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-10-30 13:59:21 +00:00
Orgad Shaneh
dc8d0f048a Suppress noexcept-type warnings also in qbs build
This amends commit 68589a3fbc.

Change-Id: Idf0e296f7549e8aea7109e0c877e27032b99e9b8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-10-30 10:53:50 +00:00
Tobias Hunger
1406bbeec7 GccToolChain: Log what gets reported to code model
Change-Id: Ic6a0252f6109393a2aab8ea96db9a9b583c25394
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-10-27 15:11:44 +00:00
Tobias Hunger
d8b25ad1d4 GccToolChain: Unify handling of language options
Change-Id: I06896d2b8b0561726d607f4bfaeb5b3ec8e065ee
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-10-27 15:11:36 +00:00
Tobias Hunger
bc3d4d86fa GccToolChain: Improve retrieval/caching of compiler data
* Use one template to implement both Caches
* Use shared_ptr to the caches. This is necessary to not crash
  when the toolchains get deleted while the compiler is being run
* Pass language to header path retrieval code and use that information
* Add unit tests for cache used by the toolchain

Change-Id: Ic31e7c4c1ed8158af7f2cdfda8104255efb06aea
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-10-27 15:11:28 +00:00
Christian Kandeler
50047466ab Update qbs submodule
To HEAD of 1.10 branch.

Change-Id: I9eefebdb98a9d68a286b2c8bc309864566a1867d
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2017-10-27 14:43:31 +00:00